From ad07e046018ce31b133c50478fcf1801fcf3ebf6 Mon Sep 17 00:00:00 2001 From: Michael Mandl Date: Fri, 12 Jul 2024 22:25:38 +0200 Subject: [PATCH] feat(sway): enable volume and brightness keys via swayosd --- sway/default.nix | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/sway/default.nix b/sway/default.nix index f583d3d..4f97e3a 100644 --- a/sway/default.nix +++ b/sway/default.nix @@ -126,12 +126,16 @@ in "${modifier}+l" = "exec ${lock_command}"; "${modifier}+Shift+m" = "output '*' power off, output '*' power on, exec ${pkgs.kanshi}/bin/kanshictl reload"; - "--release Caps_Lock" = "exec swayosd --caps-lock"; + "--release Caps_Lock" = "exec swayosd-client --caps-lock"; + "--release Num_Lock" = "exec swayosd-client --num-lock"; - "XF86AudioRaiseVolume" = "exec swayosd --output-volume raise"; - "XF86AudioLowerVolume" = "exec swayosd --output-volume lower"; - "XF86AudioMute" = "exec swayosd --output-volume mute-toggle"; - "XF86AudioMicMute" = "exec swayosd --input-volume mute-toggle"; + "XF86AudioRaiseVolume" = "exec swayosd-client --output-volume raise"; + "XF86AudioLowerVolume" = "exec swayosd-client --output-volume lower"; + "XF86AudioMute" = "exec swayosd-client --output-volume mute-toggle"; + "XF86AudioMicMute" = "exec swayosd-client --input-volume mute-toggle"; + + "XF86MonBrightnessUp" = "exec swayosd-client --brightness raise"; + "XF86MonBrightnessDown" = "exec swayosd-client --brightness lower"; }; startup = [