aboutsummaryrefslogtreecommitdiff
path: root/.config/eww/scripts
diff options
context:
space:
mode:
authorJustine Smithies <justine@smithies.me.uk>2024-12-21 17:48:52 +0000
committerJustine Smithies <justine@smithies.me.uk>2024-12-21 17:48:52 +0000
commit495104a10970d6958ce7552a0f27e95b3c099923 (patch)
treec3bb0219f2376ba49bd60d43224dde3685e5cb6d /.config/eww/scripts
parent444dca4092ce6afc25b6b1b35a410488c985adb4 (diff)
Removed swayidle lines and replaced with a script swayidle-update.sh.
Diffstat (limited to '.config/eww/scripts')
-rwxr-xr-x.config/eww/scripts/idleinhibit.sh7
1 files changed, 1 insertions, 6 deletions
diff --git a/.config/eww/scripts/idleinhibit.sh b/.config/eww/scripts/idleinhibit.sh
index b1e5d63..c1d14b0 100755
--- a/.config/eww/scripts/idleinhibit.sh
+++ b/.config/eww/scripts/idleinhibit.sh
@@ -7,12 +7,7 @@ toggle() {
pkill swayidle
notify-send --hint=string:x-canonical-private-synchronous:idleinhibit -u normal " Swayidle Inactive"
else
- read -r wallpaper<~/.cache/wallpaper
- export wallpaper="$($wallpaper)"
- 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" &
+ sh "$HOME/.config/river/scripts/swayidle-update.sh"
notify-send --hint=string:x-canonical-private-synchronous:idleinhibit -u normal " Swayidle Active"
fi
}