feat(sway): enable volume and brightness keys via swayosd

This commit is contained in:
mandlm 2024-07-12 22:25:38 +02:00
parent d6b4959e03
commit ad07e04601
Signed by: mandlm
GPG Key ID: 4AA25D647AA54CC7

View File

@ -126,12 +126,16 @@ in
"${modifier}+l" = "exec ${lock_command}"; "${modifier}+l" = "exec ${lock_command}";
"${modifier}+Shift+m" = "output '*' power off, output '*' power on, exec ${pkgs.kanshi}/bin/kanshictl reload"; "${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"; "XF86AudioRaiseVolume" = "exec swayosd-client --output-volume raise";
"XF86AudioLowerVolume" = "exec swayosd --output-volume lower"; "XF86AudioLowerVolume" = "exec swayosd-client --output-volume lower";
"XF86AudioMute" = "exec swayosd --output-volume mute-toggle"; "XF86AudioMute" = "exec swayosd-client --output-volume mute-toggle";
"XF86AudioMicMute" = "exec swayosd --input-volume mute-toggle"; "XF86AudioMicMute" = "exec swayosd-client --input-volume mute-toggle";
"XF86MonBrightnessUp" = "exec swayosd-client --brightness raise";
"XF86MonBrightnessDown" = "exec swayosd-client --brightness lower";
}; };
startup = [ startup = [