summaryrefslogtreecommitdiff
path: root/.scripts/update-bg
diff options
context:
space:
mode:
authorDrNuget <drnuget@outlook.com>2025-01-17 11:14:28 +0200
committerDrNuget <drnuget@outlook.com>2025-01-17 11:14:28 +0200
commit85acf40be916d0ffcc085cde6e3893ea9bdfff2d (patch)
tree2e908b10b73c69136d7412f7ea29ad2b07e57428 /.scripts/update-bg
parentcad911c14a6ec5f4134d56a3f5154cd4d668efb2 (diff)
dwl scripts
Diffstat (limited to '.scripts/update-bg')
-rwxr-xr-x.scripts/update-bg9
1 files changed, 9 insertions, 0 deletions
diff --git a/.scripts/update-bg b/.scripts/update-bg
new file mode 100755
index 0000000..2612931
--- /dev/null
+++ b/.scripts/update-bg
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+echo $#
+if [ $# -ne 0 ]; then
+ export WALLPAPER=$1
+fi
+
+pkill swaybg
+swaybg -i $WALLPAPER > /dev/null 2> /dev/null &