Commit Graph

233 Commits

Author SHA1 Message Date
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
Erik Reider
5435d6f7f2
Update README.md 2021-12-24 22:06:12 +01:00
Erik Reider
36c62c8a10 Removed spaces from zsh completions 2021-12-24 22:03:37 +01:00
Erik Reider
6d76249a12 Added forgotten commas in zsh completions 2021-12-24 21:57:16 +01:00
Erik Reider
e85c2f5d6d
Terminal completions (#44)
* Added ZSH completions

* Fixed single quote ending string

* Added Bash completions

* Added bash to meson.build

* Added bash variable to meson_options.txt

* Added fish shell completions
2021-12-24 21:53:28 +01:00
Nicolas Berbiche
bf9309b193
Smooth scroll to new animation in notification center (#41)
If the user has disabled animations in GTK, then there will be no
animations.
This is all handled internally by GTK.
2021-12-23 22:10:19 +01:00
Nicolas Berbiche
847c874b78
Configurable notification window width (#42)
Co-authored-by: ErikReider <ereider20010103@gmail.com>

Co-authored-by: ErikReider <ereider20010103@gmail.com>
Co-authored-by: Erik Reider <35975961+ErikReider@users.noreply.github.com>
2021-12-23 21:53:54 +01:00
Nicolas Berbiche
a41f2b6e56
Configurable critical notification timeout (#40)
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`.
2021-12-23 21:22:43 +01:00
Erik Reider
9fb9ffa54f Added ccDaemon documentation 2021-12-23 20:17:15 +01:00
Erik Reider
ff42e10be3 Updated notiDaemon documentation 2021-12-23 20:02:13 +01:00
Erik Reider
afefe58cba Fix css reload not updating notification event_box 2021-12-23 18:16:56 +01:00
Erik Reider
1424a988c5 Moved Notify method into "Specification" section 2021-12-23 17:43:15 +01:00
Erik Reider
91ddc06808 Moved notification struct and emuns to its own file 2021-12-23 17:39:19 +01:00
Erik Reider
9cf056b831 Moved ccDaemon into it's own file and removed DbusInit 2021-12-23 17:35:47 +01:00