I have 2 scripts running once desktop loads both running a python script call them A & B

script B looks for keypress so has to remain on top always.

How can I boot both A & B but make sure B is always on top

This is a desktop setup but headless

  • What do you mean by "to remain on top"?
    – techraf
    Dec 30, 2016 at 8:47
  • Yes I need to make sure B is always on top ready to type into
    – shaggs
    Dec 30, 2016 at 10:21
  • @techraf I think he means that he wants the program to launch on boot and cover the top half of the screen on boot Dec 31, 2016 at 17:17

1 Answer 1


Found a way using wmctrl

So changed my terminal title using

-t title-name

Then added

wmctrl -a title-name

To my .sh script

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.