Skip to content

Commit

Permalink
ironbar: Sleep before getting volume
Browse files Browse the repository at this point in the history
Fixes a race condition where the volume didn't show in time.
  • Loading branch information
donovanglover committed Aug 3, 2024
1 parent 817629f commit 8f15d85
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions home/ironbar.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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")%"
Expand Down

0 comments on commit 8f15d85

Please sign in to comment.