diff options
Diffstat (limited to 'themechanger.sh')
-rwxr-xr-x | themechanger.sh | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/themechanger.sh b/themechanger.sh index 89d4b91..92f2f55 100755 --- a/themechanger.sh +++ b/themechanger.sh @@ -1,9 +1,18 @@ #!/bin/sh wal=$(sxiv -o -t ~/stf/wals/) -[ "$wal" == "" ] && dunstify "ERROR: No wallpaper was selected" && exit 1 -[ $(echo "$wal" | wc -l) -gt 1 ] && dunstify "ERROR: More than 1 wallpaper selected" && exit 1 +wal_dir=$HOME/.cache/wal -sed -i "s|/home/monoblanco/stf/wals/.*|$wal\"|g" ~/.config/feh/.fehbg && source ~/.config/feh/.fehbg +if [ "$wal" == "" ] ; then + dunstify "ERROR: No wallpaper was selected" + exit 1 +elseif [ $(echo "$wal" | wc -l) -gt 1 ] + dunstify "ERROR: More than 1 wallpaper selected" + exit 1 +fi + +sed -i "s|/home/monoblanco/stf/wals/.*|$wal\"|g" ~/.config/feh/.fehbg +source ~/.config/feh/.fehbg wal -i "$wal" sh walnewsboat.sh +sh waldunst.sh |