# i3blocks configuration file # # The i3blocks man page describes the usage of the binary, # and its website describes the configuration: # # https://vivien.github.io/i3blocks #[layout] #command=if [[ $(xset -q | grep LED | awk '{ print $10 }') -eq 00000000 ]]; then echo "dvorak-alt-intl"; elif [[ $(xset -q | grep LED | awk '{ print $10 }') -eq 00001000 ]] then echo "de"; else echo "unknown"; fi #interval=once #signal=10 #color=#825af0 # [cpu] command= cat <(grep 'cpu ' /proc/stat) <(sleep 1 && grep 'cpu ' /proc/stat) | awk -v RS="" '{printf "%.2f%\n", ($13-$2+$15-$4)*100/($13-$2+$15-$4+$16-$5)}' interval=3 color=#825af0 [mem] command= echo $( free -m | grep Mem | awk '{printf "%.3f%", ($3/$2)*100}' ) interval=3 color=#825af0 [time] command=/bin/date '+%Y-%m-%dT%H:%M:%S' interval=1 color=#e85a00