💾 Archived View for mkl-wlod.srht.site › repo › tree › sway › .config › sway › status-external.sh.tx… captured on 2022-03-01 at 15:59:23. Gemini links have been rewritten to link to archived content
-=-=-=-=-=-=-
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} ❙)
echo ❙ $networkp $spotify $audio_volume ❙ Mic: $capture] ❙ Backlight: $brightness% ❙ BAT0: $battery0_info% ❙ BAT1: $battery1_info% ❙ $date ❙ $time ❙