mirror of
https://github.com/donovanglover/nix-config.git
synced 2025-02-16 09:49:45 +01:00
ironbar: Include muted status
This commit is contained in:
parent
b49b90a72f
commit
027baae6ef
@ -265,8 +265,11 @@ in
|
||||
''
|
||||
#!/usr/bin/env fish
|
||||
|
||||
set VOLUME (wpctl get-volume @DEFAULT_AUDIO_SINK@ | choose 1)
|
||||
echo "音量:$(math "$VOLUME * 100")%"
|
||||
set VOL $(wpctl get-volume @DEFAULT_AUDIO_SINK@)
|
||||
set MUTE $(echo "$VOL" | awk '{print $3}' | sed -e 's/\[MUTED\]/(ミュート)/' | tr --delete '\n')
|
||||
|
||||
echo -n "$MUTE"
|
||||
echo "音量:$(math "$(echo "$VOL" | choose 1) * 100")%"
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user