summaryrefslogtreecommitdiff
path: root/.config/i3blocks/config
diff options
context:
space:
mode:
authorAdam T. Carpenter <atc@53hor.net>2021-02-28 20:54:09 -0500
committerAdam T. Carpenter <atc@53hor.net>2021-02-28 20:54:09 -0500
commit514f130fa95f2cc24cbccdf7e8b8dd2b38b52f58 (patch)
tree24f0d24984582094b76cfe2281c02e5944301a31 /.config/i3blocks/config
parent2ca667744959fb6077f9cb9396ccdef4352d57dc (diff)
downloaddotfiles-514f130fa95f2cc24cbccdf7e8b8dd2b38b52f58.tar.xz
dotfiles-514f130fa95f2cc24cbccdf7e8b8dd2b38b52f58.zip
cleaned up i3 config
Diffstat (limited to '.config/i3blocks/config')
-rw-r--r--.config/i3blocks/config6
1 files changed, 3 insertions, 3 deletions
diff --git a/.config/i3blocks/config b/.config/i3blocks/config
index c2d44e1..367681d 100644
--- a/.config/i3blocks/config
+++ b/.config/i3blocks/config
@@ -49,7 +49,7 @@ command=[ -f /tmp/cast.mkv ] && printf "󰻂\n" || return 0
[audio]
interval=once
signal=10
-command=vol=$(mixer vol|cut -d':' -f2) ; printf "󰕾%.3d\n" $vol ; [ $vol -eq 0 ] && return 33 || return 0
+command=vol=$(mixer vol|cut -d':' -f2) ; printf "󰕾%.2d\n" $vol ; [ $vol -eq 0 ] && return 33 || return 0
[disk]
interval=10
@@ -61,7 +61,7 @@ command=printf "󰍛%s\n" $(top -n | grep Mem | cut -w -f2)
[load]
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 "󰻠%.3d%%\n" $percent ; [ $percent -ge 70 ] && return 33 || return 0
+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
[temp]
interval=10
@@ -69,7 +69,7 @@ command=celcius=$(sysctl -n dev.cpu.0.temperature|cut -d'.' -f1) ; printf "󰔏%
[battery]
interval=59
-command=status=$(apm -b) ; level=$(apm -l) ; [ $status -eq 3 ] && printf "󰂄%.3d%%" $level || printf "󰂁%.3d%%" $level && [ $status -eq 2 ] && return 33 || return 0
+command=status=$(apm -b) ; level=$(apm -l) ; [ $status -eq 3 ] && printf "󰂄%.2d%%" $level || printf "󰂁%.2d%%" $level && [ $status -eq 2 ] && return 33 || return 0
[date]
interval=59