i3-wm/.config/i3/scripts/get_volume.sh

6 lines
195 B
Bash
Raw Normal View History

2025-08-05 01:22:52 +02:00
#!/bin/bash
2025-09-03 23:10:43 +02:00
#get_volume=$(amixer | grep "%" | head -1 | cut -d "%" -f 1 | cut -d "[" -f 2)
get_volume=$(pactl list sinks | grep "Volume:" | head -1 | awk '{print $5}')
echo "${get_volume} "