diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2025-01-28 10:59:42 +0100 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2025-01-28 10:59:42 +0100 |
commit | 3315faabe0201f9a209235ef5291f02076dbcbac (patch) | |
tree | 19aec52c5efb3258b005885073a8dbe9afc0b52c /accounts/gkleen@sif/niri/default.nix | |
parent | ae7a3dcdf7dd30930c458e4b5210d9427425e4eb (diff) | |
download | nixos-3315faabe0201f9a209235ef5291f02076dbcbac.tar nixos-3315faabe0201f9a209235ef5291f02076dbcbac.tar.gz nixos-3315faabe0201f9a209235ef5291f02076dbcbac.tar.bz2 nixos-3315faabe0201f9a209235ef5291f02076dbcbac.tar.xz nixos-3315faabe0201f9a209235ef5291f02076dbcbac.zip |
...
Diffstat (limited to 'accounts/gkleen@sif/niri/default.nix')
-rw-r--r-- | accounts/gkleen@sif/niri/default.nix | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/accounts/gkleen@sif/niri/default.nix b/accounts/gkleen@sif/niri/default.nix index 17da42d6..f603a9f9 100644 --- a/accounts/gkleen@sif/niri/default.nix +++ b/accounts/gkleen@sif/niri/default.nix | |||
@@ -2,11 +2,10 @@ | |||
2 | let | 2 | let |
3 | niri = config.programs.niri.package; | 3 | niri = config.programs.niri.package; |
4 | terminal = lib.getExe config.programs.kitty.package; | 4 | terminal = lib.getExe config.programs.kitty.package; |
5 | lightctl = lib.getExe' config.services.avizo.package "lightctl"; | ||
6 | volumectl = lib.getExe' config.services.avizo.package "volumectl"; | ||
7 | makoctl = lib.getExe' config.services.mako.package "makoctl"; | 5 | makoctl = lib.getExe' config.services.mako.package "makoctl"; |
8 | loginctl = lib.getExe' hostConfig.systemd.package "loginctl"; | 6 | loginctl = lib.getExe' hostConfig.systemd.package "loginctl"; |
9 | systemctl = lib.getExe' hostConfig.systemd.package "systemctl"; | 7 | systemctl = lib.getExe' hostConfig.systemd.package "systemctl"; |
8 | swayosd-client = lib.getExe' config.services.swayosd.package "swayosd-client"; | ||
10 | 9 | ||
11 | focus_or_spawn = pkgs.writeShellApplication { | 10 | focus_or_spawn = pkgs.writeShellApplication { |
12 | name = "focus-or-spawn"; | 11 | name = "focus-or-spawn"; |
@@ -122,6 +121,7 @@ in { | |||
122 | imports = [ | 121 | imports = [ |
123 | ./waybar.nix | 122 | ./waybar.nix |
124 | ./mako.nix | 123 | ./mako.nix |
124 | ./swayosd.nix | ||
125 | ]; | 125 | ]; |
126 | 126 | ||
127 | config = { | 127 | config = { |
@@ -577,27 +577,27 @@ in { | |||
577 | }; | 577 | }; |
578 | 578 | ||
579 | "XF86MonBrightnessUp" = { | 579 | "XF86MonBrightnessUp" = { |
580 | action = spawn lightctl "-d" "-e4" "-n1" "up"; | 580 | action = spawn swayosd-client "--brightness" "raise"; |
581 | allow-when-locked = true; | 581 | allow-when-locked = true; |
582 | }; | 582 | }; |
583 | "XF86MonBrightnessDown" = { | 583 | "XF86MonBrightnessDown" = { |
584 | action = spawn lightctl "-d" "-e4" "-n1" "down"; | 584 | action = spawn swayosd-client "--brightness" "lower"; |
585 | allow-when-locked = true; | 585 | allow-when-locked = true; |
586 | }; | 586 | }; |
587 | "XF86AudioRaiseVolume" = { | 587 | "XF86AudioRaiseVolume" = { |
588 | action = spawn volumectl "-d" "-u" "up"; | 588 | action = spawn swayosd-client "--output-volume" "raise"; |
589 | allow-when-locked = true; | 589 | allow-when-locked = true; |
590 | }; | 590 | }; |
591 | "XF86AudioLowerVolume" = { | 591 | "XF86AudioLowerVolume" = { |
592 | action = spawn volumectl "-d" "-u" "down"; | 592 | action = spawn swayosd-client "--output-volume" "lower"; |
593 | allow-when-locked = true; | 593 | allow-when-locked = true; |
594 | }; | 594 | }; |
595 | "XF86AudioMute" = { | 595 | "XF86AudioMute" = { |
596 | action = spawn volumectl "-d" "toggle-mute"; | 596 | action = spawn swayosd-client "--output-volume" "mute-toggle"; |
597 | allow-when-locked = true; | 597 | allow-when-locked = true; |
598 | }; | 598 | }; |
599 | "XF86AudioMicMute" = { | 599 | "XF86AudioMicMute" = { |
600 | action = spawn volumectl "-d" "-m" "toggle-mute"; | 600 | action = spawn swayosd-client "--input-volume" "mute-toggle"; |
601 | allow-when-locked = true; | 601 | allow-when-locked = true; |
602 | }; | 602 | }; |
603 | 603 | ||