Files
nixos-config/home/programs/eww/src/scripts/speaker_volume.sh
2025-05-03 01:16:02 +02:00

5 lines
127 B
Bash
Executable File

volume=$(pactl get-sink-volume @DEFAULT_SINK@ | awk '{print $5}' | tr -d '%')
half_volume=$((volume / 2))
echo "$half_volume"