-
Notifications
You must be signed in to change notification settings - Fork 35
/
i3volume-alsa.conf
32 lines (25 loc) · 1.08 KB
/
i3volume-alsa.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Review the lines below and append to ~/.config/i3/config
## Volume control
# Path to volume control, without trailing slash
set $volumepath ~/i3-volume
# Command for the status line
# ie: i3blocks, i3status
set $statuscmd i3status
# Signal used to update the status line
# i3blocks uses SIGRTMIN+10 by default
# i3status uses SIGUSR1 by default
set $statussig SIGUSR1
# Amount to increase/decrease volume as a percentage
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.
# 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 --no-startup-id $volumepath/volume -an -t $statuscmd -u $statussig up $volumestep
bindsym XF86AudioLowerVolume exec --no-startup-id $volumepath/volume -an -t $statuscmd -u $statussig down $volumestep
bindsym XF86AudioMute exec --no-startup-id $volumepath/volume -an -t $statuscmd -u $statussig mute