aboutsummaryrefslogtreecommitdiff
path: root/.config/river
diff options
context:
space:
mode:
Diffstat (limited to '.config/river')
-rwxr-xr-x.config/river/scripts/swayidle-update.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/.config/river/scripts/swayidle-update.sh b/.config/river/scripts/swayidle-update.sh
new file mode 100755
index 0000000..7a84607
--- /dev/null
+++ b/.config/river/scripts/swayidle-update.sh
@@ -0,0 +1,6 @@
+#!/bin/sh
+pkill -f swayidle
+swayidle -w \
+ timeout 300 "swaylock -f -i $wallpaper" \
+ timeout 600 "wlopm --off \*;swaylock -F -i $wallpaper" resume "wlopm --on \*" \
+ before-sleep "swaylock -f -i $wallpaper" &