55 lines
1.0 KiB
Plaintext
55 lines
1.0 KiB
Plaintext
|
|
# Guess the weather hourly
|
|
#[weather]
|
|
#command=curl -Ss 'https://wttr.in?0&T&Q' | cut -c 16- | head -2 | xargs echo
|
|
#interval=3600
|
|
#color=#A4C2F4
|
|
|
|
[cpu]
|
|
command=top -bn1 | grep "Cpu(s)" | sed "s/.*, *\([0-9.]*\)%* id.*/\1/" | awk '{print 100 - $1"%"}'
|
|
interval=3
|
|
label=
|
|
color=#A7C080
|
|
|
|
[temp]
|
|
command=sensors | grep Core | head -n 1 | cut -d ' ' -f 10 | cut -d '+' -f 2
|
|
interval=10
|
|
color=#E67E80
|
|
|
|
[battery]
|
|
command=/home/dominic/.config/i3blocks/battery.py
|
|
interval=5
|
|
color=#7FBBB3
|
|
|
|
[volume]
|
|
command=/home/dominic/.config/i3blocks/volume.sh
|
|
label=
|
|
interval=once
|
|
signal=10
|
|
color=#D699B6
|
|
|
|
[brightness]
|
|
command=brightnessctl | sed -n 2p | cut -d '(' -f 2 | cut -d ')' -f 1
|
|
label=
|
|
interval=once
|
|
signal=20
|
|
|
|
[pkgs]
|
|
command=apt-get -q -y --ignore-hold --allow-change-held-packages --allow-unauthenticated -s dist-upgrade | /bin/grep ^Inst | wc -l
|
|
interval=43200
|
|
label=
|
|
color=#A7C080
|
|
|
|
[server_pkgs]
|
|
command=ssh domdit.com checkupdates | wc -l
|
|
interval=43200
|
|
label=
|
|
color=#E67E80
|
|
|
|
[time]
|
|
command=date +"%D %I:%M"
|
|
interval=5
|
|
color=#D3C6AA
|
|
|
|
|