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

Compare commits

..

13 Commits

2 changed files with 3 additions and 2 deletions

View File

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

View File

@ -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"