1

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.)

Martin Medro
  • 338
  • 3
  • 12

1 Answers1

1

The answer is :

  1. Install wmctrl
  2. Open a terminal and type wmctrl -l. You will see a list of windows and processes.
  3. Type : wmctrl -i -r $windowId -b add,above (please replace $windowId by the window id of step 2)

Thanks to this question

sangorys
  • 329
  • 3
  • 11