From 4864c2d85524ed6ba933fa1da92f587dfc6efd58 Mon Sep 17 00:00:00 2001 From: Daniel Meiburg Date: Sun, 1 Oct 2023 00:14:37 +0200 Subject: [PATCH] sway: enable swaylock --- .config/sway/config | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/.config/sway/config b/.config/sway/config index 97e7fb9..e15afcc 100644 --- a/.config/sway/config +++ b/.config/sway/config @@ -37,11 +37,11 @@ output * bg ~/.config/sway/wallpaper.jpg fill # # Example configuration: # -# exec swayidle -w \ -# timeout 300 'swaylock -f -c 000000' \ -# timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \ -# before-sleep 'swaylock -f -c 000000' -# +exec swayidle -w \ + timeout 300 'swaylock -f -c 000000' \ + timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \ + before-sleep 'swaylock -f -c 000000' + # This will lock your screen after 300 seconds of inactivity, then turn off # your displays after another 300 seconds, and turn your screens back on when # resumed. It will also lock your screen before your computer goes to sleep. @@ -57,10 +57,9 @@ input type:keyboard { bindsym $mod+Return exec $term bindsym $mod+Shift+b exec firefox bindsym $mod+Shift+m exec MOZ_ENABLE_WAYLAND=1 thunderbird - bindsym $mod+Shift+p exec ~/bin/passmenu - bindsym $mod+Shift+s exec doas shutdown -P now - bindsym $mod+Shift+o exec flatpak run md.obsidian.Obsidian - bindsym $mod+Shift+r exec ~/bin/read_book + bindsym $mod+Shift+s exec shutdown -P now + bindsym $mod+Shift+r exec systemctl suspend + bindsym $mod+Shift+i exec swaylock -f -c 000000 # Kill focused window bindsym $mod+Shift+q kill @@ -230,7 +229,7 @@ bar swaybar_command waybar #exec_always /usr/libexec/kdeconnectd & exec_always "pkill kanshi; exec kanshi" -exec_always mako +exec_always mako --default-timeout=5000 & #exec gammastep-indicator -l 54.09:12.13 -t 6500:3000 & #exec pipewire & #exec wireplumber &