Commit Graph

260 Commits

Author SHA1 Message Date
Jonas Frei
a8043e0f11
Add install instructions for Gentoo (#93)
* Added Gentoo build instructions

* Added category 'gui-apps' to description

* Added link to GURU repository
2022-02-23 13:22:00 +01:00
Erik Reider
36e57c56bd All notification images are now the same size 2022-02-21 16:04:56 +01:00
Erik Reider
223e78a0a7
Fixed notification image scaling being blurry on HiDPI displays (#92) 2022-02-21 01:20:05 +01:00
Erik Reider
4d71fdf316 Fixes #91 2022-02-21 00:28:54 +01:00
Erik Reider
0ed0361291 Fixes floating notifications not hiding when opening panel 2022-02-21 00:28:42 +01:00
Erik Reider
54e2fbacf8 Bumped version to 0.4 2022-02-20 00:03:06 +01:00
Erik Reider
157f28f8d4 Fixed ubuntu build issue 2022-02-18 21:04:07 +01:00
Erik Reider
4283ab9d07 Added "value" hint to draw a progressbar 2022-02-18 20:57:31 +01:00
Erik Reider
90dff21da3 Fixed trying to slice empty string when setting icon 2022-02-18 20:06:34 +01:00
Erik Reider
22bb2b4a70 Refactored replacement code 2022-02-18 20:01:02 +01:00
Erik Reider
c19ae742af Removed unfinished notification progressbar 2022-02-18 19:59:50 +01:00
Erik Reider
756229cff3 Added⋅"synchronous" (and its derivatives) to replace notifications. Fixes #86 2022-02-18 19:45:07 +01:00
Erik Reider
65dce2c034 Fixed #88 2022-02-18 18:39:07 +01:00
Erik Reider
e98fdee155 Config hashtable can now parse string,int64,bool and objects 2022-02-18 18:22:58 +01:00
Erik Reider
ec739c6d48
Config: Handle arrays (#85)
* Can now handle arrays

* Added support for objects

* Removed default return

* Replaced arrar.foreach with a regular foreach statementy

* Added null check in serialization

* Fixed Ubuntu build issue
2022-02-17 18:10:24 +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