Skip to content

Instantly share code, notes, and snippets.

@waimus
Created January 15, 2021 16:55
Show Gist options
  • Save waimus/1045f00ad7bc6613fb368fe36ce82f30 to your computer and use it in GitHub Desktop.
Save waimus/1045f00ad7bc6613fb368fe36ce82f30 to your computer and use it in GitHub Desktop.
Toggle dash-to-dock extend panel height settings when run. Attach this script to a keyboard shortcut via GNOME settings for handy use. This script uses dconf.
# Retrieving current condition of the panel
isExtended=$(dconf read /org/gnome/shell/extensions/dash-to-dock/extend-height)
# Invert condition
if [ "$isExtended" = true ] ; then
dconf write /org/gnome/shell/extensions/dash-to-dock/extend-height false
else
dconf write /org/gnome/shell/extensions/dash-to-dock/extend-height true
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment