mirror of
https://github.com/donovanglover/nix-config.git
synced 2024-11-24 17:23:09 +01:00
ironbar: Sleep before getting volume
Fixes a race condition where the volume didn't show in time.
This commit is contained in:
parent
817629fb0a
commit
8f15d851ad
@ -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")%"
|
||||||
|
Loading…
Reference in New Issue
Block a user