config 1.3 KB

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