mirror of
https://github.com/donovanglover/nix-config.git
synced 2025-07-11 11:45:03 +02:00
ironbar: Sleep before getting volume
Fixes a race condition where the volume didn't show in time.
This commit is contained in:
@ -262,6 +262,8 @@ in
|
|||||||
''
|
''
|
||||||
#!/usr/bin/env fish
|
#!/usr/bin/env fish
|
||||||
|
|
||||||
|
sleep 2
|
||||||
|
|
||||||
function get_volume
|
function get_volume
|
||||||
set VOLUME (wpctl get-volume @DEFAULT_AUDIO_SINK@ | choose 1)
|
set VOLUME (wpctl get-volume @DEFAULT_AUDIO_SINK@ | choose 1)
|
||||||
echo "音量:$(math "$VOLUME * 100")%"
|
echo "音量:$(math "$VOLUME * 100")%"
|
||||||
|
Reference in New Issue
Block a user