configs/laptop/scripts/volume.sh
2024-02-10 10:13:44 -03:00

6 lines
96 B
Bash
Executable File

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