volume 106 B

12345
  1. #!/bin/bash
  2. vol="$(amixer get Master | tail -n1 | sed -r 's/.*\[(.*)%\].*/\1/')"
  3. echo "${vol}% volume "