Added monitor check

This commit is contained in:
willifan 2024-03-17 21:55:28 +01:00
parent d507864ec1
commit 618c02c14b
6 changed files with 143 additions and 76 deletions

View file

@ -2,12 +2,57 @@
- normal
- ID: int (ID of workspace)
- occupied: bool (if workspace is occupied)
- monitorID: int (ID of monitor workspace is on)
- active: bool (if workspace is open)
- activeOn: int (ID of monitor workspace is on)
- icon: string (path of icon of client)
- special
- ID: int (ID of workspace)
- occupied: bool (if workspace is occupied)
- monitorID: int (ID of monitor workspace is on)
- active: bool (if workspace is open)
- activeOn: int (ID of monitor workspace is on)
- icon: string (path of icon of client)
Events:
workspacev2>>WORKSPACEID,WORKSPACENAME
workspace changed, update activeOn
createworkspacev2>>WORKSPACEID,WORKSPACENAME
workspace got created, update activeOn
destroyworkspacev2>>WORKSPACEID,WORKSPACENAME
workspace got destroyed, update activeOn
moveworkspacev2>>WORKSPACEID,WORKSPACENAME,MONNAME
workspace got moved to other monitor, update activeOn
activespecial>>WORKSPACENAME,MONNAME
activewindowv2>>WINDOWADDRESS
client focus changed, update icon
openwindow>>WINDOWADDRESS,WORKSPACENAME,WINDOWCLASS,WINDOWTITLE
new client, update icon
closewindow>>WINDOWADDRESS
closed client, update icon
movewindowv2>>WINDOWADDRESS,WORKSPACENAME
client moved to other workspace, update icon