Set screen lock

This commit is contained in:
Alexander Wainwright
2025-12-23 16:25:20 +10:00
parent 0a88aa6f58
commit f0020b9cbd

View File

@@ -106,6 +106,7 @@ in
startup = [
{ command = "waybar"; }
{ command = "mako"; }
{ command = "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'"; }
];
keybindings = let
@@ -117,6 +118,8 @@ in
"${modifier}+Shift+c" = "reload";
"${modifier}+Shift+e" = "exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit'";
"${modifier}+Shift+l" = "exec swaylock -f -c 000000";
"${modifier}+Shift+s" = "exec grim -g \"$(slurp)\" - | wl-copy";
# Workspace cycling with mouse