From 51c9b070ed3dcddfec84943be08e1c2a03e8307f Mon Sep 17 00:00:00 2001 From: mono-b Date: Sat, 24 Dec 2022 08:48:23 -0300 Subject: sum changes --- themechanger.sh | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'themechanger.sh') 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 -- cgit v1.2.1