Commit Graph

361 Commits

Author SHA1 Message Date
Erik Reider
8ea8569820 Fixes update_command typo #444 2024-07-28 15:20:05 +02:00
Erik Reider
d5cac981a0 Check all-lowercase desktop entries 2024-07-28 15:08:02 +02:00
Abílio Costa
723645ebb7
Mpris blacklist support (#390)
* Initial mpris blacklist support

* Fix merge conflict

* Simplify blacklist type and parse

* Fix man

* Trim whitespaces

* Fix blacklisting when a new player appears

* Remove flake.nix

* Remove log

* Remove comment

* Address review suggestions

* Fixed linter errors

---------

Co-authored-by: 12thgenpenguin <cjgibb@protonmail.com>
Co-authored-by: MrPenguin07 <127086564+MrPenguin07@users.noreply.github.com>
Co-authored-by: Erik Reider <35975961+ErikReider@users.noreply.github.com>
2024-07-24 13:00:53 +02:00
Stian Onarheim
653058beac
Close notification with middle mouse button (#413)
* Close notification with middle mouse button

Signed-off-by: Stian Onarheim <stian.onarheim@protonmail.com>

* Fix linting issue

---------

Signed-off-by: Stian Onarheim <stian.onarheim@protonmail.com>
Co-authored-by: Erik Reider <35975961+ErikReider@users.noreply.github.com>
2024-05-03 21:26:37 +02:00
Abílio Costa
af8ac2f7d7
Add MPRIS background blur for app icons (#369)
* Fix default mpris icon size

The widget was was using the .ui size instead of the user config
size in the following situations:

- there was no media player app
- the media player app icon was used
- the audio-x-generic-symbolic icon was used

This fix sets the default size for the album art icon according to the
user's config.

set_from_gicon and set_from_icon_name receive a Gtk.IconSize enum value,
not an int, so we need to call set_pixel_size to set the proper size.

* Add MPRIS background blur for app icons

---------

Co-authored-by: Erik Reider <35975961+ErikReider@users.noreply.github.com>
2024-04-21 10:40:57 +02:00
Apostroll Hardtrollias
8cb9be5970
Fix invalid data types in configSchema.json (#420)
Fix two instances inside `configSchema.json` where the invalid data
type `bool` is used, instead of `boolean`.
2024-04-15 23:31:37 +02:00
Gabriel Carneiro
be1533ad7f
block signal handlers in toggle button when updating state (#406)
* blockg signal handlers in toggle button when updating state

* fix linting

---------

Co-authored-by: Erik Reider <35975961+ErikReider@users.noreply.github.com>
2024-03-25 23:16:13 +01:00
Abílio Costa
ed1b721a15
Fix default mpris icon size (#370)
* Fix default mpris icon size

The widget was was using the .ui size instead of the user config
size in the following situations:

- there was no media player app
- the media player app icon was used
- the audio-x-generic-symbolic icon was used

This fix sets the default size for the album art icon according to the
user's config.

set_from_gicon and set_from_icon_name receive a Gtk.IconSize enum value,
not an int, so we need to call set_pixel_size to set the proper size.

* Use INVALID for IconSize

* Fix lint
2024-03-09 19:13:03 +01:00
Erik Reider
54a4c5d0d2
Fixed bottom aligned notifications being clipped in CC (#398) 2024-03-08 18:58:33 +01:00
System64
ee046a027e
Fix brightness slider choppiness (#372)
* Fix brightness slider choppiness

Make setting the brightness function async to prevent stutter on some devices.

* Fix implicit .begin deprecation warning

---------

Co-authored-by: Amir Dahan <amirdahan24@gmail.com>
Co-authored-by: Erik Reider <35975961+ErikReider@users.noreply.github.com>
2024-03-07 19:44:15 +01:00
Erik Reider
7e4a8a1c5e Close stdout script fd. Fixes #388 2024-02-21 19:51:55 +01:00
Erik Reider
0cd2e8eac9 Fixed group icon sometimes not following the defined icon size 2024-02-10 15:23:01 +01:00
System64
ae0728e2f1
Add control center visibility class (#371)
This addresses https://github.com/ErikReider/SwayNotificationCenter/issues/359
2024-02-10 15:13:10 +01:00
Erik Reider
bcedc20c36 Fix MPRIS art not resetting when there's no art URI 2023-12-20 21:22:07 +01:00
Erik Reider
74ba2f375d Fix small SVGs being blurry in notifications 2023-12-20 19:18:18 +01:00
Erik Reider
e498068ef5 Added back support for non-URI image-paths for notifications. Fixes #356 2023-12-20 19:11:09 +01:00
Erik Reider
605f195585
Bumped version requirements for libhandy and gtk-layer-shell (#357)
* Bumped version requirements for libhandy and gtk-layer-shell

* Bumped Ubuntu Action version to 23.10
2023-12-19 20:04:32 +01:00
Erik Reider
76b3441bb3 Fixed notifications not checking if app-icon is a icon-name. Fixes: #356 2023-12-19 19:00:12 +01:00
Erik Reider
ff04ca3924
Add MPRIS player background blur (#355)
* Add MPRIS player background blur

* Added edge fade

* Only blur cover if the size or source changes
2023-12-19 18:40:23 +01:00
Erik Reider
1fcef5c966 Add app icon above the regular icon (#354)
* Add app icon above the regular icon

* Fixed linting issues

* Tweaked the CSS
2023-12-15 16:21:12 +01:00
Erik Reider
b07a296bf8 Updated default style of notifications and control center 2023-12-15 15:45:49 +01:00
Erik Reider
f68dfa4254 Require vala >= 0.56 2023-12-15 12:16:46 +01:00
Erik Reider
e592a53b0b Tweaked grouped notifications look 2023-12-15 01:10:27 +01:00
Erik Reider
929d0d54b7
Add border-radius property to notification images (#353) 2023-12-15 01:04:49 +01:00
Erik Reider
8882b225fd
[New Dependency: sassc] Move to SCSS from regular CSS (#352)
* Moved to SCSS from regular CSS

* Fixed Ubuntu build
2023-12-14 17:12:30 +01:00
Erik Reider
a6cf977e90 Minor grouped notifications fixes 2023-12-14 16:50:45 +01:00
Erik Reider
86166a46b7
Grouped notifications (#345)
* Initial animation work

* Added custom icon

* Fixed collapse icon not being symbolic

* Centered collapse button

* Fixed group of 2 notifications being invisible

* Added back notification logic

Notifications are now separated into their own group depending on their provided name

* Added close all button

Also changed the notification close button icon to the new provided icon

* Fixed replacing notifications not working as expected

* Fixed group sensitivity not being set when auto collapsed

* Don't group notis with no provided app-name/desktop-file

Also adds parsing of desktop file in NotiModel which helps with getting and using the display name as the group name

* Remove testing notifications

* General fixes

* Added fade to cc viewport

* Added padding to cc viewport fade

* Call on_expand_change on close all button click

* Updated README

* Sort critical notification groups before regular groups

* Added group title icon

* Fixed not being able to navigate through single notifications

* Scroll to top of group on expand

* Fix non expanded single noti groups being clickable

* Fixed linting issues

* Added styling

* Fixed invalid style reload cast

* Set lower ordered notifications content opacity to 0

* Added hover effect to groups
2023-12-12 21:02:46 +01:00
Erik Reider
305ebf8734 Fixed CC placeholder not showing on startup. Fixes #351 2023-12-11 13:08:24 +01:00
Erik Reider
09c14e4ea9 Don't use missing image icon when noti provides invalid icon name. Fixes #350 2023-12-07 20:52:45 +01:00
peelz
5a23d5eeb5
Add notification hint to bypass dnd/inhibition (#334) 2023-11-28 13:53:07 +01:00
Jannis
ab46163f1e
Fix togglebutton in menu dropdown (#339)
* Fix togglebutton in menu dropdown

* Minor bugfixes and fix typo in readme
2023-11-28 06:50:26 +01:00
Erik Reider
70eaa5b291 Fixed NotificationWindow sometimes not closing, blocking input 2023-11-22 10:37:25 +01:00
Jannis
b7631c7de5
Add toggle button (#304)
* Add toggle button

* Toggle button documentation

* Fix issues

* Add env variable for toggle button

* Add state update command for toggle buttons

* Fix Uncrustify

* Update README
2023-11-13 00:52:26 +01:00
Carlos &
69e92da659
flush stdout after subscription events (#329) 2023-11-08 19:58:56 +01:00
Daniel Morgan
3ed3ab8fec
allow 8 digits in 2fa code regex (#332)
change 2fa regex to allow for 8 digits in a row
2023-11-08 19:56:44 +01:00
Erik Reider
90688d0fe9
Added config option to set cc exclusive zone (#321) 2023-09-27 00:43:54 +02:00
Erik Reider
0d368c2f07
Remove notification replace flicker (#320) 2023-09-26 23:09:51 +02:00
Erik Reider
7de2c71b98
Test parsing markup without any hacks before using said hacks (#319) 2023-09-26 21:17:32 +02:00
Erik Reider
ea66e68783
Simplified script and base_widget command execution (#318) 2023-09-26 18:17:34 +02:00
Erik Reider
237310c627 Fixed notifications list not scrolling when changing focus 2023-09-26 17:04:56 +02:00
Erik Reider
3069f7120d
Fixed CC list navigation skipping a notification (#305) 2023-09-26 17:04:13 +02:00
Jannis
176e3b7291
Add show-per-app-label for volume (#301) 2023-08-14 00:12:39 +02:00
Erik Reider
e3cc05d67c Moved JSON Schema comments into "$comment" tags. Fixes #298 2023-07-18 23:34:03 +02:00
Erik Reider
90cde83bde
Add meson_option to build without PulseAudio Widget (#297) 2023-07-08 17:24:39 +02:00
dev
9bac0d09af
Added "relative-timestamps" config to switch between "25 minutes ago" and "2023-06-25T20:05:27-07" (#286)
Co-authored-by: Erik Reider <35975961+ErikReider@users.noreply.github.com>
2023-07-08 12:57:16 +02:00
Erik Reider
f1821a5922
Fixed Debian packaged configs being checked before user configs (#296) 2023-07-07 17:17:36 +02:00
Erik Reider
e400600d9c Be more verbose when loading CSS and config 2023-07-06 12:17:59 +02:00
dev
181d43b637
corrected misspellings of the word "notification" (#287) 2023-06-26 10:58:09 +02:00
Erik Reider
1969d95b9d Fixed default CSS warning 2023-06-08 20:59:48 +02:00
Erik Reider
0532fb38a1 Warn user if the custom config isn't found 2023-06-08 20:52:25 +02:00