feat: use swayosd and function keys to toggle volume

main
mandlm 2024-01-21 21:48:15 +01:00
parent 07c10ecd20
commit 048bb5e776
Signed by: mandlm
GPG Key ID: 4AA25D647AA54CC7
1 changed files with 9 additions and 0 deletions

View File

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