I have created a Pomodoro Timer which runs in a seperate terminal window. I want this timer to always remain on top of other windows.
While searching for an answer, I found this: How can I keep Terminal always on top of other windows?.
But, this would mean that whenever I run my script, I'll have to manually right click the title bar and select "Always on top".
I was wondering if there is a temporary terminal command for that (which I can add to my code), so that it can keep the particular terminal window on top. (and the setting resets on closing the terminal, i.e. it is not permanent.)
wmctrl -i -r <window id> -b add,above
orwmctrl -r "window name" -b add,above
– kenn May 31 '20 at 13:19xwininfo -display :0
but it requires the user to manually select the window. @kenn – Martin Medro May 31 '20 at 13:23Cannot convert argument to number
... – Martin Medro May 31 '20 at 13:43-i
switch if you use window name:wmctrl -r "window name" -b add,above
– kenn May 31 '20 at 13:47wmctrl -l
will list window ids – kenn May 31 '20 at 14:00