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.

44 lines
1.7 KiB

4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
  1. # dwmblocks
  2. Modular status bar for dwm written in c.
  3. # Modifying blocks
  4. The statusbar is made from text output from commandline programs. Blocks are
  5. added and removed by editing the config.h file.
  6. # Luke's build
  7. I have dwmblocks read my preexisting scripts
  8. [here in my dotfiles repo](https://github.com/LukeSmithxyz/voidrice/tree/master/.local/bin/statusbar).
  9. So if you want my build out of the box, download those and put them in your
  10. `$PATH`. I do this to avoid redundancy in LARBS, both i3 and dwm use the same
  11. statusbar scripts.
  12. # Signaling changes
  13. Most statusbars constantly rerun every script every several seconds to update.
  14. This is an option here, but a superior choice is giving your module a signal
  15. that you can signal to it to update on a relevant event, rather than having it
  16. rerun idly.
  17. For example, the audio module has the update signal 10 by default. Thus,
  18. running `pkill -RTMIN+10 dwmblocks` will update it.
  19. You can also run `kill -44 $(pidof dwmblocks)` which will have the same effect,
  20. but is faster. Just add 34 to your typical signal number.
  21. My volume module *never* updates on its own, instead I have this command run
  22. along side my volume shortcuts in dwm to only update it when relevant.
  23. Note that all modules must have different signal numbers.
  24. # Clickable modules
  25. Like i3blocks, this build allows you to build in additional actions into your
  26. scripts in response to click events. See the above linked scripts for examples
  27. of this using the `$BLOCK_BUTTON` variable.
  28. For this feature to work, you need the appropriate patch in dwm as well. See
  29. [here](https://dwm.suckless.org/patches/statuscmd/).
  30. Credit for those patches goes to Daniel Bylinka (daniel.bylinka@gmail.com).