Skip to content

Invoke shell functions in response to Hyprland socket2 events

License

Notifications You must be signed in to change notification settings

vilari-mickopf/hyprevents

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Dependencies

  • hyprland obviously
  • socat to connect with hyprland events
  • make

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published