diff options
author | aszlig <aszlig@redmoonstudios.org> | 2013-08-29 05:11:29 +0200 |
---|---|---|
committer | aszlig <aszlig@redmoonstudios.org> | 2013-08-29 05:11:29 +0200 |
commit | c2e9aea61bd067754821781826ce14e15c46de12 (patch) | |
tree | f1b797b12fe92139288e0e894e198baf6cbab029 | |
parent | d4ed02ac0719e1259a225345b74a04e77205b2e1 (diff) |
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 <aszlig@redmoonstudios.org>
-rw-r--r-- | cfgfiles/i3.conf | 5 | ||||
-rw-r--r-- | common.nix | 2 |
2 files changed, 6 insertions, 1 deletions
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; |