aboutsummaryrefslogtreecommitdiff
path: root/.config/eww
diff options
context:
space:
mode:
Diffstat (limited to '.config/eww')
-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
}