diff options
author | mono-b <monoblanco@DRAINERDOMAIN.localdomain> | 2022-12-24 08:48:23 -0300 |
---|---|---|
committer | mono-b <monoblanco@DRAINERDOMAIN.localdomain> | 2022-12-24 08:48:23 -0300 |
commit | 51c9b070ed3dcddfec84943be08e1c2a03e8307f (patch) | |
tree | 0b3c97a9ea41b012db2a252fcfde7808b0353ac4 /themechanger.sh | |
parent | abd2b4e8990c054013057401cb67a985066cb41c (diff) |
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 |