feat: polish dwmbar
This commit is contained in:
parent
257f900c55
commit
cbc1e70790
@ -48,9 +48,9 @@ status() { \
|
|||||||
if [ $AC_ON -eq 0 ]; then
|
if [ $AC_ON -eq 0 ]; then
|
||||||
case "$(cat "$x")" in
|
case "$(cat "$x")" in
|
||||||
10[1-9]) printf "" ;;
|
10[1-9]) printf "" ;;
|
||||||
100|9[0-9]) printf " %3d%%" $(cat "$x") ;;
|
100|9[0-9]|8[0-9]) printf " %3d%%" $(cat "$x") ;;
|
||||||
8[0-9]|7[0-9]) printf " %3d%%" $(cat "$x") ;;
|
7[0-9]|6[0-9]) printf " %3d%%" $(cat "$x") ;;
|
||||||
6[0-9]|5[0-9]|4[0-9]) printf " %3d%%" $(cat "$x") ;;
|
5[0-9]|4[0-9]) printf " %3d%%" $(cat "$x") ;;
|
||||||
3[0-9]|2[0-9]) printf " %3d%%" $(cat "$x") ;;
|
3[0-9]|2[0-9]) printf " %3d%%" $(cat "$x") ;;
|
||||||
*) printf " %3d%%" $(cat "$x") ;;
|
*) printf " %3d%%" $(cat "$x") ;;
|
||||||
esac
|
esac
|
||||||
|
Reference in New Issue
Block a user