Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Well, just like the title says : is there any "always below" option for the windows, like the "always on top" one?

If there is a shortcut that can do that, or a command that can make the window i touch become always below, it would be even better

share|improve this question
add comment

1 Answer

up vote 6 down vote accepted

First

Install Compiz Settings Manager from Ubuntu Software Center or by clicking here.
Then open it (Alt + F2 and type ccsm and hit Enter).
Go to Windows rules and choose the windows you want to be placed "always below".

Second

If you want a shortcut to change what you want to "below":
You can create a shortcut for a command. For example, open ccsm, go to Commands > Commands and add this to one Command line:

gconftool-2 --set --type=String /apps/compiz-1/plugins/winrules/screen0/options/below_match class=Gedit  

Then go to Key Bindings and choose your shortcut.

You can create another shortcut to undo this. For example:

gconftool-2 --set --type=String /apps/compiz-1/plugins/winrules/screen0/options/below_match 0  

If you want, I can make a script to toggle an app below and above.

Third

If you want to toggle below or above you can put this command into a shortcut:

i=$(gconftool-2 --get /apps/compiz-1/plugins/winrules/screen0/options/below_match) ; if [ $i = "0" ] ; then gconftool-2 --set --type=String /apps/compiz-1/plugins/winrules/screen0/options/below_match "class=Gedit" ; else gconftool-2 --set --type=String /apps/compiz-1/plugins/winrules/screen0/options/below_match 0 ; fi  

at this example I have used class=Gedit, you can change it to suit your need.

Fourth

1) Install Compiz Settings Manager and xdotool from Ubuntu Software Center or by clicking here and here.

2) Open ccsm (Alt + F2 and type ccsm and hit Enter).

3) Go to Commands > Commands and add this to one Command line:

sleep 0.2 ; xdotool click --clearmodifiers 1 ; f=$(xdotool getwindowfocus) ; i=$(gconftool-2 --get /apps/compiz-1/plugins/winrules/screen0/options/below_match) ; if [ $i = "0" ] ; then gconftool-2 --set --type=String /apps/compiz-1/plugins/winrules/screen0/options/below_match xid=$f ; else gconftool-2 --set --type=String /apps/compiz-1/plugins/winrules/screen0/options/below_match 0 ; fi

enter image description here

4) Go to Button Bindings and set it (for example to Super + Mouse-Button-1):

enter image description here

Enjoy ;-)

share|improve this answer
    
i would like to activate and deactivate it any time i want though - not have the windows always below all the time. –  Chriskin May 16 '11 at 22:22
    
You can try the Widget layer in compiz to see if it meets your needs. –  tufkab May 16 '11 at 22:36
    
-- All done ;-) -- –  desgua May 17 '11 at 1:11
    
This is really neat bit of desktop 'fu', and the ability to run a task for a specific window is pure gold! (thanks).. but I have noticed some minor and som MAJOR problems... I wonder if anyone else has been having problems? .. The major problem is: It locks up TOTALLY (I've rebooted ~15 times trying to track down this bug!... I don't knwo why it happens, but I do know that adding a time delay before xdotool click stops the lock-up..... –  Peter.O May 17 '11 at 7:52
    
continued.... The lesser problem, which may be related, is that if you hold down the modifier key(s), they will affect the click you generate in the window, even though you have used --clearmodifiers eg; with Ctrl+Shift+Alt held down for a lingering moment, text it gedit is selected up to the click point.... Also, my Lucid gconf key is /apps/compiz/... .. not /apps/compiz-1/... ... If someone is also having this same lockuo issue, it would be helpfult to know about it... but the overall idea is great :) –  Peter.O May 17 '11 at 8:00
show 6 more comments

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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