From 76bfa107fe3999824bd3c3495ebb732d5c432af7 Mon Sep 17 00:00:00 2001 From: Aminda Suomalainen Date: Fri, 15 Apr 2022 10:40:31 +0300 Subject: [PATCH] sway: add swaylock bind --- conf/sway/config | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/conf/sway/config b/conf/sway/config index 6a68dc57..3e750b38 100644 --- a/conf/sway/config +++ b/conf/sway/config @@ -20,6 +20,9 @@ set $term footclient #set $menu dmenu_path | dmenu | xargs swaymsg exec -- set $menu bemenu-run | xargs swaymsg exec -- +# Screen lock command +set $ScreenLockCmd swaylock -c 000000 -f + ### Output configuration # # Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/) @@ -200,6 +203,9 @@ mode "resize" { } bindsym $mod+r mode "resize" +# Lock screen +bindsym Control+$mod+l exec $ScreenLockCmd + # # Status Bar: #