!/bin/sh

date=$(date "+%d-%m-%Y")

time=$(date "+%H:%M")

bold=$(tput bold)

battery0_info=$(cat /sys/class/power_supply/BAT0/capacity)

battery1_info=$(cat /sys/class/power_supply/BAT1/capacity)

audio_volume=$(ponymix | grep Volume | head -n 1 | cut -d . -f 2,3)

capture=$(amixer -c 1 get Capture | grep % | head -n 1 | cut -d ']' -f 3)

brightness=$(light | sed 's/...$//')

spotify=$(playerctl -p spotify metadata --format '{{artist}} - {{title}} - {{album}} : {{status}} ❙')

network=$(nmcli | grep "connected to" | cut -d : -f 2)

networkp=$(echo Network: ${network::-1} ❙)

Separators: \| ❘ ❚

echo ❙ $networkp $spotify $audio_volume  ❙ Mic: $capture]  ❙ Backlight: $brightness%  ❙ BAT0: $battery0_info%  ❙ BAT1: $battery1_info%  ❙ $date  ❙ $time ❙