mirror of
https://github.com/agresdominik/dotfiles.git
synced 2026-04-21 18:05:50 +00:00
51 lines
822 B
Plaintext
51 lines
822 B
Plaintext
# i3blocks configuration file
|
|
#
|
|
# The i3blocks man page describes the usage of the binary,
|
|
# and its website describes the configuration:
|
|
#
|
|
# https://vivien.github.io/i3blocks
|
|
|
|
|
|
# Global properties
|
|
separator=true
|
|
separator_block_width=15
|
|
|
|
[greetings]
|
|
color=#f5af19
|
|
command=echo "$USER"
|
|
interval=once
|
|
|
|
[cpu]
|
|
command=top -bn1 | grep "Cpu(s)" | sed "s/.*, *\([0-9.]*\)%* id.*/\1/" | awk '{print 100 - $1"%"}'
|
|
interval=5
|
|
label=CPU:
|
|
|
|
[gpu]
|
|
command=/home/agres/.config/i3/scripts/gpu_usage.sh
|
|
interval=5
|
|
label=GPU:
|
|
|
|
[mem]
|
|
command=free -h | awk '/^Mem/ {print $3 "/" $2}'
|
|
interval=10
|
|
label=MEM:
|
|
|
|
[down]
|
|
command=vnstat -tr 2 | tail -n 3 | awk '/rx/ {print $2}'
|
|
interval=5
|
|
label=DOWN:
|
|
|
|
[up]
|
|
command=vnstat -tr 2 | tail -n 3 | awk '/tx/ {print $2}'
|
|
interval=5
|
|
label=UP:
|
|
|
|
[time]
|
|
command=date '+%Y-%m-%d %H:%M:%S'
|
|
interval=1
|
|
|
|
|
|
|
|
|
|
|