summaryrefslogtreecommitdiffstats
path: root/set-background.sh
diff options
context:
space:
mode:
authorFlorian Pritz <f-p@gmx.at>2009-02-23 18:09:43 +0100
committerFlorian Pritz <f-p@gmx.at>2009-02-23 18:09:43 +0100
commitc77adbb09670a5261b317a4cdfa41255019e896b (patch)
treef98dc0e9bf977798f7ed3b725a5e94c9a4e655c1 /set-background.sh
parent5ac7865c1d8887a912f3367b32ac64bddfc7ee01 (diff)
downloadbin-c77adbb09670a5261b317a4cdfa41255019e896b.tar.gz
bin-c77adbb09670a5261b317a4cdfa41255019e896b.tar.xz
removed some hardcoded parts from set-background.sh
Diffstat (limited to 'set-background.sh')
-rwxr-xr-xset-background.sh10
1 files changed, 5 insertions, 5 deletions
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 <f-p@gmx.at>
# 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