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