* Add live reloading of configuration file
This also removes the need for a file with all the available
configuration and a shadow configuration file.
Additionally, added several improvements:
1. Reduce I/O on initial configuration loading by only reading file once
2. Remove unnecesary back and forth events when editing configuration
* Add missing return type
* Consistently reset on config changes and error if failed to initialize config
* Fix massive I/O load on startup by numerical options
* Use _findVal when monitoring config file
* Apply PR requested changes
Signed-off-by: davfsa <davfsa@gmail.com>
* Add missing =>
Signed-off-by: davfsa <davfsa@gmail.com>
* Fix reassignment to const, change to let.
---------
Signed-off-by: davfsa <davfsa@gmail.com>
Co-authored-by: Jas Singh <jaskiratpal.singh@outlook.com>
The menu-items-section box of the media menu was not transparent by
default. Usually it is fully shadowed by its child "menu-content".
The color and tint of the can be configured by the user.
However, because the menu-items-section box behind the card had a
solid color, it was impossible to configure a transparent card.
Co-authored-by: Merlin Sievers <merlin.sievers@posteo.net>
Co-authored-by: Jas Singh <jaskiratpal.singh@outlook.com>
* Ensure notification service is available when sending a notification
This is a bit of a weird patch for a fundamental order-of-execution
issue.
The bundler (esbuild) can sometimes place the `notifdService`
instantiation bellow the code calling `Notify`, which would causes the
`notify-send` execution to fail. To avoid this, we can make it seem like
`notifdService` is being used inside `Notify`, so that it is always
placed above the usage of the function, ensuring that we always have a
notification daemon running
* Add eslint-disable-line
* Update src/lib/utils.ts
---------
Co-authored-by: Jas Singh <jaskiratpal.singh@outlook.com>
* feat: add padding option for inactive workspace number
* chore: reorder options to gather padding related options
---------
Co-authored-by: Jas Singh <jaskiratpal.singh@outlook.com>
It's awkward to have a min-width on volume percentage and not on battery, it looks more natural when fitting the content so I removed the min-width
Co-authored-by: Jas Singh <jaskiratpal.singh@outlook.com>
* First version of the cava module
* Update cava stuff
* Update themes for cava
* Update themes
* Handle cava visibility when null
* Add bar characters in options
---------
Co-authored-by: Ed Bennett <ed@dodimead.com>
Co-authored-by: Jas Singh <jaskiratpal.singh@outlook.com>