ironbar: Sleep before getting volume

Fixes a race condition where the volume didn't show in time.
This commit is contained in:
Donovan Glover 2024-08-03 19:50:28 -04:00
parent 817629fb0a
commit 8f15d851ad
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65

View File

@ -262,6 +262,8 @@ in
''
#!/usr/bin/env fish
sleep 2
function get_volume
set VOLUME (wpctl get-volume @DEFAULT_AUDIO_SINK@ | choose 1)
echo "$(math "$VOLUME * 100")%"