From f3e67c4f0922a9538b11e9618bb6022a89fc5f49 Mon Sep 17 00:00:00 2001 From: "Adam T. Carpenter" Date: Tue, 27 Sep 2022 19:02:05 -0400 Subject: feat: i3 tab icons and remove temp from blocks --- .config/i3blocks/config | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to '.config/i3blocks') diff --git a/.config/i3blocks/config b/.config/i3blocks/config index bf5ca79..178b82c 100644 --- a/.config/i3blocks/config +++ b/.config/i3blocks/config @@ -56,9 +56,9 @@ interval=10 command=cpu_count=$(sysctl -n hw.ncpu) ; avg_load=$(sysctl vm.loadavg|cut -w -f3) ; percent=$(echo "result = $avg_load / $cpu_count * 100; scale=0; result / 1"|bc -l) ; printf "󰻠 %.2d%%\n" $percent ; [ $percent -ge 70 ] && return 33 || return 0 #command=printf "󰻠 %s\n" $(top -n|sed -n '3p'|cut -w -f2) -#[temp] -#interval=10 -#command=celcius=$(sysctl -n dev.cpu.0.temperature|cut -d'.' -f1) ; printf "󰔏 %.3d℉\n" $(echo "$celcius * 9 / 5 + 32" | bc) ; [ $celcius -ge 80 ] && return 33 || return 0 +[temp] +interval=10 +command=celcius=$(sysctl -n dev.cpu.0.temperature|cut -d'.' -f1) ; printf "󰔏 %.3d℉\n" $(echo "$celcius * 9 / 5 + 32" | bc) ; [ $celcius -ge 80 ] && return 33 || return 0 [battery] interval=60 -- cgit v1.2.3