PDA

View Full Version : [ubuntu] add auto hide button to panel



taamir
September 1st, 2010, 02:11 PM
Hi, I want to add auto hide button or check-box to a panel.
any way to do it ?

taamir
September 2nd, 2010, 08:55 PM
Bump

Frogs Hair
September 3rd, 2010, 03:09 AM
Right click the panel and go into properties and you will find the setting there.

Frogs Hair
September 3rd, 2010, 05:13 PM
I think I misunderstood your question . I went to the add to panel menu and selected add custom launcher, but was unable to create a command to activate my auto hide launcher. I think it is because auto hide is a setting in properties and not an application like menu applications.

I also tried to add an location launcher for panel properties and the message returned was "operation not supported."

taamir
September 4th, 2010, 05:55 PM
Is There no way to make a command that changes settings in properties ?

(Maybe I need a new thread for this).

adrianoellero
November 24th, 2010, 11:25 PM
same need
thanks for helping me

Frogs Hair
November 25th, 2010, 02:11 AM
This won't create a button , right click panel go to properties and check show hide buttons, to hide panel select the arrow or line on either side of the panel.

asmoore82
November 25th, 2010, 06:31 AM
I made this script a while back, it still functions as of 10.04:

#!/bin/bash
#HidePanels
# This file is in the Public Domain.

count=0

while read line
do
keys[$((++count))]="${line}/auto_hide"
done <<EOF
$( gconftool-2 --all-dirs "/apps/panel/toplevels" )
EOF

old=$( gconftool-2 --get ${keys[1]} )

case "$old" in
"0" | "false" | "False" )
new="true"
;;
* )
new="false"
;;
esac

for key in "${keys[@]}"
do
gconftool-2 --set "$key" --type bool "$new"
done

#End of File

adrianoellero
November 25th, 2010, 10:19 AM
how can I use it in Ubuntu?

sorry but I'm not familiar with Linux yet

asmoore82
November 27th, 2010, 02:00 AM
You would have to save this in a text file and grant it executable permissions.
You could then create a custom launcher with it as the target.