From 31aefef78042ef05b8e5b27b362f80c4ab2220f3 Mon Sep 17 00:00:00 2001 From: Michael Hunteman Date: Fri, 1 Sep 2023 14:35:13 -0500 Subject: Move idle and lock to desktop config --- .config/sway/desktop | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to '.config/sway/desktop') diff --git a/.config/sway/desktop b/.config/sway/desktop index 966229e..b62bd31 100644 --- a/.config/sway/desktop +++ b/.config/sway/desktop @@ -7,6 +7,16 @@ input * { xkb_options caps:escape } +output * bg ~/pictures/wallpaper.png fill +exec swayidle -w \ + timeout 300 'swaylock -i /usr/share/backgrounds/sway/Sway_Wallpaper_Blue_1920x1080.png --scaling fill' \ + timeout 600 'swaymsg "output * dpms off"' \ + resume 'swaymsg "output * dpms on"' + +# Lock +bindsym $mod+XF86Sleep exec swaylock -c 00000000 +bindsym $mod+Pause exec swaylock -i /usr/share/backgrounds/sway/Sway_Wallpaper_Blue_1920x1080.png --scaling fill + # Volume bindsym --locked XF86AudioRaiseVolume exec amixer set Master 2%+ bindsym --locked XF86AudioLowerVolume exec amixer set Master 2%- -- cgit v1.2.3