diff --git a/alex/sway.nix b/alex/sway.nix index b9e5265..bfa6e62 100644 --- a/alex/sway.nix +++ b/alex/sway.nix @@ -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