diff options
Diffstat (limited to 'accounts/gkleen@sif/niri/default.nix')
| -rw-r--r-- | accounts/gkleen@sif/niri/default.nix | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/accounts/gkleen@sif/niri/default.nix b/accounts/gkleen@sif/niri/default.nix index 1ff149bc..10b85169 100644 --- a/accounts/gkleen@sif/niri/default.nix +++ b/accounts/gkleen@sif/niri/default.nix | |||
| @@ -10,7 +10,6 @@ let | |||
| 10 | makoctl = lib.getExe' config.services.mako.package "makoctl"; | 10 | makoctl = lib.getExe' config.services.mako.package "makoctl"; |
| 11 | loginctl = lib.getExe' hostConfig.systemd.package "loginctl"; | 11 | loginctl = lib.getExe' hostConfig.systemd.package "loginctl"; |
| 12 | systemctl = lib.getExe' hostConfig.systemd.package "systemctl"; | 12 | systemctl = lib.getExe' hostConfig.systemd.package "systemctl"; |
| 13 | swayosd-client = lib.getExe' config.services.swayosd.package "swayosd-client"; | ||
| 14 | 13 | ||
| 15 | focus_or_spawn = pkgs.writeShellApplication { | 14 | focus_or_spawn = pkgs.writeShellApplication { |
| 16 | name = "focus-or-spawn"; | 15 | name = "focus-or-spawn"; |
| @@ -168,7 +167,6 @@ in { | |||
| 168 | imports = [ | 167 | imports = [ |
| 169 | ./waybar.nix | 168 | ./waybar.nix |
| 170 | ./mako.nix | 169 | ./mako.nix |
| 171 | ./swayosd.nix | ||
| 172 | ]; | 170 | ]; |
| 173 | 171 | ||
| 174 | options = { | 172 | options = { |
| @@ -939,15 +937,6 @@ in { | |||
| 939 | allow-when-locked = true; | 937 | allow-when-locked = true; |
| 940 | }; | 938 | }; |
| 941 | 939 | ||
| 942 | "XF86MonBrightnessUp" = { | ||
| 943 | action = spawn swayosd-client "--brightness" "raise"; | ||
| 944 | allow-when-locked = true; | ||
| 945 | }; | ||
| 946 | "XF86MonBrightnessDown" = { | ||
| 947 | action = spawn swayosd-client "--brightness" "lower"; | ||
| 948 | allow-when-locked = true; | ||
| 949 | }; | ||
| 950 | |||
| 951 | "Mod+Semicolon".action = spawn makoctl "dismiss" "--group"; | 940 | "Mod+Semicolon".action = spawn makoctl "dismiss" "--group"; |
| 952 | "Mod+Shift+Semicolon".action = spawn makoctl "dismiss" "--all"; | 941 | "Mod+Shift+Semicolon".action = spawn makoctl "dismiss" "--all"; |
| 953 | "Mod+Period".action = spawn makoctl "menu" "--" (lib.getExe config.programs.fuzzel.package) "--dmenu"; | 942 | "Mod+Period".action = spawn makoctl "menu" "--" (lib.getExe config.programs.fuzzel.package) "--dmenu"; |
| @@ -988,6 +977,14 @@ in { | |||
| 988 | allow-when-locked = true; | 977 | allow-when-locked = true; |
| 989 | action = shell { Volume."mic-muted" = "toggle"; }; | 978 | action = shell { Volume."mic-muted" = "toggle"; }; |
| 990 | }; | 979 | }; |
| 980 | "XF86MonBrightnessUp" = { | ||
| 981 | action = shell { Brightness = "up"; }; | ||
| 982 | allow-when-locked = true; | ||
| 983 | }; | ||
| 984 | "XF86MonBrightnessDown" = { | ||
| 985 | action = shell { Brightness = "down"; }; | ||
| 986 | allow-when-locked = true; | ||
| 987 | }; | ||
| 991 | })) | 988 | })) |
| 992 | (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) | 989 | (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) |
| 993 | (map ({ name, moveKey, ...}: if moveKey != null then bind moveKey { action = kdl.magic-leaf "move-column-to-workspace" name; } else null) cfg.scratchspaces) | 990 | (map ({ name, moveKey, ...}: if moveKey != null then bind moveKey { action = kdl.magic-leaf "move-column-to-workspace" name; } else null) cfg.scratchspaces) |
