summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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