summaryrefslogtreecommitdiff
path: root/scripts/setbg
diff options
context:
space:
mode:
authorSaumit Dinesan <79687674+Saumit-D@users.noreply.github.com>2021-11-10 16:01:17 +0530
committerGitHub <noreply@github.com>2021-11-10 16:01:17 +0530
commitaf8cda7385fcd761ceff5fef09401377ed2fbb86 (patch)
tree8d1831bea5328b0ac7e0ec7beceb521068807d93 /scripts/setbg
parent96fd32a61a08475d686fa5f8187566ccff870da0 (diff)
Add files via upload
Diffstat (limited to 'scripts/setbg')
-rw-r--r--scripts/setbg13
1 files changed, 13 insertions, 0 deletions
diff --git a/scripts/setbg b/scripts/setbg
new file mode 100644
index 0000000..c283dac
--- /dev/null
+++ b/scripts/setbg
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+echo "Chosing a random wallpaper..."
+wall=$(find $HOME/Pictures/Wallpaper/w/wow -type f | shuf -n 1)
+echo "Setting up the wallpaper"
+xwallpaper --zoom $wall
+echo "Generating pywal color schemes..."
+wal -i $wall >/dev/null
+sed -i $HOME/.cache/wal/colors-wol-dwm.h
+echo "Recompiling dwm w new colors..."
+echo "Press F5 to hot reload dwm!"
+#(cd $HOME/.local/src/dwm && sudo make clean install>/dev/null)
+echo "^_^ Enjoy your new look!!!"