This commit is contained in:
Dominik Agres
2025-04-06 18:43:23 +02:00
parent 6427510f0d
commit d453460c01
7 changed files with 408 additions and 0 deletions
+50
View File
@@ -0,0 +1,50 @@
# 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