From 43af16801fcbb7056a51ed5fd6539c74ff5c0379 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Fri, 12 Sep 2025 14:21:21 +0200 Subject: ... --- accounts/gkleen@sif/niri/default.nix | 44 +++++++++++++++++++++++------------- 1 file changed, 28 insertions(+), 16 deletions(-) (limited to 'accounts/gkleen@sif/niri/default.nix') diff --git a/accounts/gkleen@sif/niri/default.nix b/accounts/gkleen@sif/niri/default.nix index 32d55f97..3c29b83c 100644 --- a/accounts/gkleen@sif/niri/default.nix +++ b/accounts/gkleen@sif/niri/default.nix @@ -165,7 +165,6 @@ let with-focused-window-action = config.lib.niri.actions.spawn (lib.getExe (with_predicate_window ".is_focused")); in { imports = [ - ./waybar.nix ./mako.nix ]; @@ -716,7 +715,7 @@ in { (plain "layer-rule" [ (sleaf "match" { namespace = "^notifications$"; }) - (sleaf "match" { namespace = "^waybar$"; }) + (sleaf "match" { namespace = "^bar$"; }) (sleaf "match" { namespace = "^launcher$"; }) (sleaf "block-out-from" "screencast") ]) @@ -908,23 +907,23 @@ in { "Mod+Right".action = set-column-width "+10%"; "Mod+Shift+Z" = { - action = spawn (lib.getExe niri) "msg" "action" "power-off-monitors"; + action = power-off-monitors; allow-when-locked = true; }; - "Mod+Shift+L".action = spawn loginctl "lock-session"; + # "Mod+Shift+L".action = spawn loginctl "lock-session"; "Mod+Shift+E".action = quit; - "Mod+Shift+Minus" = { - action = spawn systemctl "suspend"; - allow-when-locked = true; - }; - "Mod+Shift+Control+Minus" = { - action = spawn systemctl "hibernate"; - allow-when-locked = true; - }; - "Mod+Shift+P" = { - action = spawn (lib.getExe pkgs.playerctl) "-a" "pause"; - allow-when-locked = true; - }; + # "Mod+Shift+Minus" = { + # action = spawn systemctl "suspend"; + # allow-when-locked = true; + # }; + # "Mod+Shift+Control+Minus" = { + # action = spawn systemctl "hibernate"; + # allow-when-locked = true; + # }; + # "Mod+Shift+P" = { + # action = spawn (lib.getExe pkgs.playerctl) "-a" "pause"; + # allow-when-locked = true; + # }; "Mod+Semicolon".action = spawn makoctl "dismiss" "--group"; "Mod+Shift+Semicolon".action = spawn makoctl "dismiss" "--all"; @@ -974,6 +973,19 @@ in { action = shell { Brightness = "down"; }; allow-when-locked = true; }; + "Mod+Shift+L".action = shell { LockSession = {}; }; + "Mod+Shift+Minus" = { + action = shell { Suspend = {}; }; + allow-when-locked = true; + }; + "Mod+Shift+Control+Minus" = { + action = shell { Hibernate = {}; }; + allow-when-locked = true; + }; + "Mod+Shift+P" = { + action = shell { Mpris = { PauseAll = {}; }; }; + allow-when-locked = true; + }; })) (map ({ name, selector, spawn, key, ...}: if key != null && selector != null && spawn != null then bind key { action = focus-or-spawn-action selector name spawn; } else null) cfg.scratchspaces) (map ({ name, moveKey, ...}: if moveKey != null then bind moveKey { action = kdl.magic-leaf "move-column-to-workspace" name; } else null) cfg.scratchspaces) -- cgit v1.2.3