dwmblocks/README.md

25 lines
1.5 KiB
Markdown
Raw Permalink Normal View History

2024-06-25 13:38:00 +02:00
<h1 align="center"> dwmblocks</h1>
2024-06-25 13:38:00 +02:00
Lightweight, Clickable, Modular and Async status bar for [dwm](https://dwm.suckless.org). Fork of [dwmblocks-async](https://github.com/UtkarshVerma/dwmblocks-async)
2021-03-22 06:42:52 +01:00
2021-10-12 17:07:59 +02:00
### Modifying the blocks
You can define your status bar blocks in `config.h`:
2021-03-22 06:42:52 +01:00
```c
#define BLOCKS(X) \
2021-03-22 06:42:52 +01:00
...
X(" ", "wpctl get-volume @DEFAULT_AUDIO_SINK@ | cut -d' ' -f2", 0, 5) \
X("󰥔 ", "date '+%H:%M:%S'", 1, 1) \
2021-03-22 06:42:52 +01:00
...
```
2023-02-05 10:27:14 +01:00
Each block has the following properties:
| Property | Description |
| --------------- | -------------------------------------------------------------------------------------------------------------------------------------------------- |
| Icon | An icon you wish to prepend to your block output. |
| Command | The command you wish to execute in your block. |
| Update interval | Time in seconds, after which you want the block to update. If `0`, the block will never be updated. |
| Update signal | Signal to be used for triggering the block. Must be a positive integer. If `0`, a signal won't be set up for the block and it will be unclickable. |