Skip to content

Instantly share code, notes, and snippets.

@corcoran
Created August 15, 2019 21:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save corcoran/b054bcc8b7db7cf7564c52b90621f4e1 to your computer and use it in GitHub Desktop.
Save corcoran/b054bcc8b7db7cf7564c52b90621f4e1 to your computer and use it in GitHub Desktop.
Pulseaudio vol mute/up/down scripts -- uses current sink -- let's you go above 100% volume. Relies on internal volume daemons for notifications (xfce4-volumed, etc)
#!/bin/bash
pactl -- set-sink-volume `pacmd stat | awk -F": " '/^Default sink name: /{print $2}'` -5%
#!/bin/bash
pactl -- set-sink-mute `pacmd stat | awk -F": " '/^Default sink name: /{print $2}'` toggle
#!/bin/bash
pactl -- set-sink-volume `pacmd stat | awk -F": " '/^Default sink name: /{print $2}'` +5%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment