nixos/home/env/config/eww/bar/scripts/getvol

3 lines
105 B
Bash

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