From c77adbb09670a5261b317a4cdfa41255019e896b Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Mon, 23 Feb 2009 18:09:43 +0100 Subject: removed some hardcoded parts from set-background.sh --- set-background.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'set-background.sh') diff --git a/set-background.sh b/set-background.sh index 8d20468..62ebcc0 100755 --- a/set-background.sh +++ b/set-background.sh @@ -1,7 +1,7 @@ #!/bin/sh #---------------------------------------------------- # File: ~/bin/set-background.sh -# Version: 0.1.2 +# Version: 0.2 # Author: Florian "Bluewind" Pritz # start screen with a combined config file #---------------------------------------------------- @@ -32,10 +32,10 @@ fi FILE=$1 if [ -f $FILE ]; then - echo "feh --bg-center ${FILE}" > "/home/flo/.fehbg"; - rm "/home/flo/backgrounds/current_bg"; - ln -sf "${FILE}" "/home/flo/backgrounds/current_bg"; - source /home/flo/.fehbg + echo "feh --bg-center ${FILE}" > "$HOME/.fehbg"; + rm "$HOME/backgrounds/current_bg"; + ln -sf "${FILE}" "$HOME/backgrounds/current_bg"; + source $HOME/.fehbg else notify-send -t 10000 "Background" "Error: File \"${FILE}\" doesn't exist"; exit 1 -- cgit v1.2.3-24-g4f1b