1
0
Fork 0

FEAT: Adding volume Controls

main
Nigel Barink 2024-04-14 15:34:28 +02:00
parent 04790c48d6
commit 7c7b647b0a
Signed by: Nigel
GPG Key ID: C54278C495538619
2 changed files with 21 additions and 1 deletions

View File

@ -201,4 +201,15 @@ client.unfocused #b38a5b #b38a5b #CCCCCC #8c5831 #7c2c09
client.background #FFFFFF
# Volume and brightness controls
bindsym XF86AudioPlay exec playerctl play-pause
bindsym XF86AudioPause exec playerctl play-pause
bindsym XF86AudioNext exec playerctl next
bindsym XF86AudioPrev exec playerctl previous
bindsym XF86MonBrightnessUp exec xbacklight -inc 20 # increase screen brightness
bindsym XF86MonBrightnessDown exec xbacklight -dec 20 # decrease screen brightness
bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5% # raise volume
bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5% # lower volume
bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle # toggle mute for default device
# use i3lock-fancy
bindsym $mod-z exec i3lock-fancy

View File

@ -4,6 +4,7 @@ general {
interval = 10
}
order += "volume master"
order += "cpu_usage"
order += "memory"
order += "disk /"
@ -39,3 +40,11 @@ memory {
threshold_degraded= 10%
threshold_critical= 3%
}
volume master {
format = "♪: %volume"
device = "default"
mixer = "Master"
mixer_idx = 0
}