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
hyprlandobviouslysocatto connect with hyprland eventsmake
yay -S hyprevents-gitor
sudo make installcp event_handler custom_event_handlerIn custom_event_handler add implementations for the events you want to handle and run:
hyprevents --file custom_event_handlerReload event handler with:
hyprevents -f custom_event_handler --reloadKill event handler with:
hyprevents -f custom_event_handler --kill