feat: use swayosd and function keys to toggle volume
parent
07c10ecd20
commit
048bb5e776
|
@ -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 = {
|
||||
|
|
Loading…
Reference in New Issue