Bind volume keys directly to pactl
authorSiraaj Khandkar <siraaj@khandkar.net>
Fri, 28 Feb 2020 19:20:33 +0000 (14:20 -0500)
committerSiraaj Khandkar <siraaj@khandkar.net>
Fri, 28 Feb 2020 19:20:33 +0000 (14:20 -0500)
without the intermediate scripts.

home/.xbindkeysrc

index 131e88f..cb65a7d 100644 (file)
@@ -2,13 +2,13 @@
   control+shift + q
 
 # Increase volume
-"vol_inc"
+"pactl set-sink-volume @DEFAULT_SINK@ +5%"
    XF86AudioRaiseVolume
 # Decrease volume
-"vol_dec"
+"pactl set-sink-volume @DEFAULT_SINK@ -5%"
    XF86AudioLowerVolume
 # Mute
-"vol_mute"
+"pactl set-sink-mute @DEFAULT_SINK@ toggle"
    XF86AudioMute
 
 "sudo /home/siraaj/bin/backlight_adjust +5"
This page took 0.026892 seconds and 4 git commands to generate.