Quickshell


Notification: QtObject

uncreatable
import Quickshell.Services.Notifications

A notification emitted by a NotificationServer.

NOTE

This type is Retainable. It can be retained after destruction if necessary.

  • actions list <NotificationAction>
    readonly

    Actions that can be taken for this notification.

  • appIcon string
    readonly

    The sending application’s icon. If none was provided, then the icon from an associated desktop entry will be retrieved. If none was found then "".

  • appName string
    readonly

    The sending application’s name.

  • body string
    readonly
    No details provided
  • desktopEntry string
    readonly

    The name of the sender’s desktop entry or "" if none was supplied.

  • expireTimeout real
    readonly

    Time in seconds the notification should be valid for

  • hasActionIcons bool
    readonly

    If actions associated with this notification have icons available.

    See Go to NotificationAction.identifier for details.

  • hints unknown
    readonly

    All hints sent by the client application as a javascript object. Many common hints are exposed via other properties.

  • id int
    readonly

    Id of the notification as given to the client.

  • image string
    readonly

    An image associated with the notification.

    This image is often something like a profile picture in instant messaging applications.

  • lastGeneration bool
    readonly

    If this notification was carried over from the last generation when quickshell reloaded.

    Notifications from the last generation will only be emitted if Go to NotificationServer.keepOnReload is true.

  • resident bool
    readonly

    If true, the notification will not be destroyed after an action is invoked.

  • summary string
    readonly

    The image associated with this notification, or "" if none.

  • tracked bool

    If the notification is tracked by the notification server.

    Setting this property to false is equivalent to calling dismiss().

  • transient bool
    readonly

    If true, the notification should skip any kind of persistence function like a notification area.

  • urgency NotificationUrgency
    readonly
    No details provided
  • dismiss() void

    Destroy the notification and hint to the remote application that it was explicitly closed by the user.

  • expire() void

    Destroy the notification and hint to the remote application that it has timed out an expired.

  • closed(reason)   ?

    Property reasonNotificationCloseReason

    Sent when a notification has been closed.

    The notification object will be destroyed as soon as all signal handlers exit.