From c2e9aea61bd067754821781826ce14e15c46de12 Mon Sep 17 00:00:00 2001 From: aszlig Date: Thu, 29 Aug 2013 05:11:29 +0200 Subject: i3: Enable audio controls using pvolctrl. Since I use the new typematrix keyboard everywhere, which has audio control keys, why not use them? Hereby done :-) Signed-off-by: aszlig --- cfgfiles/i3.conf | 5 +++++ common.nix | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/cfgfiles/i3.conf b/cfgfiles/i3.conf index 0d9c54eb..6ae4a3a7 100644 --- a/cfgfiles/i3.conf +++ b/cfgfiles/i3.conf @@ -24,6 +24,11 @@ bindsym $mod+p exec --no-startup-id @dmenu@/bin/dmenu_run # set background exec @xsetroot@/bin/xsetroot -solid black +# audio controls +bindsym XF86AudioLowerVolume exec @pvolctrl@/bin/pvolctrl -10 +bindsym XF86AudioRaiseVolume exec @pvolctrl@/bin/pvolctrl 10 +bindsym XF86AudioMute exec @pvolctrl@/bin/pvolctrl 0 + # change/move focus bindsym $mod+Shift+Left move left bindsym $mod+Shift+H move left diff --git a/common.nix b/common.nix index 645adb8f..3812b1d4 100644 --- a/common.nix +++ b/common.nix @@ -115,7 +115,7 @@ name = "i3.conf"; src = ./cfgfiles/i3.conf; - inherit (pkgs) conky dmenu xterm; + inherit (pkgs) conky dmenu xterm pvolctrl; inherit (pkgs.xorg) xsetroot; leftHead = head config.services.xserver.xrandrHeads; rightHead = last config.services.xserver.xrandrHeads; -- cgit 1.4.1