From 0228fa0e4f10339061591d12224948fe99acdb56 Mon Sep 17 00:00:00 2001 From: q3aql Date: Wed, 3 Sep 2025 23:11:27 +0200 Subject: [PATCH] .config/waybar/scripts/get_volume.sh --- .config/waybar/scripts/get_volume.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.config/waybar/scripts/get_volume.sh b/.config/waybar/scripts/get_volume.sh index a501178..2e06123 100755 --- a/.config/waybar/scripts/get_volume.sh +++ b/.config/waybar/scripts/get_volume.sh @@ -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} "