summaryrefslogtreecommitdiff
path: root/themechanger.sh
diff options
context:
space:
mode:
authormono-b <monoblanco@DRAINERDOMAIN.localdomain>2022-12-24 08:48:23 -0300
committermono-b <monoblanco@DRAINERDOMAIN.localdomain>2022-12-24 08:48:23 -0300
commit51c9b070ed3dcddfec84943be08e1c2a03e8307f (patch)
tree0b3c97a9ea41b012db2a252fcfde7808b0353ac4 /themechanger.sh
parentabd2b4e8990c054013057401cb67a985066cb41c (diff)
sum changesHEADmaster
Diffstat (limited to 'themechanger.sh')
-rwxr-xr-xthemechanger.sh15
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