feat: Add support for block-specific icons

Icons can now be specified on a per-block basis. Closes #64.
This commit is contained in:
Utkarsh Verma
2024-04-20 08:49:01 +05:30
parent 8ebe985db8
commit fe538a7a2f
6 changed files with 24 additions and 19 deletions

View File

@@ -90,8 +90,8 @@ You can define your status bar blocks in `config.h`:
```c
#define BLOCKS(X) \
...
X("volume", 0, 5), \
X("date", 1800, 1), \
X(" ", "wpctl get-volume @DEFAULT_AUDIO_SINK@ | cut -d' ' -f2", 0, 5) \
X("󰥔 ", "date '+%H:%M:%S'", 1, 1) \
...
```
@@ -99,6 +99,7 @@ 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. |