So I've just upgraded to 18.04 and have been adjusting settings and such but am having issues with wmctrl. I had a shortcut set for toggling a window to be always on top "wmctrl -r :ACTIVE: -b toggle,above" but after updating I can't toggle or remove this through wmctrl. It sets to be on top but not back to normal after, any ideas on how to get this working?
1 Answer
Actually. I dug a bit more into this and found a solution. It can be found here. This uses built in functionality so wmctrl
is not needed. It does use a GUId configuration editor but I actually find this tool to be quite handy. Just be careful not to edit things that you are not sure what they do. It could be fatal to some applications or your system.
Just in case the link ever breaks or future readers do not wish to follow the link:
- Install dconf-editor with
sudo apt install dconf-editor
- Run
dconf-editor
to open the settings editor. - Navigate to:
/org/gnome/desktop/wm/keybindings
- Select
toggle-above
, note there is also an option foralways-on-top
this did not work for me - Toggle of
Use default value
- Set custom value. Must be an array containing a string. I set mine to
['<Shift><Alt>a']
- Save by clicking the check mark in the bottom left
wmctrl
won't play nice with Wayland. Runecho $XDG_SESSION_TYPE
to check. For more on what won't work in Wayland look at askubuntu.com/a/1111348/248158