Skip to content

Latest commit

 

History

History
32 lines (27 loc) · 903 Bytes

README.md

File metadata and controls

32 lines (27 loc) · 903 Bytes

hyprevents

Invoke shell functions in response to Hyprland socket2 events. Forked from hyprwm. hyprevents reads Hyprland events from stdin as documented at wiki.

The event string is parsed, splitting the data into individual arguments for each event received, a function with the name event_ is invoked when invoked, the data is passed as named arguments

Install

yay -S hyprevents-git

or

sudo make install

Usage

cp event_handler custom_event_handler

In custom_event_handler add implementations for the events you want to handle and run:

hyprevents --file custom_event_handler

Reload event handler with:

hyprevents -f custom_event_handler --reload

Kill event handler with:

hyprevents -f custom_event_handler --kill