Commit Graph

361 Commits

Author SHA1 Message Date
Erik Reider
5eb7c2a511 Fixed issue where custom config wouldn't be used on reload 2023-06-08 20:52:01 +02:00
slikie
d46833bbd7
Allow empty name for actions (#272) 2023-05-30 13:32:24 +02:00
Erik Reider
ba4a2665fa
Add inline replies to notifications (#221) 2023-05-29 15:08:51 +02:00
Erik Reider
7cfa5032ec Fixed inconsistencies in config schema 2023-05-21 16:34:28 +02:00
Erik Reider
c246bca853
Added control-center layer config option (#263) 2023-05-16 14:24:10 +02:00
Erik Reider
b91e39c1aa
Fixed Control Center not using layer shell config option 2023-05-14 15:34:41 +02:00
Erik Reider
81613a2554
Added ability to choose wether layer-shell should be used or not (#261) 2023-05-14 13:11:50 +02:00
Erik Reider
28ed6342cc
Added ability to toggle parsing of notification 2fa codes (#260) 2023-05-14 13:03:42 +02:00
Erik Reider
a8b04b9cf0
Add positonY center for notifications and CC (#259) 2023-05-14 12:30:21 +02:00
Erik Reider
b8ef618132
Replace config HashTable with OrderedHashTable (#258) 2023-05-14 10:16:06 +02:00
Erik Reider
c05acfa81f
Fixed mpDris2 mpris issues (#253) 2023-05-11 21:19:02 +02:00
Jannis
5e45050a4d
Fix issue #245 (#248) 2023-05-02 21:07:27 +02:00
Jannis
91f19dfb4e
Per app volume control (#235) 2023-04-11 10:31:16 +02:00
Mirei124
a2397da06a
Use rounding to prevent incorrect backlight percentage calculation (#236) 2023-03-30 18:45:44 +02:00
Erik Reider
81bf4bdb39
Hide visible notifications when activating dnd (#233)
* Hide visible notifications when activating dnd

* Fix linting issues

---------

Co-authored-by: Erik Reider <erik.reider@protonmail.com>
2023-03-08 10:19:24 +01:00
Jannis
f7daa7ac45
Menu animation (#230) 2023-03-05 16:48:16 +01:00
Erik Reider
2da4e0abfb Fix linting issue 2023-03-05 13:22:29 +01:00
Erik Reider
74d6353e97 Fix trying to disconnect null PulseContext when reloading config. Fixes #231 2023-03-05 13:20:54 +01:00
Erik Reider
14c830a11d Fixed inhibitor widget being visible on start 2023-02-23 21:43:50 +01:00
Erik Reider
4f25e2e609
[Feature] Add ability to inhibit notifications through DBus (#223) 2023-02-23 21:41:08 +01:00
Jannis
c7644dbf91
Add Brightness slider widget (#211) 2023-02-22 18:16:19 +01:00
Erik Reider
befd6267b4 Fix buggy control center "click to exit" 2023-02-22 13:24:09 +01:00
Erik Reider
b1653dade2 Set notification window layer namespace to "swaync-notification-window" 2023-02-22 13:23:42 +01:00
Erik Reider
66c4226354 Use "layer" config option to also set blank window layer 2023-02-22 13:23:01 +01:00
Erik Reider
791cf29fc0 Remove all files related to unused topAction. Fixes #222 2023-02-22 12:38:57 +01:00
Erik Reider
450ad37c6e
Add "desktop-entry" as option to scripts (#219) 2023-02-21 12:42:15 +01:00
Erik Reider
4b00c96de4
Add Notification Action to copy body security codes to clipboard (#217) 2023-02-19 18:32:40 +01:00
Erik Reider
8ca741e4aa Added default case to Positions in notification and notificationWindow 2023-02-19 14:50:33 +01:00
Erik Reider
fa9f4879cf
Update configSchema.json 2023-02-19 14:05:12 +01:00
Erik Reider
a91a1f6d86
Add ControlCenter positioning config option (#213) 2023-02-13 16:29:30 +01:00
Erik Reider
83a9f21058 CC: Keep focus on notification focused when new notification is added 2023-02-13 14:49:10 +01:00
Erik Reider
31e6d59471
Add Notification placeholder in Control Center (#212) 2023-02-12 17:21:41 +01:00
Jannis
bfcf9b9a32
Audio slider (#207) 2023-02-12 16:16:33 +01:00
Jannis
5779017397
Add ControllsWidget (#203) 2023-02-09 19:22:29 +01:00
Erik Reider
7e21a29c6b Set layershell namespace for blankwindows 2023-01-26 23:07:55 +01:00
Erik Reider
ad827d698a Set layershell namespaces. Fixes #204 2023-01-26 21:40:47 +01:00
Mildred Ki'Lya
0767c90a77
Add Override urgency to config (#199) 2023-01-18 11:48:54 +01:00
autumn
8a1ffcfd6f
Action scripts (#194)
Co-authored-by: auctumnus <auctumnus@users.noreply.github.com>
Closes https://github.com/ErikReider/SwayNotificationCenter/issues/192
2023-01-03 18:56:59 +01:00
Adam Borowski
12ec6012b4
a bunch of typo fixes (#187) 2022-12-13 12:14:11 +01:00
Erik Reider
f8e1bcac77 Fixed linting issues 2022-11-28 18:41:23 +01:00
Erik Reider
2265b27ae9 Fixed segfault when reloading config 2022-11-28 18:39:15 +01:00
Erik Reider
6fd1ca08e2 Adds MPRIS widget arrows when multiple players are detected. Fixes: #173 2022-10-29 14:16:00 +02:00
Erik Reider
ce54d81770 Fix not being able to interact with CC without first click. Fixes #172 2022-10-29 13:18:06 +02:00
Erik Reider
8c960f7873 Fix MPRIS image scaling when display is scaled 2022-10-29 12:26:25 +02:00
Erik Reider
f765d2d452
Add cssPriority to config (#176)
* Added cssPriority to config

* Fixed linting issues
2022-10-28 18:33:59 +02:00
Tobias Langendorf
69375cc791
Add option to configure control center layer (#175) 2022-10-21 00:01:00 +02:00
lazytanuki
ebd726e38a
feat: transient notification visibility (#170) 2022-10-09 11:29:48 +02:00
Benjamin Vergnaud
81fb57ecb7
Add client flags to turn dnd on/off (#169) 2022-09-30 00:10:16 +02:00
Erik Reider
b65a08bb27
Add /usr/local/etc/xdg/swaync/ as default fallback path for config and CSS files (#168)
* Added /usr/local/etc/xdg/swaync/ as default fallback path

* Added comments to clarify its purpose
2022-09-27 20:30:06 +02:00
Erik Reider
95039d90f4 Removed all references to RegexCompileFlags.JAVASCRIPT_COMPAT due to deprecation 2022-09-22 22:53:36 +02:00
Erik Reider
7a82c82e6a Fixed GLib2.74.0 causing a segfault. Fixes: #164 2022-09-22 22:44:30 +02:00
Erik Reider
2b59b30966 Fixed fedora build issue 2022-09-15 23:18:28 +02:00
asas1asas200
35b296c5c1
Fix typo (#160) 2022-08-30 20:56:17 +02:00
Erik Reider
94f0a4352e Removed all unnecessary GLib namespace prefixes 2022-08-20 11:21:18 +02:00
Erik Reider
3bed6d4f60 Removed all unnecessary GLib namespace prefixes 2022-08-20 11:17:28 +02:00
Erik Reider
9133a765d7
All notification urgencies can now use 0 as timeout to not expire (#158) 2022-08-20 11:16:45 +02:00
Erik Reider
3bc2b5e5ce
Mpris Media Player widget (#157)
* Initial Mpris widget code

* Fixed carousel not updating widgets when CC is hidden

* Scroll to newest player when new player appears

* Updated widget style

* Clamp image radius

* Use generic type when getting config value

* Use Application icon as fallback

* Use Appname as fallback

* Show first artist in subtitle

* Button opacity is now applied only to the image child

* Treat Stopped state as paused

* Fixed linting issues

* Updated README

* Updated config and config schema

* Simplified player check

* Updated Man page

* Enable scrolling

* Updated css to include title and subtitle
2022-08-17 23:15:55 +02:00
Erik Reider
87840b3d65 Fixed Control Center sometimes dismissing when clicking inside of CC 2022-08-06 16:23:35 +02:00
Erik Reider
14a327603c
Customize and reorder widgets in Control Center (#150)
* Initial widget code with Title and DND widgets

* Fixed linting issues

* Added label widget

* Added label to widgets JSON Schema

* Added default widgets

* Added info to swaync 5 man page

* Updated README with widget info

* Added ability for multiple configs per widget

* Reworked how the widget CSS classes are applied

* Fixed linting issues

* Added CSS class names to man page
2022-08-03 17:02:09 +02:00
Erik Reider
913a5d7f3c Fixed Config and Style not handling custom home-relative paths 2022-07-23 23:17:17 +02:00
Erik Reider
4f142f54f6 Fixed styling notification summary not working correctly. Fixes #143 2022-07-11 22:30:46 +02:00
Carlos Ortega
b455c63479
Issue #141: Waybar subscription missed opportunity (#142)
* 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
2022-07-10 11:40:19 +02:00
Erik Reider
04e59cbc41
Fixed click to close Control Center not working on some WMs (#139) 2022-06-29 22:55:56 +02:00
Erik Reider
ea6b68f820 Fixed bug where replacing notifitions aren't visible 2022-06-25 20:54:02 +02:00
Erik Reider
9a251ed1cb Fixed nasty hover bug after first notification 2022-06-25 16:54:48 +02:00
Erik Reider
c1bc6f4a22 Updated style.css documentation 2022-06-19 15:03:31 +02:00
Erik Reider
aab565d723 Replaced state cacher with gsettings 2022-06-19 14:01:22 +02:00
Erik Reider
8425afbfa8
[Feature] Click outside Control Center to close (#133)
* Initial implementation

* Fixed linter errors

* Fixed Ubuntu build error

* Added comment to .blank-window css class, formatted file with prettier

* Use packaged css file as backup
2022-06-16 17:44:57 +02:00
Erik Reider
8a96948e1b Fixed notification trying to set icon from invalid .desktop file 2022-06-15 00:32:36 +02:00
Erik Reider
75e7363fc8 Renamed all notiWindow.* files to notificationWindow.* 2022-06-14 11:21:17 +02:00
Erik Reider
350f7a9beb Removed unnecessary NotiWindow class 2022-06-14 11:19:38 +02:00
Erik Reider
b84a24a632 Add notification-body-image-height/width property to config. Fixes #131 2022-05-31 18:23:16 +02:00
Erik Reider
735f2c5ab1 Add notification-image-size property to config 2022-05-31 18:10:13 +02:00
Erik Reider
725b80c615 Fixed some style inconsistencies when using arc theme 2022-05-30 18:04:39 +02:00
Erik Reider
739781040c Center notification Title and Body vertically 2022-05-29 17:16:52 +02:00
Erik Reider
7a69695fb2 Set default notification image visibility to "when-available". Fixes #70 2022-05-29 16:54:25 +02:00
Erik Reider
f9b75f4f32 Added control-center-height to default config 2022-05-22 22:14:16 +02:00
Erik Reider
d17680b03f Fixed default style.css file not being parsed correctly after e082c3cb 2022-05-19 18:55:02 +02:00
Erik Reider
e082c3cba2 Added comment above .top-action-title in style.css 2022-05-18 21:32:56 +02:00
Erik Reider
a9c7af2371 Increased default cc width to 500 2022-05-15 21:04:04 +02:00
Erik Reider
6d49f15363 Fixed #124. Position X and Y broken after linting changes 2022-05-14 14:48:03 +02:00
Erik Reider
d295a76e77
Added GetSubscribeData to dbus daemon (#123)
* Added GetSubscribeData to dbus daemon

* Updated client to use GetSubscribeData
2022-05-14 12:54:48 +02:00
Erik Reider
f4ba92140f Increased default notification border radius 2022-05-14 12:30:42 +02:00
Erik Reider
17deb981cc Merge branch 'main' of github.com:ErikReider/SwayNotificationCenter 2022-05-13 14:15:52 +02:00
Erik Reider
e9603dce1b Moved cc subscription signal call into notidaemon 2022-05-13 14:15:47 +02:00
Erik Reider
8319917b7b Fixed cc toggling not calling subscription signal 2022-05-13 14:14:57 +02:00
Anthony Ruhier
07f6aac047
Do not keep transient notifications in the CC (#121)
Fixes #120.

Notifications can indicate in their hints that they should be transient.

A transient notification is not persistent, therefore, respects this
hint and do not stack transient notifications in the control center.
2022-05-12 14:56:55 +02:00
Erik Reider
50d2274f60 Updated default style to follow libadwaita style 2022-05-11 21:21:13 +02:00
Erik Reider
e7556a0da0 Fixed default action being null 2022-05-11 19:51:13 +02:00
Erik Reider
f68868232c
Cache Do Not Disturb state (#119)
* Initial caching with dnd support

* Updated README

* Removed initial notification caching code
2022-05-08 19:42:04 +02:00
Erik Reider
7251bb0a57 Simplified markdown regex string 2022-05-08 19:37:56 +02:00
Erik Reider
19beafa528 Fix some markup characters not being unescaped 2022-05-08 19:37:34 +02:00
Erik Reider
ec01b49319 Fixed building on Ubuntu 2022-05-07 15:42:25 +02:00
Erik Reider
da6d1efe6e Fix linting error 2022-05-07 15:36:40 +02:00
Erik Reider
2a07bd7487 Fixed notiModel compile warnings 2022-05-07 15:34:17 +02:00
Erik Reider
f848b57018 Changed the daemon structure. Now in a simpler layout 2022-05-07 15:21:56 +02:00
Erik Reider
c38a189060 Removed all string templates 2022-05-06 13:28:57 +02:00
Erik Reider
8c2df6b2bc Notification.vala now follows vala coding style 2022-05-06 13:10:57 +02:00
Nicolas Berbiche
312a69dd69
Ellipsize and wrap notification body (#37)
* Ellipsize and wrap notification body

* Implement hack around clipped notification in notification window

* Removed lines hack

* Manually set scrolled window properties

Co-authored-by: Erik Reider <35975961+ErikReider@users.noreply.github.com>
2022-05-06 11:29:07 +02:00
Erik Reider
8eb56a195b
Vala-lint fixes + linting Github Action (#118)
* Updated code to follow vala-lint style

* Added GitHub Linting Action
2022-05-05 22:40:00 +02:00