Skip to content

Instantly share code, notes, and snippets.

@uugr
Last active October 5, 2015 14:27
Show Gist options
  • Save uugr/2820789 to your computer and use it in GitHub Desktop.
Save uugr/2820789 to your computer and use it in GitHub Desktop.
Gnome Change Background [Wallch]
#!/bin/bash
###########################################################################
# Nautilus script for Wallch
# This script changes desktop wallpaper via command "wallch --next"
#
# Usage:
# Move the script under /home/$USER/.local/share/nautilus/scripts/
# Set executable permission for script. chmod +x scriptname
#
# This Program Licensed and Distributed under the terms of GPLv3
# See GPLv3 Details <http://www.gnu.org/licenses/>
#
# Creation Date May 26 2012
# Created by Ugur
# Revision Date Apr 07 2014
# Revised by Ugur
###########################################################################
if [ "$NAUTILUS_SCRIPT_CURRENT_URI" == "file://$HOME/Desktop" ]
then
# notify-send "Changing Background"
eval "wallch --next"
else
notify-send "Run Only On Desktop"
fi
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment