diff options
author | Adam T. Carpenter <atc@53hor.net> | 2022-09-27 19:02:05 -0400 |
---|---|---|
committer | Adam T. Carpenter <atc@53hor.net> | 2022-09-27 19:02:05 -0400 |
commit | f3e67c4f0922a9538b11e9618bb6022a89fc5f49 (patch) | |
tree | 636f04d42a2ad193090d94e4ebe27bca1a88b78b /.config/i3blocks/config | |
parent | b6cbf6633c4bd7c9eb094ca9637c95d24a09d015 (diff) | |
download | dotfiles-f3e67c4f0922a9538b11e9618bb6022a89fc5f49.tar.xz dotfiles-f3e67c4f0922a9538b11e9618bb6022a89fc5f49.zip |
feat: i3 tab icons and remove temp from blocks
Diffstat (limited to '.config/i3blocks/config')
-rw-r--r-- | .config/i3blocks/config | 6 |
1 files changed, 3 insertions, 3 deletions
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 |