summarylogtreecommitdiffstats
path: root/i3volume-alsa.conf
diff options
context:
space:
mode:
authorJose Riha2019-05-02 10:34:14 +0200
committerJose Riha2019-05-02 10:34:14 +0200
commit333d94c52847b17b7e8ff803827cb3abd2a741a1 (patch)
tree6ee5d5b6947ab57330472fbb2d0bd8eb176188a4 /i3volume-alsa.conf
downloadaur-333d94c52847b17b7e8ff803827cb3abd2a741a1.tar.gz
Initial commit
Diffstat (limited to 'i3volume-alsa.conf')
-rw-r--r--i3volume-alsa.conf32
1 files changed, 32 insertions, 0 deletions
diff --git a/i3volume-alsa.conf b/i3volume-alsa.conf
new file mode 100644
index 000000000000..2446f7747180
--- /dev/null
+++ b/i3volume-alsa.conf
@@ -0,0 +1,32 @@
+# Review the lines below and append to ~/.config/.i3/config
+
+## Volume control
+
+# Path to volume control, without trailing slash
+set $volumepath /usr/bin/i3-volume
+
+# Command for the status line (used with -t, requires -u)
+# ie: i3blocks, i3status
+set $statuscmd i3status
+
+# Signal used to update the status line (used with -u, requires -t)
+# i3blocks uses SIGRTMIN+10 by default
+# i3status uses SIGUSR1 by default
+set $statussig SIGUSR1
+
+# Amount to increase/decrease volume as a percentage (used with -i, -d)
+set $volumestep 5
+
+# alsa-utils settings
+#
+# To configure a default card, see https://www.alsa-project.org/main/index.php/Asoundrc
+#
+# Card number to control. (used with -a and -c)
+# If not specified, i3-volume will let `amixer` use a default.
+# List cards: aplay -l
+#set $alsacard 1
+
+# append "-c $alsacard" without quotes to override default card
+bindsym XF86AudioRaiseVolume exec $volumepath -anp -i $volumestep -t $statuscmd -u $statussig
+bindsym XF86AudioLowerVolume exec $volumepath -anp -d $volumestep -t $statuscmd -u $statussig
+bindsym XF86AudioMute exec $volumepath -amn -t $statuscmd -u $statussig