feat: use swayosd and function keys to toggle volume
This commit is contained in:
parent
07c10ecd20
commit
048bb5e776
@ -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 = {
|
||||||
|
Reference in New Issue
Block a user