Table of contents

  1. HyprlandSubscription
  2. MprisSubscription
  3. Notification
  4. NotificationSubscription
  5. Subscriptions
  6. SystemTrayItem
  7. SystemTraySubscription

source


HyprlandSubscription

Propreties:

active_clientstring?

Sends a signal whenever the active hyprland client (window) was changed (e.g. active window focus has changed). Outputs a singular HyprlandClient or nil if there is no focus

clientsstring?

Sends a signal whenever a hyprland client (window) was changed (for example: window closed, window opened, window moved). All of the clients ordered by their workspace is provided

workspacesstring?

Sends an signal whenever hyprland workspaces change (e.g. workspace is added, workspace is moved, workspace is destroyed). All of the workspaces are provided

Methods:


MprisSubscription

Propreties:

looping_changedstring?

Sends a signal whenever the player's loop status was changed. New loop status is provided

pausedstring?

Sends a signal whenever the player was paused

playingstring?

Sends a signal whenever the player started playing

shuffle_toggledstring?

Sends a signal whenever the player's shuffle status was changed. New shuffle status is provided

stoppedstring?

Sends a signal whenever the player was stopped

track_changedstring?

Sends a signal whenever the player's track has changed. New metadata is provided

volume_changedstring?

Sends a signal whenever the player's volume was changed. New volume is provided

Methods:


Notification

Propreties:

actionsstring[]

Actions are sent over as a list of pairs. Each even element in the list represents the identifier of the action. Each odd element in the list is the localized string that will be displayed to the user

app_iconstring

The optional program icon of the calling application. Can be blank, indicating no icon.

app_namestring

The optional name of the application sending the notification. Can be blank

bodystring

The optional detailed body text. Can be blank

expire_timeoutnumber

The timeout in milliseconds since the display of the notification and at which the notification should automatically close. If it is -1 it means that there is predefined expire timeout (up to you). If 0 then it never expires.

replaces_idnumber

The optional notification ID that this notification replaces. It is reccomended that the server must atomically (i.e. with no visual cues or flicker) replace the given notification with this one, so that applications can modify noitifications while they still are active. A value of 0 means that it will not replace notifications

summarystring

The summary text briefly describing the notification

Methods:


NotificationSubscription

Propreties:

on_notificationstring

Sends a signal whenever a notification is recieved. The signal_data is of type Notification and contains the data of the notification.

Methods:


Subscriptions

Propreties:

callstable<string, string>?

Sends to a signal when the specified call name (in the index) has been sent

hyprlandHyprlandSubscription?

see definitions: HyprlandSubscription

keybindstable<string, [string|"alt"|"ctrl"|"shift"|"super", string|"alt"|"arrow_down"|"arrow_left"|"arrow_right"...(+34)]>?

List of signal names (the key of the table) that will be sent when pressing down the specified modifiers and a character. The first parameter of the value tuple is modifiers, which are seperated by commas (i.e. "shift,super" would work when shift and super are being pressed). The 2nd parameter is a single character or lowercase name for the keybind

mprisMprisSubscription?

see definitions: MprisSubscription

notificationsNotificationSubscription?

see definitions: Notification NotificationSubscription

system_traySystemTraySubscription?

see definitions: SystemTraySubscription

timetable<number, string>?

Sends a signal whenever a specified amount (the key of the table) is passed

Methods:


SystemTrayItem

Propreties:

category"application_status"|"communications"|"hardware"|"system_services"

The category for this item

icon_namestring?

The name of the icon that should visualise the tray item

icon_pixmapstring?

The id of the pixmap to use.

idstring

A name that is unique for this application

status"active"|"needs_attention"|"passive"|"unknown"

Describes the status for this item or of the associated application

titlestring?

A name that describes the application, can be more descriptive than id, but it is also not nesscessary.

Methods:


SystemTraySubscription

Propreties:

updatestring?

Sends a signal every time items in the tray get updated

Methods: