I am running testing with gnome-shell and have bound a keyboard-shortcut to this
Code: Select all
wmctrl -r :ACTIVE: -b add,above
What I want now is to toggle this behaviour (i.e. when I hit the shortcut again I want the window to loose this "always on top" property.
What I know is that I could add a new shortcut with this:
Code: Select all
wmctrl -r :ACTIVE: -b remove,above
Now the funny thing is that there is actually a "toggle"-funcionality in wmctrl like this:
Code: Select all
wmctrl -r :ACTIVE: -b toggle,above
So how can I do this?
Is there anything to make the "toggle" in wmctrl work as I would want it to work or is there a way to determine if a window already has this property so I could make then the appropreate wmctrl-call (at the moment I understand how to set or remove this propery, but not how to query it...).
Many thanks!