From bd204157f353aa13169ad398e5b939f7f96c3502 Mon Sep 17 00:00:00 2001 From: Morgan McMillian Date: Sun, 3 Jan 2021 07:49:05 -0800 Subject: [PATCH] setup toggle for swayidle --- .config/sway/config | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/.config/sway/config b/.config/sway/config index e27b46e..38dd657 100644 --- a/.config/sway/config +++ b/.config/sway/config @@ -35,11 +35,12 @@ set $laptop eDP-1 output * bg $background fill ### Idle configuration -exec swayidle -w \ - timeout 900 '$lock -f' \ - timeout 3600 'swaymsg "output * dpms off"' \ - resume 'swaymsg "output * dpms on"' \ - before-sleep '$lock -f' +#exec swayidle -w \ +# timeout 900 '$lock -f' \ +# timeout 3600 'swaymsg "output * dpms off"' \ +# resume 'swaymsg "output * dpms on"' \ +# before-sleep '$lock -f' +exec /home/thrrgilag/bin/idle #bindswitch --reload lid:on output $laptop disable #bindswitch --reload lid:off output $laptop enable @@ -198,6 +199,9 @@ bindsym $mod+r mode "resize" # screen lock bindsym $mod+Mod1+l exec "$lock -f" +bindsym Scroll_Lock exec "$lock -f" +bindsym $mod+Scroll_Lock exec pkill swayidle +bindsym $mod+Mod1+Scroll_Lock exec /home/thrrgilag/bin/idle # screenshots bindsym Print exec grim ~/screenshots/$(date +%Y-%m-%d_%H-%m-%s).png @@ -232,7 +236,7 @@ bar { include /etc/sway/config.d/* -exec nm-applet --indicator exec lxpolkit -exec mako +exec mako > /tmp/mako.log 2>&1 +exec nm-applet --indicator exec nextcloud