dotfiles/.config/i3blocks/config
2025-12-22 16:20:03 -05:00

57 lines
1.1 KiB
Text

# 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
[stock]
command=/home/dominic/.config/i3blocks/stock_ticker.py
interval=30
label=
[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
label=
[temp]
command=sensors | grep Core | head -n 1 | cut -d ' ' -f 10 | cut -d '+' -f 2
interval=10
[rss]
command=newsboat -x print-unread | sed 's/ /\n/g' | head -n 1
interval=43200
label=
[pkgs]
command=checkupdates | wc -l
interval=43200
label=
[server_pkgs]
command=ssh domdit.com checkupdates | wc -l
interval=43200
label=󰒐
[brightness]
command=brightnessctl | sed -n 2p | cut -d '(' -f 2 | cut -d ')' -f 1
label=󰳲
interval=once
signal=20
[volume]
command=pactl list sinks | grep '^[[:space:]]Volume:' | head -n $(( $SINK + 1 )) | tail -n 1 | sed -e 's,.* \([0-9][0-9]*\)%.*,\1,'
label=
interval=once
signal=10
[battery]
command=/home/dominic/.config/i3blocks/battery.py
interval=5
[time]
command=date +"%D %I:%M"
interval=5