diff --git a/.config/sway/status.sh b/.config/sway/status.sh index 6088cda..91eb704 100644 --- a/.config/sway/status.sh +++ b/.config/sway/status.sh @@ -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