My question is very similar to Make wmctrl ignore other-than-current workspace's windows.
The fact is I use XFCE so wmctrl
actually sees more desktops.
petr@sova:~$ wmctrl -d
0 * DG: 1600x900 VP: 0,0 WA: 62,21 1538x879 1
1 - DG: 1600x900 VP: N/A WA: 62,21 1538x879 2
2 - DG: 1600x900 VP: N/A WA: 62,21 1538x879 3
3 - DG: 1600x900 VP: N/A WA: 62,21 1538x879 4
4 - DG: 1600x900 VP: N/A WA: 62,21 1538x879 5
5 - DG: 1600x900 VP: N/A WA: 62,21 1538x879 6
6 - DG: 1600x900 VP: N/A WA: 62,21 1538x879 7
7 - DG: 1600x900 VP: N/A WA: 62,21 1538x879 8
8 - DG: 1600x900 VP: N/A WA: 62,21 1538x879 9
I have tons of shortcuts like this one:
wmctrl -xa Chromium || chromium-browser
How can I have wmctrl
only search the current workspace? I am open to wrapping wmctrl
in a custom command.
wmctrl -m
) the answer to the question Make wmctrl ignore other-than-current workspace's windows as linked above is what you want!