Commit Graph

246 Commits

Author SHA1 Message Date
Erik Reider
11c4705e87 Initial X11 positioning support 2022-02-15 17:42:31 +01:00
Erik Reider
ee7b47e3ac Added wayland check 2022-02-11 18:47:32 +01:00
Erik Reider
f59a121478 Corrected exract_hashtable comment 2022-02-11 15:38:44 +01:00
Erik Reider
de0beaf7a4 Moved WANT_SCRIPTING preprocessor if statement down to the correct position 2022-02-11 15:38:19 +01:00
Erik Reider
9e2a4ba841 ConfigModel enums parse method now use switches 2022-02-11 15:37:27 +01:00
Louis DeLosSantos
eaef200fb2
docs: mention css reload (#80)
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>
2022-02-08 23:52:14 +01:00
Erik Reider
90768ce824 Added documentation in README to disable scripting 2022-02-07 16:55:48 +01:00
Erik Reider
8d717d51f6 Use static icon image size for custom notification icons 2022-02-06 20:55:20 +01:00
Erik Reider
2e18cefc62 Refactored desktop_entry icon method 2022-02-06 20:48:34 +01:00
Erik Reider
f18fa5d3db Use static icon size for notification icon 2022-02-06 20:48:09 +01:00
Erik Reider
8902b752d8
Add scripting dict to config (optional through meson option) (#79)
* 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
2022-02-06 20:17:13 +01:00
Erik Reider
6f0cbaa52d Formatted json schema 2022-02-06 19:35:13 +01:00
Erik Reider
f9868be409 Fixed Freedesktop icons not being set 2022-02-06 17:36:21 +01:00
nightly brew
959614c595
Fixed typo in vala namespace, ui files templaces and file names (#78)
Co-authored-by: nightly-brew <>
2022-02-06 10:47:23 +01:00
Erik Reider
099aa06375
Be able to use JSON dictionaries in config (#77)
* Initial implementation

Added serialization and deserialization

Co-Authored-By: nightly brew <93888516+nightly-brew@users.noreply.github.com>

* Check if Generic T is a descendant of GLib.Object

Co-authored-by: nightly brew <93888516+nightly-brew@users.noreply.github.com>
2022-02-05 20:37:04 +01:00
Erik Reider
e3f99a1932 Simplified client subscription signal 2022-02-05 17:08:03 +01:00
Erik Reider
f87baba77b Fixed trying to print a null string on each notification 2022-02-05 15:48:55 +01:00
Erik Reider
dbede7a6f4 Added debug print on new notification 2022-02-02 20:27:15 +01:00
Erik Reider
0f69f080b4 Updated build actions to use pre-built dockerfiles 2022-01-30 01:20:11 +01:00
Erik Reider
6f850ebadb
Build Actions (#69)
* Added initial Ubuntu build action

* Update building.yml

* Update building.yml

* use 21.10 docker image

* Remove sudo

* Add -y to apt install

* Add "DEBIAN_FRONTEND=noninteractive" to remove tzdata dialogs

* Added arch build action

* Add build badge to README.md
2022-01-28 18:14:51 +01:00
Erik Reider
a792ebda16 Removed meson message 2022-01-27 18:59:02 +01:00
Erik Reider
6e0c9a779a
Added version command to swaync (#67)
* Added version command to swaync

* Added version arg to client

* Prints to stdout

* Replaced GetServerInformation version with the generated one

* Updated shell completions
2022-01-27 18:30:53 +01:00
Erik Reider
5b505ca09b
Added json schema (#65) 2022-01-26 18:41:15 +01:00
Erik Reider
a91b440fd4 Fixes #63. Replaces press with release event 2022-01-25 00:21:06 +01:00
Erik Reider
64cbae2465 Merge branch 'main' of github.com:ErikReider/SwayNotificationCenter 2022-01-22 15:19:10 +01:00
Erik Reider
2b085a914b Removed vala-dbus-binding-tool-git as dependency in PKGBUILDs 2022-01-22 15:19:05 +01:00
Erik Reider
840b2a127e
Update README.md 2022-01-21 11:45:27 +01:00
Aleksei Fedotov
998f7e286d
Add build for fedora and other RPM based distros. (#59)
* 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>
2022-01-16 18:47:45 +01:00
Erik Reider
ce92c3ebce Fixes invisible body when sending URLs 2022-01-12 23:00:33 +01:00
Erik Reider
4312e00a5b Formatted configModel.vala 2022-01-12 17:26:10 +01:00
Erik Reider
5be4e738eb Added waybar subscription format with a working example 2022-01-11 01:05:44 +01:00
Erik Reider
e96b6eaac9 Exit client when no args are inputed 2022-01-10 23:28:52 +01:00
Nicolas Berbiche
d45a1a7712
Configurable notification window width (#42) (#39)
Co-authored-by: ErikReider <ereider20010103@gmail.com>

Co-authored-by: ErikReider <ereider20010103@gmail.com>
2022-01-10 20:42:20 +01:00
Erik Reider
e6606448a1 Fixes: Replacing a notification closes it #54 2022-01-10 16:19:39 +01:00
Erik Reider
3ac63ffa6e Exit with code 1 on dbus error 2022-01-10 16:10:54 +01:00
Erik Reider
60cab78bb0 Closing notification with keyboard now sends the close action 2022-01-09 00:52:03 +01:00
Erik Reider
933f1dd850 Added hide-on-action to config 2022-01-09 00:46:45 +01:00
Erik Reider
caac385bf9 Fixed comment style for hide_on_clear in config 2022-01-09 00:40:05 +01:00
Erik Reider
507aabc8ff Added the "stable" PKGBUILD and updated the swaync-git version 2022-01-09 00:34:12 +01:00
Erik Reider
78c645d4a0
Added swaync to aur packages 2022-01-09 00:29:32 +01:00
Luca Berneking
37142fcb37
Close control center when clearing all notifications (#53)
* Close control center when clearing all notifications

* make hide on clear configurable, disabled by default
2022-01-08 15:42:13 +01:00
Erik Reider
c345804df8 Merge branch 'main' of github.com:ErikReider/SwayNotificationCenter 2022-01-06 18:13:55 +01:00
Erik Reider
1d0ff74679 Fixed clear_all_notifications not sending a close action #52 2022-01-06 18:09:32 +01:00
nightly brew
31762b8b37
Fix mistake in ExecReload directive (#51)
* Provide dbus and systemd service files by default

* Split ExecReload command in two, since swaync-client only handles one argument per run.

* Fix mistake in ExecReload directive: systemd doesn't allow shell constructs, but only allows to concatenate multiple commands with a semicolon.

Co-authored-by: nightly-brew <>
2022-01-06 13:38:05 +01:00
nightly brew
4e35be8626
Add Dbus activation service and systemd unit file (#50)
* Provide dbus and systemd service files by default

* Split ExecReload command in two, since swaync-client only handles one argument per run.

Co-authored-by: nightly-brew <>
2022-01-05 19:54:09 +01:00
Erik Reider
98c5fb7e09 Can now open and close control center 2022-01-04 17:11:50 +01:00
Erik Reider
6909949289 Moved completions to main meson.build 2022-01-03 13:26:16 +01:00
Erik Reider
c1eb052560 Merge branch 'main' of github.com:ErikReider/SwayNotificationCenter 2021-12-28 14:41:30 +01:00
Erik Reider
a72ba2e8fa Fix notification replacement not always visible 2021-12-28 14:40:47 +01:00
Erik Reider
5e5efb0130
Update README.md 2021-12-27 18:08:05 +01:00