summaryrefslogtreecommitdiff
path: root/bin/dwl-init.sh
diff options
context:
space:
mode:
Diffstat (limited to 'bin/dwl-init.sh')
-rwxr-xr-xbin/dwl-init.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/bin/dwl-init.sh b/bin/dwl-init.sh
new file mode 100755
index 0000000..3afae87
--- /dev/null
+++ b/bin/dwl-init.sh
@@ -0,0 +1,16 @@
+#!/bin/sh
+
+set -eu
+
+WALLPAPER=/home/samn/wallpaper.jpg
+
+trap 'kill 0' SIGINT
+
+swaybg -i "$WALLPAPER" &
+swayidle -w \
+ timeout 300 "swaylock -f -i $WALLPAPER" \
+ before-sleep "swaylock -f -i $WALLPAPER" &
+status.sh &
+somebar
+
+wait