Skip to content

Instantly share code, notes, and snippets.

@beothorn
Created May 30, 2011 17:28
Show Gist options
  • Save beothorn/999185 to your computer and use it in GitHub Desktop.
Save beothorn/999185 to your computer and use it in GitHub Desktop.
Toogle panels on gnome2
#!/bin/bash
panelList=$(gconftool-2 --all-dirs "/apps/panel/toplevels")
for panel in $panelList
do
state=$(gconftool-2 --get "$panel/auto_hide")
if [ $state = "true" ]; then
gconftool-2 --set "$panel/unhide_delay" --type integer "0"
gconftool-2 --set "$panel/auto_hide" --type bool "false"
else
gconftool-2 --set "$panel/unhide_delay" --type integer "100000"
gconftool-2 --set "$panel/auto_hide" --type bool "true"
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment