This commit is contained in:
piotr
2024-07-16 01:31:57 +02:00
parent 0304c94e8f
commit 5156ca2d51
2 changed files with 4 additions and 2 deletions

View File

@@ -115,7 +115,10 @@ class HyprlandWorkspaces(Gtk.Box):
pinned = activewindow["pinned"]
# fix #310
active_ws = activeworkspace["id"]
if activeworkspace and "id" in activeworkspace:
active_ws = activeworkspace["id"]
else:
active_ws = 0
for num in self.ws_nums:
if num in occupied_workspaces or self.settings["show-empty"]:

View File

@@ -887,7 +887,6 @@ def h_get_activewindow():
def h_get_active_workspace():
reply = hyprctl("j/activeworkspace")
print(">>> reply:", reply)
try:
return json.loads(reply)
except Exception as e: