This commit is contained in:
piotr
2024-07-16 01:20:32 +02:00
parent 466348aef2
commit 01b1dcb85d

View File

@@ -185,54 +185,54 @@ def hypr_watcher():
event_name = e_full_string.split(">>")[0] event_name = e_full_string.split(">>")[0]
# if event_name in ["monitoradded", "openwindow", "movewindow"]: if event_name in ["monitoradded", "openwindow", "movewindow"]:
# monitors, workspaces, clients, activewindow, activeworkspace = h_modules_get_all() monitors, workspaces, clients, activewindow, activeworkspace = h_modules_get_all()
# for item in common.h_taskbars_list: for item in common.h_taskbars_list:
# GLib.timeout_add(0, item.refresh, monitors, workspaces, clients, activewindow, activeworkspace) GLib.timeout_add(0, item.refresh, monitors, workspaces, clients, activewindow, activeworkspace)
# last_client_title = client_title last_client_title = client_title
# last_client_addr = client_addr last_client_addr = client_addr
# continue continue
#
# if event_name == "focusedmon": if event_name == "focusedmon":
# monitors, workspaces, clients, activewindow, activeworkspace = h_modules_get_all() monitors, workspaces, clients, activewindow, activeworkspace = h_modules_get_all()
# for item in common.h_workspaces_list: for item in common.h_workspaces_list:
# GLib.timeout_add(0, item.refresh, monitors, workspaces, clients, activewindow, activeworkspace) GLib.timeout_add(0, item.refresh, monitors, workspaces, clients, activewindow, activeworkspace)
# last_client_title = client_title last_client_title = client_title
# last_client_addr = client_addr last_client_addr = client_addr
# continue continue
#
# if event_name == "activewindow" and client_title != last_client_title: if event_name == "activewindow" and client_title != last_client_title:
# monitors, workspaces, clients, activewindow, activeworkspace = h_modules_get_all() monitors, workspaces, clients, activewindow, activeworkspace = h_modules_get_all()
# for item in common.h_taskbars_list: for item in common.h_taskbars_list:
# GLib.timeout_add(0, item.refresh, monitors, workspaces, clients, activewindow, activeworkspace) GLib.timeout_add(0, item.refresh, monitors, workspaces, clients, activewindow, activeworkspace)
#
# for item in common.h_workspaces_list: for item in common.h_workspaces_list:
# GLib.timeout_add(0, item.refresh, monitors, workspaces, clients, activewindow, activeworkspace) GLib.timeout_add(0, item.refresh, monitors, workspaces, clients, activewindow, activeworkspace)
#
# last_client_title = client_title last_client_title = client_title
# continue continue
#
# if event_name == "activewindowv2" and client_addr != last_client_addr: if event_name == "activewindowv2" and client_addr != last_client_addr:
# monitors, workspaces, clients, activewindow, activeworkspace = h_modules_get_all() monitors, workspaces, clients, activewindow, activeworkspace = h_modules_get_all()
# for item in common.h_taskbars_list: for item in common.h_taskbars_list:
# GLib.timeout_add(0, item.refresh, monitors, workspaces, clients, activewindow, activeworkspace) GLib.timeout_add(0, item.refresh, monitors, workspaces, clients, activewindow, activeworkspace)
#
# for item in common.h_workspaces_list: for item in common.h_workspaces_list:
# GLib.timeout_add(0, item.refresh, monitors, workspaces, clients, activewindow, activeworkspace) GLib.timeout_add(0, item.refresh, monitors, workspaces, clients, activewindow, activeworkspace)
#
# last_client_addr = client_addr last_client_addr = client_addr
# continue continue
#
# if event_name in ["changefloatingmode", "closewindow"]: if event_name in ["changefloatingmode", "closewindow"]:
# monitors, workspaces, clients, activewindow, activeworkspace = h_modules_get_all() monitors, workspaces, clients, activewindow, activeworkspace = h_modules_get_all()
# for item in common.h_taskbars_list: for item in common.h_taskbars_list:
# GLib.timeout_add(0, item.refresh, monitors, workspaces, clients, activewindow, activeworkspace) GLib.timeout_add(0, item.refresh, monitors, workspaces, clients, activewindow, activeworkspace)
#
# for item in common.h_workspaces_list: for item in common.h_workspaces_list:
# GLib.timeout_add(0, item.refresh, monitors, workspaces, clients, activewindow, activeworkspace) GLib.timeout_add(0, item.refresh, monitors, workspaces, clients, activewindow, activeworkspace)
#
# last_client_addr = "" last_client_addr = ""
# last_client_title = "" last_client_title = ""
def on_i3ipc_event(i3conn, event): def on_i3ipc_event(i3conn, event):