configs/desktop/scripts/volume.sh

6 lines
96 B
Bash
Raw Normal View History

2022-10-29 16:46:38 -03:00
#!/bin/sh
vol="$(amixer get Master | tail -n1 | sed -r 's/.*\[(.*)%\].*/\1/')"
echo "${vol}%"