Last active
October 5, 2015 14:27
-
-
Save uugr/2820789 to your computer and use it in GitHub Desktop.
Gnome Change Background [Wallch]
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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