feat: use swayosd and function keys to toggle volume

This commit is contained in:
mandlm 2024-01-21 21:48:15 +01:00
parent 07c10ecd20
commit 048bb5e776
Signed by: mandlm
GPG Key ID: 4AA25D647AA54CC7

View File

@ -58,6 +58,8 @@ in
];
};
services.swayosd.enable = true;
wayland.windowManager.sway = {
enable = true;
@ -118,6 +120,13 @@ in
"${modifier}+Shift+s" = "exec shotman --capture region --copy";
"${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";
"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";
};
assigns = {