57 Commits

Author SHA1 Message Date
Kovid Goyal
c43fe38cf1 macOS: Fix waiting for result from desktop notification not working 2025-02-27 19:38:06 +05:30
Kovid Goyal
188c209b2c ... 2025-02-27 19:14:02 +05:30
Kovid Goyal
50f64d5981 Only use window occlusion on platforms where it is supported 2025-02-12 12:02:46 +05:30
Kovid Goyal
d27e4f84b7 notify_on_cmd_finish invisible now uses actual OS Window visibility as reported by the window manager
Fixes #8320
2025-02-12 10:30:18 +05:30
Kovid Goyal
da1626090a Update codebase to Python 3.10 using pyupgrade 2025-02-03 10:56:50 +05:30
Kovid Goyal
334adf9c1a Ensure temp files and other resources are cleaned up even if kitty crashes or is SIGKILLed 2025-01-05 12:51:59 +05:30
Kovid Goyal
3bee1857f7 Make mypy happy 2024-12-21 08:06:29 +05:30
Yury Shvedov
a9bcc3319a Cleanup command finish notifications
Currently notifications emitted with `notify_on_cmd_finish` and
unfocused left withing notification bar forever and user have to clear
them by hand. This patch automatically clears notification when emitted
window gained its focus back assuming that user is aware about action
and not needs for notification any more.

Change-Id: I8c9f58eeed696eb473aa4a966436aeb1a15fd3d6
2024-12-04 19:47:41 +03:00
Kovid Goyal
46c610525c Make mypy happy, I hope 2024-10-15 07:35:15 +05:30
Kovid Goyal
5a77ea64d0 Also log incomplete base64 data for notification requests 2024-09-15 08:45:48 +05:30
Kovid Goyal
d75d372da0 Reset base64 streaming decoder after invalid input
Fixes #7757
2024-08-20 17:37:25 +05:30
Kovid Goyal
c68de312dc Use Linux native notifications timeout functionality
Allows behaviors like not expiring notification if user hovers over it,
etc.
2024-08-08 17:20:06 +05:30
Kovid Goyal
2c743dcdb2 Update sound support in desktop notifications spec
Add a short list of standard sound names.
2024-08-04 20:20:41 +05:30
Kovid Goyal
35b2895f3c old python 2024-08-03 13:58:52 +05:30
Kovid Goyal
bd8162fa42 Add support for controlling the sound played with notifications 2024-08-03 13:46:38 +05:30
Kovid Goyal
89aa82e8d7 Pass the first notification type as category to the dbus server 2024-08-02 20:41:18 +05:30
Kovid Goyal
6ffe2d82b8 On Linux use the notification server capabilities when responding to queries 2024-08-01 10:32:51 +05:30
Kovid Goyal
6a203487a9 Get notification buttons working on macOS 2024-08-01 06:40:52 +05:30
Kovid Goyal
1f656eccbb Fix tests for buttons functionality 2024-07-31 15:21:57 +05:30
Kovid Goyal
f61635838e old python compat 2024-07-31 14:58:21 +05:30
Kovid Goyal
aa16918dd4 Implement support for buttons on notifications in Linux 2024-07-31 12:11:21 +05:30
Kovid Goyal
f1d0d0949b Run pyupgrade to update the codebase to python 3.9
Gets rid of a lot of typing ugliness by using type annotations on
builtin types
2024-07-31 07:55:27 +05:30
Kovid Goyal
01eacef387 Implement special symbol names on macOS 2024-07-31 07:28:11 +05:30
Kovid Goyal
99c5681f65 Implement OS notification named icons on macOS 2024-07-30 13:05:26 +05:30
Kovid Goyal
3cc2a8c484 Get notification icons with data working on macOS 2024-07-30 08:46:10 +05:30
Kovid Goyal
f998af56fc Use application name as thread identifier for cocoa notifications 2024-07-30 07:48:52 +05:30
Kovid Goyal
b52275e0b5 Simplify API of streaming base64 decoder further 2024-07-29 21:24:45 +05:30
Kovid Goyal
212d7accfc Allow multiple types per notification 2024-07-29 20:52:54 +05:30
Kovid Goyal
9047df5080 Use a more correct method name 2024-07-29 20:17:52 +05:30
Kovid Goyal
eb1bb493a7 Ensure icon cache is cleared at exit 2024-07-29 15:24:18 +05:30
Kovid Goyal
ad48ecad40 Implement handling of icon names on Linux 2024-07-29 14:39:20 +05:30
Kovid Goyal
6e35289f8e Allow sending icon data without an identifier 2024-07-29 10:41:05 +05:30
Kovid Goyal
eca487d15f Add support for auto-expiring notifications 2024-07-28 20:14:39 +05:30
Kovid Goyal
083f158bbd Implement a polling mode for close events 2024-07-28 15:35:22 +05:30
Kovid Goyal
02bc104091 On macOS only track nots that request close events
Send an untracked event when giving up tracking of the notification
2024-07-28 13:19:47 +05:30
Kovid Goyal
2bffea2bdc Implement updating of notifications 2024-07-28 12:25:35 +05:30
Kovid Goyal
59c175f312 Add test for filtering 2024-07-28 09:15:18 +05:30
Kovid Goyal
de21e5e488 Implement filtering of desktop notifications
Fixes #7670
2024-07-28 08:41:24 +05:30
Kovid Goyal
c59ab759a1 Allow well behaved applications to categorise notifications so that users can easily filter them out 2024-07-27 21:54:19 +05:30
Kovid Goyal
45a3a655a7 Desktop notifications: Fix limited HTML markup in the body text being rendered as HTML on some Linux systems
Fix #7671
2024-07-27 21:19:46 +05:30
Kovid Goyal
54b328710b Implement polling based closed notifications on macOS 2024-07-27 20:58:55 +05:30
Kovid Goyal
706cf1cd24 Add *some* closed events to cocoa notifications 2024-07-27 13:47:31 +05:30
Kovid Goyal
8ba4e36ea4 DRYer 2024-07-27 00:06:59 +05:30
Kovid Goyal
c18098d872 Cleanup DBUS send notification API 2024-07-26 23:57:36 +05:30
Kovid Goyal
2c90baf0b6 Get icon names working on linux 2024-07-26 23:57:36 +05:30
Kovid Goyal
a473738001 Add tests for handling of icon metadata 2024-07-26 23:57:36 +05:30
Kovid Goyal
3d0747e713 Switch to SIMD accelerated base64 decoding for clipboard and notification requests 2024-07-26 23:57:33 +05:30
Kovid Goyal
ea112a6592 Start work on adding icon support to desktop notifications 2024-07-26 22:46:21 +05:30
Kovid Goyal
0813a3daff Report if close events are supported in the query response 2024-07-25 18:59:31 +05:30
Kovid Goyal
9c772915fb Pass through dismissed events even though apple never generates them 2024-07-25 18:41:10 +05:30