check if workspace is free/empty
Hello,
how can I "ask" i3wm if one workspace is free (no apps open)?
Hello,
how can I "ask" i3wm if one workspace is free (no apps open)?
http://i3wm.org/docs/ipc.html#workspacesreply
This information can be queried for a quick proof of concept using i3-msg -t get_workspaces
Thank you for the replay, but `i3-msg -t get_workspaces` works only with one output verry well, but if i open another one `xrandr --output HDMI1 --auto --left-of LVDS1` I've got a new empty/unused workspace on HDMI1 and `i3-msg -t get_workspaces` doesn't tell me if this workspace is empty.
if you want to get a list of opened windows for a particular workspace, you should check the tree reply: http://i3wm.org/docs/ipc.html#_tree_reply
Asked: 2013-08-17 15:33:46 +0000
Seen: 252 times
Last updated: Aug 17 '13