minor changes to the bar

master
TiynGER 5 years ago
parent dd86cf751d
commit a3f3c7e7ef

@ -9,4 +9,4 @@ status=$(cat /sys/class/power_supply/"$1"/status)
[ "$status" = "Charging" ] && color="#ffffff" [ "$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 #!/bin/sh
date +"%d %b '%y (%a) %H:%M" date +"%d %b %H:%M"

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

Loading…
Cancel
Save