💾 Archived View for mkl-wlod.srht.site › repo › tree › sway › .config › sway › status.sh.txt captured on 2022-06-04 at 00:46:18.
⬅️ Previous capture (2022-03-01)
-=-=-=-=-=-=-
#!/bin/sh date=$(date "+%d-%m-%Y ") time=$(date "+%H:%M") 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/...$//') network=$(nmcli | grep "connected to" | cut -d : -f 2) networkp=$(echo Network: ${network::-1} ❙) # Separators: \| ❘ ❚ echo ❙ $networkp $audio_volume ❙ Mic: $capture] ❙ Backlight: $brightness% ❙ BAT0: $battery0_info% ❙ BAT1: $battery1_info% ❙ $date ❙ $time ❙