From cc986599429d01e6a8c39f923f88f3a936fe315a Mon Sep 17 00:00:00 2001 From: Mikael Voss Date: Mon, 26 Aug 2024 20:26:44 +0200 Subject: [PATCH] home: Add niri binding to lock session --- home/config/nil/desktop.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/home/config/nil/desktop.nix b/home/config/nil/desktop.nix index 73445b6..b7082aa 100644 --- a/home/config/nil/desktop.nix +++ b/home/config/nil/desktop.nix @@ -219,6 +219,9 @@ in lib.mkIf (osConfig.hardware.graphics.enable or false) { "Mod+Shift+U".action = quit; "Mod+Shift+C".action = power-off-monitors; + # Session lock + "Mod+Escape".action = spawn [ loginctl "lock-session" ]; + # Multimedia keys XF86Explorer.action = spawn [ xdg-open "https:" ]; } // lib.mapAttrs (n: v: v // { allow-when-locked = true; }) {