aboutsummaryrefslogtreecommitdiff
path: root/.config/waybar/scripts/swayidle-update.sh
diff options
context:
space:
mode:
authorJustine Smithies <justine@smithies.me.uk>2026-01-24 17:19:05 +0000
committerJustine Smithies <justine@smithies.me.uk>2026-01-24 17:19:05 +0000
commit278f79a4cb5f844e76bb47e50534ed5e28f36505 (patch)
tree7ac1232511f162cdd82e1c1415c99a6c0ae0ba65 /.config/waybar/scripts/swayidle-update.sh
parent5f7f807bfcfb09bd9b745b0530892046e2475307 (diff)
Initial commit
Diffstat (limited to '.config/waybar/scripts/swayidle-update.sh')
-rwxr-xr-x.config/waybar/scripts/swayidle-update.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/.config/waybar/scripts/swayidle-update.sh b/.config/waybar/scripts/swayidle-update.sh
new file mode 100755
index 0000000..1f905a9
--- /dev/null
+++ b/.config/waybar/scripts/swayidle-update.sh
@@ -0,0 +1,7 @@
+#!/bin/sh
+pkill -f swayidle
+read -r wallpaper<"$HOME/.cache/wallpaper"
+swayidle -w \
+ timeout 300 "swaylock -f -i $wallpaper --effect-blur 10x5 --clock --datestr '%a %d %b %Y' --indicator" \
+ timeout 600 "wlopm --off \*;swaylock -F -i $wallpaper --effect-blur 10x5 --clock --datestr '%a %d %b %Y' --indicator" resume "wlopm --on \*" &
+# before-sleep "swaylock -f -i $wallpaper --effect-blur 10x5 --clock --datestr '%a %d %b %Y' --indicator" &