123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293 |
- command=/usr/share/i3blocks/$BLOCK_NAME
- separator_block_width=32
- markup=none
- [background]
- command=curl --time-cond ~/.fehbg https://eumetview.eumetsat.int/static-images/latestImages/EUMETSAT_MSG_RGBNatColourEnhncd_CentralEurope.jpg | ifne feh --bg-fill - || (echo background; exit 33)
- interval=600
- [timewarrior]
- command=timew | grep -Po 'Tracking \K.*' || (echo timew inactive; exit 33)
- interval=60
- [key]
- full_text=key
- command=gpg-connect-agent 'GET_PASSPHRASE --no-ask KEYGRIP error prompt desc' /bye | grep --quiet OK || exit 33
- interval=60
- [mail]
- label=✉️
- command=inotifywait -qq --recursive --event move --event delete --exclude mbsyncstate ~/.mail || sleep 60; python3 -c "import glob, os, sys; num=len(glob.glob(os.path.expanduser('~/.mail/*/inbox/new/*'))); print(num); sys.exit(33 if num else 0)"
- interval=repeat
- [volume 5% pulse]
- label=♪
- interval=30
- signal=10
- # default alert threshold 10%
- [disk 4]
- label=
- interval=30
- [iface]
- label=eth
- instance=eth0
- color=#00FF80
- interval=10
- [iface]
- label=wifi
- instance=wlan0
- color=#BFFF00
- interval=10
- separator=false
- separator_block_width=16
- [wifi_ssid]
- command=iwgetid --raw
- color=#BFFF00
- interval=10
- separator=false
- separator_block_width=16
- [wifi]
- label=
- interval=10
- [bandwidth]
- label=
- interval=5
- [cpu_usage]
- label=
- interval=10
- separator=false
- separator_block_width=16
- [load_average]
- interval=10
- separator=false
- separator_block_width=16
- [temperature]
- label=
- interval=10
- [battery]
- label=⚡
- interval=30
- separator=false
- separator_block_width=12
- [power]
- command=python3 -c "print('{:.0f} W'.format(int(open('/sys/class/power_supply/BAT0/power_now').read())/10**6))"
- interval=30
- [weather]
- command=curl --silent 'https://wttr.in/?format=%c+%t'
- interval=600
- [time]
- command=date '+%a %Y-%m-%d %H:%M:%S'
- interval=5
|