vilari-mickopf / hyprevents

Invoke shell functions in response to Hyprland socket2 events

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Invoke shell functions in response to Hyprland socket2 events

License:MIT License


Languages

Language:Shell 91.5%Language:Makefile 8.5%