debug
This commit is contained in:
@@ -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"]:
|
||||
|
@@ -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:
|
||||
|
Reference in New Issue
Block a user