Skip to content

Instantly share code, notes, and snippets.

@Mithrilwoodrat
Created July 28, 2016 14:53
Show Gist options
  • Save Mithrilwoodrat/5cca7d33195c2aab4513c0c55658a7b1 to your computer and use it in GitHub Desktop.
Save Mithrilwoodrat/5cca7d33195c2aab4513c0c55658a7b1 to your computer and use it in GitHub Desktop.
#!/bin/bash
output=$(gsettings get org.gnome.desktop.background show-desktop-icons)
echo "show-desktop-icons is $output"
if [ "$output" == "true" ]; then
gsettings set org.gnome.desktop.background show-desktop-icons false
echo "hide"
else
gsettings set org.gnome.desktop.background show-desktop-icons true
echo "show"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment