sway-wm/.config/waybar/scripts/get_volume.sh

6 lines
195 B
Bash
Raw Normal View History

2025-08-03 15:07:48 +02:00
#!/bin/bash
2025-09-03 23:11:27 +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} "