configs/laptop/scripts/volume.sh

6 lines
96 B
Bash
Raw Permalink Normal View History

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