From ff23d37b5c3aaa2b6b33c433a25d14bc79d14755 Mon Sep 17 00:00:00 2001 From: gytic <149968794+gytic@users.noreply.github.com> Date: Wed, 17 Sep 2025 11:25:35 +0200 Subject: [PATCH] feat: add volume control keys --- nixos95/keybinds.nix | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/nixos95/keybinds.nix b/nixos95/keybinds.nix index b67f40b..2e682c1 100644 --- a/nixos95/keybinds.nix +++ b/nixos95/keybinds.nix @@ -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 {