config 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. command=/usr/share/i3blocks/$BLOCK_NAME
  2. separator_block_width=32
  3. markup=none
  4. [background]
  5. 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)
  6. interval=600
  7. [timewarrior]
  8. command=timew | grep -Po 'Tracking \K.*' || (echo timew inactive; exit 33)
  9. interval=60
  10. [key]
  11. full_text=key
  12. command=gpg-connect-agent 'GET_PASSPHRASE --no-ask KEYGRIP error prompt desc' /bye | grep --quiet OK || exit 33
  13. interval=60
  14. [mail]
  15. label=✉️
  16. 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)"
  17. interval=repeat
  18. [volume 5% pulse]
  19. label=♪
  20. interval=30
  21. signal=10
  22. # default alert threshold 10%
  23. [disk 4]
  24. label=
  25. interval=30
  26. [iface]
  27. label=eth
  28. instance=eth0
  29. color=#00FF80
  30. interval=10
  31. [iface]
  32. label=wifi
  33. instance=wlan0
  34. color=#BFFF00
  35. interval=10
  36. separator=false
  37. separator_block_width=16
  38. [wifi_ssid]
  39. command=iwgetid --raw
  40. color=#BFFF00
  41. interval=10
  42. separator=false
  43. separator_block_width=16
  44. [wifi]
  45. label=
  46. interval=10
  47. [bandwidth]
  48. label=
  49. interval=5
  50. [cpu_usage]
  51. label=
  52. interval=10
  53. separator=false
  54. separator_block_width=16
  55. [load_average]
  56. interval=10
  57. separator=false
  58. separator_block_width=16
  59. [temperature]
  60. label=
  61. interval=10
  62. [battery]
  63. label=⚡
  64. interval=30
  65. separator=false
  66. separator_block_width=12
  67. [power]
  68. command=python3 -c "print('{:.0f} W'.format(int(open('/sys/class/power_supply/BAT0/power_now').read())/10**6))"
  69. interval=30
  70. [weather]
  71. command=curl --silent 'https://wttr.in/?format=%c+%t'
  72. interval=600
  73. [time]
  74. command=date '+%a %Y-%m-%d %H:%M:%S'
  75. interval=5