minor changes to the bar

master
TiynGER 5 years ago
parent b6d83978a7
commit 1314a1fae0

@ -9,4 +9,4 @@ status=$(cat /sys/class/power_supply/"$1"/status)
[ "$status" = "Charging" ] && color="#ffffff"
printf "%s%s%s\n" "$(echo "$status" | sed -e "s/,//;s/Discharging/🔋/;s/Not Charging/🛑/;s/Charging/🔌/;s/Unknown/♻️/;s/Full/⚡/;s/ 0*/ /g;s/ :/ /g")" "$warn" "$(echo "$capacity" | sed -e 's/$/%/' ) " " ($time)"
printf "%s%s\n" "$(echo "$status" | sed -e "s/,//;s/Discharging/🔋/;s/Not Charging/🛑/;s/Charging/🔌/;s/Unknown/♻️/;s/Full/⚡/;s/ 0*/ /g;s/ :/ /g")" "$warn" "$(echo "$capacity" | sed -e 's/$/%/' ) "

@ -1,3 +1,3 @@
#!/bin/sh
date +"%d %b '%y (%a) %H:%M"
date +"%d %b %H:%M"

@ -1,6 +1,6 @@
#!/bin/sh
status() { \
echo "$(memory) | $(cpu) | $(disk /) | $(volume) | $(battery BAT0) | $(internet) | $(clock)"
echo "$(memory)|$(cpu)|$(disk /)|$(volume)|$(battery BAT0)|$(internet)|$(clock)"
}
while :; do
xsetroot -name "$(status | tr '\n' ' ')"

@ -12,4 +12,4 @@ else
icon="🔉"
fi
printf "%s %s%%\\n" "$icon" "$vol"
printf "%s %s\\n" "$vol" "$icon"

Loading…
Cancel
Save