* add notifications number in text field
* include a mention about this in the README
* fix the linting issue... hopefully
* print the count as a uint directly
ran into this when themeing SwayNotificationCenter, assumed a `-R` alone
would bounce the css settings.
easier to make mention of this right away and avoid others debugging for
a bit.
Signed-off-by: ldelossa <louis.delos@gmail.com>
* Added initial scripting class in config
* Added exec string
* Added regex matching
* Can now run script and prints if there are any errors
* Export SWAYNC env variables
* Check if non-required fields are null before regexing
* Fixed Scripts to_string method not printing the correct names
* Added config bool to show new notification if script fails
* Added meson option to disable scripting before build
* Added example script into config
* Added scripts object and its properties to JSON schema
* Removed statement that urgency doesn't use regex
* Updated README with scripting info
* Added "script-fail-notify" to README
* Add rpkg spec template for building RPMs.
This is a template for rpkg[1], which is used to generate spec files and
consequently SRPM and RPM.
Rpkg generates swaync.spec from swaync.rpkg.spec and packages it
together with sources into SRPM. Then SRPM is used to build on Koji[2]
and produce binary RPM's for various targets and platform.
The whole sequence:
swaync.rpkg.spec -> swaync.spec -> SwayNotificationCenter.src.rpm -> SwayNotificationCenter.rpm
Assuming that you have rpkg installed, you could run 'rpkg local' for
local build, or 'rpkg copr-build' to start the build on Koji.
[1] https://pagure.io/rpkg
[2] https://koji.fedoraproject.org
* Add installation instructions for Fedora.
Co-authored-by: Aleksei Fedotov <aleksei@fedotov.email>
I think there was also a logic error related to setting an expiry
timeout.
It was only set if `params.expire_timeout` was not `0`, instead of
checking that both the user configured timeout and the one requested was
set to `0`.
* New config deserialization system + new timeout and timeout_low values
* Updated README
* Now doesn't accept values < 1
* Can now reload config from client and dbus
* Updated README with config reload command
* Removed unused json errordomain
* Fixed _path being overridden on first start
* Changed timeout_low name to timeout-low
* Fixed segfault when calling PositionX/Y.parse()
* Notiwindow and CC now change position on config change
* Added method to change config value from dbus
* Removed unused debug print
* Change_value now writes to the specified or default path
* Added new option to skip writing to config
* Added comments
* Added --reload-config command to README.md