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
yay -S hyprevents-git
or
sudo make install
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