I am using Ubuntu 23.10 and I would like to set an application, in my case CuteCom Serial Monitor, to be always on top. At the moment if my IDE is fullscreen I have to launch CuteCom from the dash and then after I return to the IDE and make some changes I have to relaunch Cutecom from the dash again.
If this is possible I can imagine it being useful for other applications too.
Just right-click on the titlebar of the window you want to keep on top and select Always on Top from the menu.
Alternatively, if you prefer to not use the mouse, you can press Alt+Super and use the up and down arrows to select Always on Top.
From command line? If so, you need
wmctrl
.In it's most simple form:
How are you running the window? You need it to have an
$XID
to target the window. You can usexwininfo
to select the window, but you have to do it every time the ID changes.This could serve as a GUI version. It will prompt to choose a window. Right click the tray icon to adjust.
Save to:
ontop_tray_icon.sh
Change mode to executable:
chmod +x ontop_tray_icon.sh
Usage:
./ontop_tray_icon.sh