aboutsummaryrefslogtreecommitdiff
path: root/wallpicker
diff options
context:
space:
mode:
Diffstat (limited to 'wallpicker')
-rwxr-xr-xwallpicker14
1 files changed, 14 insertions, 0 deletions
diff --git a/wallpicker b/wallpicker
new file mode 100755
index 0000000..c28c149
--- /dev/null
+++ b/wallpicker
@@ -0,0 +1,14 @@
+#!/usr/bin/env bash
+
+FOLDER=~/Pictures/wallpapers
+
+CHOICE=$(swayimg -a wallpicker --gallery $FOLDER)
+
+case $CHOICE in
+ *.*) wallust run $CHOICE ;;
+ *) exit 0 ;;
+esac
+
+swaymsg reload
+killall dunst
+notify-send "Updated wallpaper and colorscheme."