diff --git a/config/.config/sway/config b/config/.config/sway/config index 2e7892d..db07091 100644 --- a/config/.config/sway/config +++ b/config/.config/sway/config @@ -37,6 +37,8 @@ set $textColor #cbccc6 set $mainMonitor "HDMI-A-1" set $laptopMonitor "eDP-1" +set $lockCmd "swaylock" + # ____ _____ _ _ _____ ____ _ _ # / ___| ____| \ | | ____| _ \ / \ | | @@ -74,6 +76,9 @@ output $laptopMonitor pos 0 0 output $mainMonitor pos 1920 0 mode 1920x1080@144Hz +# idle and lock +exec_always swayidle before-sleep $lockCmd + # _ ____ ____ _ ___ ____ _ _____ ___ ___ _ _ ____