Skip to content

hyprland_global_shortcut_v1¤

wayland.hyprland_global_shortcut_v1 ¤

A shortcut

This object represents a single shortcut.

Methods:

events

pressed ¤

pressed(tv_sec_hi: int, tv_sec_lo: int, tv_nsec: int) -> None

Keystroke pressed

The keystroke was pressed.

tv_ values hold the timestamp of the occurrence.

Parameters:

  • tv_sec_hi ¤

    (int) –

    High 32 bits of the seconds part of the timestamp

  • tv_sec_lo ¤

    (int) –

    Low 32 bits of the seconds part of the timestamp

  • tv_nsec ¤

    (int) –

    Nanoseconds part of the timestamp

released ¤

released(tv_sec_hi: int, tv_sec_lo: int, tv_nsec: int) -> None

Keystroke released

The keystroke was released.

tv_ values hold the timestamp of the occurrence.

Parameters:

  • tv_sec_hi ¤

    (int) –

    High 32 bits of the seconds part of the timestamp

  • tv_sec_lo ¤

    (int) –

    Low 32 bits of the seconds part of the timestamp

  • tv_nsec ¤

    (int) –

    Nanoseconds part of the timestamp

destroy ¤

destroy() -> None

Delete this object, used or not

Destroys the shortcut. Can be sent at any time by the client.

on_pressed ¤

on_pressed(tv_sec_hi: int, tv_sec_lo: int, tv_nsec: int) -> None

Keystroke pressed.

Override to handle wayland.hyprland_global_shortcut_v1.events.pressed.

on_released ¤

on_released(tv_sec_hi: int, tv_sec_lo: int, tv_nsec: int) -> None

Keystroke released.

Override to handle wayland.hyprland_global_shortcut_v1.events.released.