config/eww/bar/scripts/get-volume.sh

4 lines
108 B
Bash
Executable File

#!/bin/bash
amixer -D pulse sget Master | grep 'Left:' | awk -F'[][]' '{ print $2 }' | tr -d '%' | head -1