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.
fa686d824f
...
3c19fddd90
@ -1,4 +1,4 @@
|
||||
!/usr/bin/env sh
|
||||
#!/usr/bin/env sh
|
||||
|
||||
wifipercent=" ___"
|
||||
|
||||
|
@ -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 ' ' ' ')%"
|
||||
|
Loading…
x
Reference in New Issue
Block a user