config 1.4 KB

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