feat: add volume control keys

This commit is contained in:
gytic 2025-09-17 11:25:35 +02:00
parent 933b0f7ff1
commit ff23d37b5c

View file

@ -15,7 +15,9 @@ in {
INTERNAL: additional default keyboard shortcuts to add
'';
type = t.listOf t.attrs;
default = [
default = let
amixer = lib.getExe' pkgs.alsa-utils;
in [
{
key = "XF86WWW";
exe = "exo-open --launch WebBrowser";
@ -36,6 +38,18 @@ in {
key = "Super_L";
pkg = pkgs.xfce.xfce4-whiskermenu-plugin; # open whiskermenu with a press on SUPER like on windows
}
{
key = "XF86AudioMute";
exe = "${amixer} set Master toggle";
}
{
key = "XF86AudioLowerVolume";
exe = "${amixer} set Master 5%-";
}
{
key = "XF86AudioRaiseVolume";
exe = "${amixer} set Master 5%+";
}
];
};
commands = lib.mkOption {