- How to make a window stay on top in GNOME2
- Posted by Kamaraju Kusumanchi on September 30th, 2003
Hi
I am using Redhat linux 9 and gnome. I am wondering if there is any way
to make a particular window always stay on top. How can I do this? Can
some please explain the procedure for me?
thanks in advance
raju
- Posted by Achim Linder on September 30th, 2003
On Tue, 30 Sep 2003 15:24:10 -0400, Kamaraju Kusumanchi wrote:
Depends on your window manager. If you have sawfish, start
sawfish-ui and go to the tab Matched Windows,
with icewm-1.2.13, you can use the .icewm/winoptions file.
If your window manager can't do these things, you can use an external
tool like devilspie (XML configuration, troublesome) or wmctrl, eg
wmctrl -r XMMS -b toggle,above
http://sweb.cz/tripie/utils/wmctrl/
Achim
- Posted by Kamaraju Kusumanchi on September 30th, 2003
Now I installed wmctrl-1.03; I would like to know how to specify the
<WIN> option. For example
$ wmctrl -l
0x02400076 0 k62.mae.cornell.edu optionalArgs.f90 (~/fortran) - GVIM3
0x02600076 0 k62.mae.cornell.edu optionalArgs2.f90 (~/fortran) - GVIM4
0x02a0000e 1 k62.mae.cornell.edu raju@k62:~
0x02c0000e 1 k62.mae.cornell.edu raju@k62:~
0x02e00019 1 k62.mae.cornell.edu XMMS
Now if I do
$ wmctrl -r XMMS -b toggle,above
Segmentation fault
$ wmctrl -r XMMS
Segmentation fault
Can u tell please me how to get this working. The compilation did not
give any hiccups.
If it is of any help
$ wmctrl -m
Name: Metacity
PID: N/A
Window manager's "showing the desktop" mode: N/A
Thanks in advance
raju
- Posted by Achim Linder on October 1st, 2003
On Tue, 30 Sep 2003 18:53:22 -0400, Kamaraju Kusumanchi wrote:
Weird. Try the -v option and
strace wmctrl -r XMMS -b toggle,above
to get more information.
If it is a bug in wmctrl's window matching code, you can try to use
the optons -u or -F or use a window id instead of the name, eg
wmctrl -i -r `wmctrl -l | sed -n '/XMMS/s/ .*//p'` -b toggle,above
If you can't get wmctrl to work:
http://dag.wieers.com/packages/gob2/
http://dag.wieers.com/packages/devilspie/
<flurb>
<matchers>
<matcher name="DevilsPieMatcherWindowName">
<property name="window_title" value="foobar"/>
</matcher>
</matchers>
<actions>
<action name="DevilsPieActionLayer">
<property name="above" value="TRUE"/>
</action>
</actions>
</flurb>
BTW Gnome 2.4 comes with metacity 2.6.1, which has a keybinding for
toggle_above, but no layer submenu (like in sawfish, icewm or openbox3)
in the window menu.
Achim