simplyfied with wpctl
This commit is contained in:
parent
1f222800b7
commit
1d070ae53b
1 changed files with 5 additions and 6 deletions
|
@ -4,12 +4,11 @@
|
|||
|
||||
date_formatted=$(date "+%a %d.%m.%Y %H:%M")
|
||||
|
||||
audio_muted=$(
|
||||
pactl get-sink-mute @DEFAULT_SINK@ |
|
||||
awk '{ print $2=="yes" ? "🔇":"🔉" }')
|
||||
audio_volume=$(
|
||||
audio=$(
|
||||
wpctl get-volume @DEFAULT_SINK@ |
|
||||
awk '{ print $2 }')
|
||||
awk '{
|
||||
print $2
|
||||
print $3=="[MUTED]" ? "🔇":"🔉" }')
|
||||
|
||||
is_wayland=$(
|
||||
swaymsg -t get_tree |
|
||||
|
@ -29,4 +28,4 @@ battery=$(
|
|||
|
||||
output=""
|
||||
if [[ $is_wayland != "" ]]; then output="$is_wayland | "; fi
|
||||
echo $output $battery "|" $audio_volume $audio_muted "|" $date_formatted
|
||||
echo $output $battery "|" $audio "|" $date_formatted
|
||||
|
|
Loading…
Reference in a new issue