clean up and org

This commit is contained in:
buenosairesam
2025-05-08 23:40:54 -03:00
parent 0b9f23fafd
commit 242928d502
11 changed files with 197 additions and 96 deletions

View File

@@ -1,14 +0,0 @@
class ActiveDesktop:
def __init__(self, desktops, unlabeled = "Other"):
self.desktops = desktops
def active_workspace():
workspaces = subprocess.check_output(["wmctrl", "-d"]) \
.decode("utf-8").strip("\n").split("\n")
for workspace in workspaces:
if workspace[3] == "*":
return int(workspace[0])