add task feature
This commit is contained in:
8
testdbus.py
Normal file
8
testdbus.py
Normal file
@@ -0,0 +1,8 @@
|
||||
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])
|
||||
Reference in New Issue
Block a user