From 78e0b9e9d88144c7b311fc9badd5fbc6dbecc0dd Mon Sep 17 00:00:00 2001 From: Justine Smithies Date: Sat, 21 Dec 2024 17:50:53 +0000 Subject: Seperated swayidle into it's own script to allow dynamic wallpaper changing and the swayidle lock screen having a matching wallpaper. --- .config/river/scripts/swayidle-update.sh | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100755 .config/river/scripts/swayidle-update.sh (limited to '.config') 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" & -- cgit v1.2.3