Ubuntu is always on top of the screen.

I had a problem setting up some automation on Ubuntu and was hoping for some help. I need to run chrome, set up a full screen, run another window, set it always on top, and then set focus back to chrome. This should end with a small window on top of the chrome, but the chrome receives all user inputs.

I have done a lot to dig, and the best I can think of is to use wmctrl:

// Set chrome as fullscreen<br/>
wmctrl -r [ChromeWindowTitle] -b add,fullscreen

// Set the app as always on top<br/>
wmctrl -r [AppWindowTitle] -b add,above

// Activate chrome<br/>
xdotool search --name [ChromeWindowTitle] | awk '{ system("xdotool windowactivate --sync " $1) }'

Always running at the top and fullscreen, but when the application is in fullscreen, it seems to always replace on the top stack. I was able to verify this through a bunch of experiments. Basically, I was able to check:

1) I can force the application to be fullscreen 2) I can force the application to always be at a height 3) I cannot do both, always on the top application on top of the fullscreen application. A full-screen application is always displayed on top.

So the question is, is it possible (and how is it possible) to have a window floating above a full-screen window? I am running pretty vanilla Ubuntu 14.04, so there shouldn't be any big surprises there.

Thanks in advance.
-Mike

+4
source share
1 answer

Have you tried adding belowto a Chrome window?

wmctrl -r [ChromeWindowTitle] -b add,below

-1
source

Source: https://habr.com/ru/post/1668575/


All Articles