From 8d8381776feea806509690e738b3796be2ab3812 Mon Sep 17 00:00:00 2001 From: Leaced Date: Thu, 23 Mar 2023 21:02:11 +0100 Subject: [PATCH] Add files via upload --- .config/sway/status.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 .config/sway/status.sh diff --git a/.config/sway/status.sh b/.config/sway/status.sh new file mode 100644 index 0000000..594f8f4 --- /dev/null +++ b/.config/sway/status.sh @@ -0,0 +1,9 @@ +# The Sway configuration file in ~/.config/sway/config calls this script. +# You should see changes to the status bar after saving this script. +# If not, do $mod+Shift+c to reload the configuration. + +date_formatted=$(date "+%a %d.%m.%Y %H:%M") +audio_muted=$(pactl get-sink-mute @DEFAULT_SINK@ | awk '{ print $2=="yes" ? "🔇":"🔉" }') +audio_volume=$(pactl get-sink-volume @DEFAULT_SINK@ | awk '{ print $5 }') + +echo $audio_volume $audio_muted "|" $date_formatted