mirror of
https://github.com/tiyn/dotfiles.git
synced 2025-04-20 00:37:44 +02:00
Compare commits
13 Commits
3c19fddd90
...
fa686d824f
Author | SHA1 | Date | |
---|---|---|---|
fa686d824f | |||
1fc77eb9b1 | |||
f5c107a2d9 | |||
4e277ed808 | |||
|
c9eda035e8 | ||
|
bff7b2da5b | ||
df1e9cd32f | |||
5761f4dec2 | |||
5a3f115799 | |||
126734943a | |||
7424c66273 | |||
89802b2639 | |||
6670354d1a |
@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env sh
|
||||
!/usr/bin/env sh
|
||||
|
||||
wifipercent=" ___"
|
||||
|
||||
|
@ -2,4 +2,5 @@
|
||||
|
||||
icon="^b#282828^^c#dfdfdf^ ^d^ "
|
||||
total=$(free -h | awk '/^Mem:/ {print $3/$2}')
|
||||
echo "$icon$(printf %3s $(echo ${total##*0.} | cut -c1-2) | tr ' ' ' ')%"
|
||||
percent=$(printf %3s $(printf %-4s $total | tr ' ' '0' | cut -c1-4 | sed -e 's/\.//g' | sed -e 's/^0//g') | tr ' ' ' ')%
|
||||
echo "$icon$percent"
|
||||
|
Loading…
x
Reference in New Issue
Block a user