From 6e1b82ba3dd9985a68b7802278178d4f73088dc9 Mon Sep 17 00:00:00 2001 From: Daniil Tsivinsky Date: Sat, 11 Jun 2022 00:54:56 +0300 Subject: [PATCH] execute swayidle before-sleep with swaylock --- config/.config/sway/config | 5 +++++ 1 file changed, 5 insertions(+) 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 + # _ ____ ____ _ ___ ____ _ _____ ___ ___ _ _ ____