From 38d25e2f6edca0c0fcb32c1340bafac7c9f4739c Mon Sep 17 00:00:00 2001 From: Baitinq Date: Thu, 15 Sep 2022 02:05:55 +0200 Subject: Add wayland idling/locking via sway(idle/lock) --- dotfiles/river/init | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'dotfiles/river/init') diff --git a/dotfiles/river/init b/dotfiles/river/init index 106f6f1..0b29c0e 100755 --- a/dotfiles/river/init +++ b/dotfiles/river/init @@ -12,6 +12,12 @@ xrdb ~/.Xresources & swaybg -i ~/Images/Wallpapers/Day/wave.jpg & +swayidle -w \ + timeout 300 'swaylock -f -F -c 000000' \ + timeout 400 'wlr-randr --output $(wlr-randr | head -n1 | awk "{print $1;}") --off' \ + resume 'wlr-randr --output $(wlr-randr | head -n1 | awk "{print $1;}") --on' \ + before-sleep 'swaylock -f -F -c 000000' & + riverctl spawn "dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=river" riverctl spawn "systemctl --user import-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=river" -- cgit 1.4.1