toggle window “always on top” via shortcut

When I use Windows I still use the aged tool WinSplit which brings the shortcut “CTRL+ALT+O” with it. This keeps the current window always on top of all other.

I wanted this functionality (and the shortcut) also on my laptop which is running Linux Mint.

This works without any additional software as the functionality is built-in and available via the context menu of every programme icon.

https://cdn.gpunktschmitz.de/blog/183/00-manually-set-window-always-on-top.png

And a programme to add shortcuts exists also.

https://cdn.gpunktschmitz.de/blog/183/01-open-keyboard-shortcuts.png

So, starting the programme “Keyboard Shortcuts” and click the “Add”-Button.

https://cdn.gpunktschmitz.de/blog/183/02-add-new-keyboard-shortcut.png

Entering a name and the following as the command:

wmctrl -r :ACTIVE: -b toggle,above

https://cdn.gpunktschmitz.de/blog/183/03-enter-new-shortcut-command.png

Once the shortcut is added you click on the column “Shortcut” of if (where it says “Disabled”).

https://cdn.gpunktschmitz.de/blog/183/04-click-on-disabled-to-set-new-shortcut.png

Now you can add the favoured shorcut by simply pressing it.

https://cdn.gpunktschmitz.de/blog/183/05-press-shortcut-and-close.png

Leave a Reply

Your email address will not be published. Required fields are marked *