summaryrefslogtreecommitdiff
path: root/themechanger.sh
diff options
context:
space:
mode:
authormono-b <monoblanco@DRAINERDOMAIN.localdomain>2022-12-24 03:54:06 -0300
committermono-b <monoblanco@DRAINERDOMAIN.localdomain>2022-12-24 03:54:06 -0300
commitabd2b4e8990c054013057401cb67a985066cb41c (patch)
treefb81551bacae234f7728bcb4a32e863703eeac44 /themechanger.sh
parente97f4dd3e3f3f7f4f7b51e1bc5b9ebe1bdb8eecb (diff)
added new
Diffstat (limited to 'themechanger.sh')
-rwxr-xr-xthemechanger.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/themechanger.sh b/themechanger.sh
new file mode 100755
index 0000000..89d4b91
--- /dev/null
+++ b/themechanger.sh
@@ -0,0 +1,9 @@
+#!/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
+
+sed -i "s|/home/monoblanco/stf/wals/.*|$wal\"|g" ~/.config/feh/.fehbg && source ~/.config/feh/.fehbg
+wal -i "$wal"
+sh walnewsboat.sh