Skip to content

Instantly share code, notes, and snippets.

@efraintorlo
Created August 16, 2016 05:18
Show Gist options
  • Save efraintorlo/7358c2ae85a63c49c319e1e5edbb359d to your computer and use it in GitHub Desktop.
Save efraintorlo/7358c2ae85a63c49c319e1e5edbb359d to your computer and use it in GitHub Desktop.
Volume Up & Down from Terminal Aliases (Linux)
alias k='amixer -D pulse sset Master 10%+ |sed -n "s/.*\[\([^]]*\%\)\].*/Volume:\1/p" | head -1'
alias j='amixer -D pulse sset Master 10%- |sed -n "s/.*\[\([^]]*\%\)\].*/Volume:\1/p" | head -1'
alias kk='k && k'
alias jj='j && j'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment