aboutsummaryrefslogtreecommitdiff
path: root/.config/river
diff options
context:
space:
mode:
authorJustine Smithies <justine@smithies.me.uk>2024-12-21 17:50:53 +0000
committerJustine Smithies <justine@smithies.me.uk>2024-12-21 17:50:53 +0000
commit78e0b9e9d88144c7b311fc9badd5fbc6dbecc0dd (patch)
treef55bbba8a5d63d1256745657c4ea53f2a98eaaf4 /.config/river
parent3984000fc66671cd5d2217b3a4ae14d5ea8c5e0c (diff)
Seperated swayidle into it's own script to allow dynamic wallpaper changing and the swayidle lock screen having a matching wallpaper.
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" &