diff options
| author | Gregor Kleen <gkleen@yggdrasil.li> | 2025-09-12 14:21:21 +0200 |
|---|---|---|
| committer | Gregor Kleen <gkleen@yggdrasil.li> | 2025-09-12 14:21:21 +0200 |
| commit | 43af16801fcbb7056a51ed5fd6539c74ff5c0379 (patch) | |
| tree | bbf61e0d0df1cac84c441afaddcb2184dc450181 /accounts/gkleen@sif/niri/default.nix | |
| parent | da23e39c353e68fdc7c5839d78945e88352a7f92 (diff) | |
| download | nixos-43af16801fcbb7056a51ed5fd6539c74ff5c0379.tar nixos-43af16801fcbb7056a51ed5fd6539c74ff5c0379.tar.gz nixos-43af16801fcbb7056a51ed5fd6539c74ff5c0379.tar.bz2 nixos-43af16801fcbb7056a51ed5fd6539c74ff5c0379.tar.xz nixos-43af16801fcbb7056a51ed5fd6539c74ff5c0379.zip | |
...
Diffstat (limited to 'accounts/gkleen@sif/niri/default.nix')
| -rw-r--r-- | accounts/gkleen@sif/niri/default.nix | 44 |
1 files changed, 28 insertions, 16 deletions
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 | |||
| 165 | with-focused-window-action = config.lib.niri.actions.spawn (lib.getExe (with_predicate_window ".is_focused")); | 165 | with-focused-window-action = config.lib.niri.actions.spawn (lib.getExe (with_predicate_window ".is_focused")); |
| 166 | in { | 166 | in { |
| 167 | imports = [ | 167 | imports = [ |
| 168 | ./waybar.nix | ||
| 169 | ./mako.nix | 168 | ./mako.nix |
| 170 | ]; | 169 | ]; |
| 171 | 170 | ||
| @@ -716,7 +715,7 @@ in { | |||
| 716 | 715 | ||
| 717 | (plain "layer-rule" [ | 716 | (plain "layer-rule" [ |
| 718 | (sleaf "match" { namespace = "^notifications$"; }) | 717 | (sleaf "match" { namespace = "^notifications$"; }) |
| 719 | (sleaf "match" { namespace = "^waybar$"; }) | 718 | (sleaf "match" { namespace = "^bar$"; }) |
| 720 | (sleaf "match" { namespace = "^launcher$"; }) | 719 | (sleaf "match" { namespace = "^launcher$"; }) |
| 721 | (sleaf "block-out-from" "screencast") | 720 | (sleaf "block-out-from" "screencast") |
| 722 | ]) | 721 | ]) |
| @@ -908,23 +907,23 @@ in { | |||
| 908 | "Mod+Right".action = set-column-width "+10%"; | 907 | "Mod+Right".action = set-column-width "+10%"; |
| 909 | 908 | ||
| 910 | "Mod+Shift+Z" = { | 909 | "Mod+Shift+Z" = { |
| 911 | action = spawn (lib.getExe niri) "msg" "action" "power-off-monitors"; | 910 | action = power-off-monitors; |
| 912 | allow-when-locked = true; | 911 | allow-when-locked = true; |
| 913 | }; | 912 | }; |
| 914 | "Mod+Shift+L".action = spawn loginctl "lock-session"; | 913 | # "Mod+Shift+L".action = spawn loginctl "lock-session"; |
| 915 | "Mod+Shift+E".action = quit; | 914 | "Mod+Shift+E".action = quit; |
| 916 | "Mod+Shift+Minus" = { | 915 | # "Mod+Shift+Minus" = { |
| 917 | action = spawn systemctl "suspend"; | 916 | # action = spawn systemctl "suspend"; |
| 918 | allow-when-locked = true; | 917 | # allow-when-locked = true; |
| 919 | }; | 918 | # }; |
| 920 | "Mod+Shift+Control+Minus" = { | 919 | # "Mod+Shift+Control+Minus" = { |
| 921 | action = spawn systemctl "hibernate"; | 920 | # action = spawn systemctl "hibernate"; |
| 922 | allow-when-locked = true; | 921 | # allow-when-locked = true; |
| 923 | }; | 922 | # }; |
| 924 | "Mod+Shift+P" = { | 923 | # "Mod+Shift+P" = { |
| 925 | action = spawn (lib.getExe pkgs.playerctl) "-a" "pause"; | 924 | # action = spawn (lib.getExe pkgs.playerctl) "-a" "pause"; |
| 926 | allow-when-locked = true; | 925 | # allow-when-locked = true; |
| 927 | }; | 926 | # }; |
| 928 | 927 | ||
| 929 | "Mod+Semicolon".action = spawn makoctl "dismiss" "--group"; | 928 | "Mod+Semicolon".action = spawn makoctl "dismiss" "--group"; |
| 930 | "Mod+Shift+Semicolon".action = spawn makoctl "dismiss" "--all"; | 929 | "Mod+Shift+Semicolon".action = spawn makoctl "dismiss" "--all"; |
| @@ -974,6 +973,19 @@ in { | |||
| 974 | action = shell { Brightness = "down"; }; | 973 | action = shell { Brightness = "down"; }; |
| 975 | allow-when-locked = true; | 974 | allow-when-locked = true; |
| 976 | }; | 975 | }; |
| 976 | "Mod+Shift+L".action = shell { LockSession = {}; }; | ||
| 977 | "Mod+Shift+Minus" = { | ||
| 978 | action = shell { Suspend = {}; }; | ||
| 979 | allow-when-locked = true; | ||
| 980 | }; | ||
| 981 | "Mod+Shift+Control+Minus" = { | ||
| 982 | action = shell { Hibernate = {}; }; | ||
| 983 | allow-when-locked = true; | ||
| 984 | }; | ||
| 985 | "Mod+Shift+P" = { | ||
| 986 | action = shell { Mpris = { PauseAll = {}; }; }; | ||
| 987 | allow-when-locked = true; | ||
| 988 | }; | ||
| 977 | })) | 989 | })) |
| 978 | (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) | 990 | (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) |
| 979 | (map ({ name, moveKey, ...}: if moveKey != null then bind moveKey { action = kdl.magic-leaf "move-column-to-workspace" name; } else null) cfg.scratchspaces) | 991 | (map ({ name, moveKey, ...}: if moveKey != null then bind moveKey { action = kdl.magic-leaf "move-column-to-workspace" name; } else null) cfg.scratchspaces) |
