1
0
mirror of https://github.com/tiyn/dotfiles.git synced 2025-04-20 00:37:44 +02:00

Compare commits

..

No commits in common. "fa686d824f34a868e8486cb03768af2603a978bc" and "3c19fddd904dc3f5e3b63f71cf3ad05e27c3f58d" have entirely different histories.

2 changed files with 2 additions and 3 deletions

View File

@ -1,4 +1,4 @@
!/usr/bin/env sh
#!/usr/bin/env sh
wifipercent=" ___"

View File

@ -2,5 +2,4 @@
icon="^b#282828^^c#dfdfdf^  ^d^ "
total=$(free -h | awk '/^Mem:/ {print $3/$2}')
percent=$(printf %3s $(printf %-4s $total | tr ' ' '0' | cut -c1-4 | sed -e 's/\.//g' | sed -e 's/^0//g') | tr ' ' ' ')%
echo "$icon$percent"
echo "$icon$(printf %3s $(echo ${total##*0.} | cut -c1-2) | tr ' ' ' ')%"