Skip to content

Instantly share code, notes, and snippets.

@tomty89
Created June 3, 2021 16:43
Show Gist options
  • Save tomty89/fa8be6cb298559beef7a39962a9f054b to your computer and use it in GitHub Desktop.
Save tomty89/fa8be6cb298559beef7a39962a9f054b to your computer and use it in GitHub Desktop.
bindsym XF86AudioPrev exec --no-startup-id "amixer -c STX set \\"Analog Output\\" Speakers; amixer -c STX set Master 255 on"
bindsym XF86AudioNext exec --no-startup-id "amixer -c STX set Master 169 on; amixer -c STX set \\"Headphones Impedance\\" \\"300-600 ohms\\"; amixer -c STX set \\"Analog Output\\" Headphones"
bindsym XF86AudioPlay exec --no-startup-id pacmd load-module module-jack-sink
bindsym XF86AudioStop exec --no-startup-id "pkill jackd; amixer -c STX set Master off; amixer -c STX set \\"Analog Output\\" Speakers"
bindsym XF86AudioMute exec --no-startup-id "pkill jackd; amixer -c STX set Master off; amixer -c STX set \\"Analog Output\\" Speakers"
bindsym XF86AudioRaiseVolume exec --no-startup-id flock /run/user/1000/.amixer_lock amixer -c STX set Master 1+
bindsym XF86AudioLowerVolume exec --no-startup-id flock /run/user/1000/.amixer_lock amixer -c STX set Master 1-
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment