mirror of
https://codeberg.org/dwl/dwl-patches.git
synced 2026-06-11 10:23:19 +00:00
Add: bar-modes patch
Add modes_labels indicator to bar, which behaves like river-classic's dam bar. This patch has to be applied after the bar and modes patch.
This commit is contained in:
committed by
A Frederick Christensen
parent
97b9dbc1e6
commit
507f76f981
@@ -0,0 +1,31 @@
|
||||

|
||||
|
||||
### Description
|
||||
|
||||
Add a mode indicator to bar that tells which mode you are in, just like
|
||||
river-classic's [dam](https://codeberg.org/sewn/dam) bar.
|
||||
|
||||
The string from `modes_labels` defined in `config.h` is used, while normal mode
|
||||
is ignored.
|
||||
|
||||
Another usage is to serve as a hint for each modes keybindings:
|
||||
|
||||
```c
|
||||
enum {
|
||||
BROWSER,
|
||||
};
|
||||
const char *modes_lablels[] = {
|
||||
"[f]irefox [b]rave [c]hromium [q]utebrowser",
|
||||
};
|
||||
```
|
||||
|
||||
### Dependencies
|
||||
this patch depends on:
|
||||
- [bar](https://codeberg.org/dwl/dwl-patches/src/branch/main/patches/bar/) patch
|
||||
- [modes](https://codeberg.org/dwl/dwl-patches/src/branch/main/patches/modes/) patch
|
||||
|
||||
### Download
|
||||
- [v0.8](https://codeberg.org/dwl/dwl-patches/raw/branch/main/patches/bar-modes/bar-modes.patch)
|
||||
|
||||
### Authors
|
||||
- [unixchad](https://codeberg.org/unixchad/)
|
||||
Reference in New Issue
Block a user