.config/i3/scripts/get_volume.sh

This commit is contained in:
q3aql 2025-09-03 23:10:43 +02:00
parent fd2bf4de2b
commit 4f1a14b8a1

View File

@ -1,4 +1,5 @@
#!/bin/bash
get_volume=$(amixer | grep "%" | head -1 | cut -d "%" -f 1 | cut -d "[" -f 2)
echo "${get_volume}% "
#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} "