feat: add volume control keys
This commit is contained in:
parent
933b0f7ff1
commit
ff23d37b5c
1 changed files with 15 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue