Another copy of my dotfiles. Because I don't completely trust GitHub.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
1.2 KiB

4 years ago
  1. /* time interval in seconds to sleep before looking for updates in the main loop */
  2. #define SLEEPINTERVAL 1
  3. #define PATH(name) "/home/yigit/.scripts/status-bar/"name
  4. /* If interval of a block is set to 0, the block will only be updated once at startup.
  5. * If interval is set to a negative value, the block will never be updated in the main loop.
  6. * Set signal to 0 if signalling is not required for the block.
  7. * Signal must be less than 10 for clickable blocks.
  8. * If multiple realtime signals are pending, then the lowest numbered signal is delivered first. */
  9. /* pathu - path of the program whose output is to be used for status text
  10. * pathc - path of the program to be executed on clicks */
  11. static Block blocks[] = {
  12. { PATH("spotify-bar"), NULL, 5, 6},
  13. { PATH("fecha"), NULL, 60, 3},
  14. { PATH("arch"), NULL, 3600, 1},
  15. { PATH("volume"), NULL, 0, 4},
  16. { PATH("cpu-temp"), NULL, 15, 7},
  17. { PATH("battery"), NULL, 120, 2},
  18. { PATH("red"), NULL, 30, 5},
  19. { NULL } /* just to mark the end of the array */
  20. };
  21. static const char *delim = " ";