waybar/src
Aleksei Bavshin b6d0a4b63f
feat(bar): allow customization of bar modes
Allow changing existing modes and adding new ones via `modes`
configuration key.
`modes` accepts a JSON object roughly described by the following type
```typescript
type BarMode = {
    layer: 'bottom' | 'top' | 'overlay';
    exclusive: bool;
    passthrough: bool;
    visible: bool;
};
type BarModeList = {
    [name: string]: BarMode;
};
```
and will be merged with the default modes defined in `bar.cpp`.

Note that with absence of other ways to set mode, only those defined in
the `sway-bar(5)`[1] documentation could be used right now.

[1]: https://github.com/swaywm/sway/blob/master/sway/sway-bar.5.scd
2021-11-28 12:19:45 -08:00
..
modules fix(swaybar-ipc): avoid unnecessary copy of struct swaybar_config 2021-11-28 11:34:21 -08:00
util fix(rfkill): handle EAGAIN correctly 2021-02-10 08:26:21 -08:00
ALabel.cpp Fix divide by zero (#1303) 2021-10-29 14:12:48 +03:30
AModule.cpp Fix "on-click-backward" when "on-click-forward" is not present 2020-09-26 15:55:06 -04:00
bar.cpp feat(bar): allow customization of bar modes 2021-11-28 12:19:45 -08:00
client.cpp feat(client): store bar_id argument 2021-11-19 20:28:41 -08:00
config.cpp fix(config): preserve explicit null when merging objects 2021-09-15 22:20:44 +07:00
factory.cpp Finish 2021-11-28 01:12:35 +03:00
main.cpp Implement support for reloading of config files. 2020-08-28 22:34:24 +10:00