citadel

My dotfiles, scripts and nix configs
git clone git://jb55.com/citadel
Log | Files | Refs | README | LICENSE

get-volume (158B)


      1 #!/usr/bin/env bash
      2 
      3 # alsa
      4 amixer sget Master | awk -F"[][]" '/dB/ { print $2,$6 }'
      5 
      6 # pulse
      7 #amixer sget Master | tail -n1 | awk -F"[][]" '{ print $2,$4 }'