Updated my dotfiles

Signed-off-by: Marcin Wozniak <y0rune@aol.com>
This commit is contained in:
2020-05-27 00:03:35 +02:00
committed by Marcin Wozniak
parent 551999a822
commit 007b45e54c
3 changed files with 5 additions and 5 deletions

View File

@ -29,10 +29,10 @@ print_date(){
}
print_mem(){
free --mebi | sed -n '2{p;q}' | awk '{printf ("🧠 %2.2fGiB/%2.2fGiB", ( $3 / 1024), ($2 / 1024))}'
free --mebi | sed -n '2{p;q}' | awk '{printf ("🧠 %2.2fGiB", ( $3 / 1024) )}'
}
batLevel() {
print_battery() {
# Find the battery level
hash acpi || return 0
onl="$(acpi -V | grep "on-line")"
@ -69,6 +69,6 @@ print_cpu() {
while true
do
xsetroot -name "$(print_temp) | $(print_mail) | $(print_cpu) | $(print_mem) | $(print_weather) | $(print_wifi) | $(batLevel) | $(print_volume) | $(print_date)"
xsetroot -name "$(print_temp) $(print_mail) $(print_cpu) $(print_mem) $(print_weather) $(print_wifi) $(print_battery) $(print_volume) $(print_date)"
sleep 5
done