Advertisement
Guest User

dwmblocks-async config.h

a guest
Mar 18th, 2025
17
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.25 KB | None | 0 0
  1. #ifndef CONFIG_H
  2. #define CONFIG_H
  3. // String used to delimit block outputs in the status.
  4. #define DELIMITER " | "
  5.  
  6. // Maximum number of Unicode characters that a block can output.
  7. #define MAX_BLOCK_OUTPUT_LENGTH 45
  8.  
  9. // Control whether blocks are clickable.
  10. #define CLICKABLE_BLOCKS 1
  11.  
  12. // Control whether a leading delimiter should be prepended to the status.
  13. #define LEADING_DELIMITER 1
  14.  
  15. // Control whether a trailing delimiter should be appended to the status.
  16. #define TRAILING_DELIMITER 0
  17.  
  18. // Define blocks for the status feed as X(icon, cmd, interval, signal).
  19. #define BLOCKS(X) \
  20. X("", "playerctl metadata artist -f '{{ artist }} - {{ title }}'", 1, 0) \
  21. X("", "/home/oc/Suckless/dwmblocks/netspeed", 1, 1) \
  22. X("CPU: ", "/home/oc/Suckless/dwmblocks/scripts/cpu_usage.sh", 1, 0) \
  23. X("GPU: ", "/home/oc/Suckless/dwmblocks/scripts/GPU.sh", 1, 0) \
  24. X("", "/home/oc/Suckless/dwmblocks/scripts/volume.sh", 0, 10) \
  25. X("", "/home/oc/Suckless/dwmblocks/scripts/disk_free", 30, 1) \
  26. X("", "/home/oc/Suckless/dwmblocks-async/scripts/sb-memory", 30, 1) \
  27. X("Ram:", "free -h | awk '/^Mem/ { print $3\"/\"$2 }' | sed 's/i//g'", 30, 0) \
  28. X("", "date '+%b %d (%a) %I:%M%p'", 5, 0)
  29.  
  30. #endif // CONFIG_H
  31.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement