Commit Graph

195 Commits

Author SHA1 Message Date
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
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
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
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
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
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
1d0ff74679 Fixed clear_all_notifications not sending a close action #52 2022-01-06 18:09:32 +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
a72ba2e8fa Fix notification replacement not always visible 2021-12-28 14:40:47 +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