Set windows `always below bottom-most`?

9

3

There is an "Always on topmost" menu option for windows. I'm not sure if it's related to compiz or metacity.

I want to set the Totem player or Cheese the WebCAM player, always below the bottom-most, so I can view the movie when I'm working.

And, let the "Always below the bottom-most" windows be excluded in the windows list is even better.

If there is no such function yet, where should I begin if I want to develop one? It's Compiz or Gtk or XFB or something else?

Xiè Jìléi

Posted 2010-12-28T14:39:11.423

Reputation: 14 766

I looked for a solution for this for about 15 minutes but could only find people asking the question with no solution... +1 for a good question... – David – 2010-12-28T20:47:49.847

So, did you find any information on implementation? – Xiè Jìléi – 2010-12-29T07:02:09.607

Answers

7

You can use wmctrl and devilspie to manipulate window attributes/set EWMH properties. Both should be available in standard Debian/Ubuntu repos.

wmctrl is a command-line utility you can use to get a list of currently open windows and set their attributes (those of possible interest to you are marked with *):

modal
sticky*
maximized_vert*
maximized_horz*
shaded
skip_taskbar*
skip_pager*
hidden
fullscreen
above
below*

Example:

for hint in below sticky skip_taskbar skip_pager maximized_vert maximized_horz
do
    wmctrl -F -r $fulltitle -b add,$hint
done

Either by manually calling a script after the target program was started, or from a wrapper script that starts the program, waits for its window to appear and then runs the loop.


devilspie allows you to do the same thing (and a little more), but runs as a daemon and watches for windows you've defined in its configuration, to apply your settings when they are created.

Example:

(if (is (window_name) "Movie Player")
    (begin
        (below)
        (stick)
        (skip_taskbar)
        (skip_pager)
        (maximize)
        (undecorate)
    )
)

peth

Posted 2010-12-28T14:39:11.423

Reputation: 7 990

The below property is exactly what I want, thank you! – Xiè Jìléi – 2011-04-20T01:27:29.217

3

You can run CCSM (Compiz settings manager) and under Window Management > window Rules > put your applications to Below field.

sup

Posted 2010-12-28T14:39:11.423

Reputation: 527

That's much easier – Anwar – 2015-08-18T14:06:45.300