Skip to content

Commit

Permalink
Add new monitor added/removed events (#875)
Browse files Browse the repository at this point in the history
* feat: add new monitor added/removed events

* fix: move cmonitor* to phlmonitor
  • Loading branch information
levnikmyskin authored Nov 17, 2024
1 parent 7fc01c1 commit 4e89688
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions pages/Plugins/Development/Event-list.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,19 @@ These are all the events that can be listened to using Event Hooks.
| tick | fired on a tick, meaning once per (1000 / highestMonitorHz) ms | `nullptr` ||
| activeWindow | fired on active window change | `PHLWINDOW` ||
| keyboardFocus | fired on keyboard focus change. Contains the newly focused surface | `SP<CWLSurfaceResource>` ||
| moveWorkspace | fired when a workspace changes its monitor | `std::vector<std::any>{PHLWORKSPACE, CMonitor*}` ||
| focusedMon | fired on monitor focus change | CMonitor* ||
| moveWorkspace | fired when a workspace changes its monitor | `std::vector<std::any>{PHLWORKSPACE, PHLMONITOR}` ||
| focusedMon | fired on monitor focus change | PHLMONITOR ||
| moveWindow | fired when a window changes workspace | `std::vector<std::any>{PHLWINDOW, PHLWORKSPACE}` ||
| openLayer | fired when a LS is mapped | `PHLLS` ||
| closeLayer | fired when a LS is unmapped | `PHLLS` ||
| openWindow | fired when a window is mapped | `PHLWINDOW` ||
| closeWindow | fired when a window is unmapped | `PHLWINDOW` ||
| windowUpdateRules | fired when a window's rules are updated | `PHLWINDOW` ||
| urgent | fired when a window requests urgent | `PHLWINDOW` ||
| monitorAdded | fired when a monitor is plugged in | `CMonitor*` ||
| monitorRemoved | fired when a monitor is unplugged | `CMonitor*` ||
| preMonitorAdded | fired when a monitor is plugged in, before Hyprland handles it | `PHLMONITOR` ||
| monitorAdded | fired when a monitor is plugged in, after Hyprland has handled it | `PHLMONITOR` ||
| preMonitorRemoved | fired when a monitor is unplugged, before Hyprland handles it | `PHLMONITOR` ||
| monitorRemoved | fired when a monitor is unplugged, after Hypralnd has handled it | `PHLMONITOR` ||
| createWorkspace | fired when a workspace is created | `PHLWORKSPACE` ||
| destroyWorkspace | fired when a workspace is destroyed | `PHLWORKSPACE` ||
| fullscreen | fired when a window changes fullscreen state | `PHLWINDOW` ||
Expand All @@ -42,7 +44,7 @@ These are all the events that can be listened to using Event Hooks.
| touchUp | fired on a touch up event | `ITouch::SUpEvent` ||
| touchMove | fired on a touch motion event | `ITouch::SMotionEvent` ||
| activeLayout | fired on a keyboard layout change. String pointer temporary, not guaranteed after execution of the handler finishes. | `std::vector<std::any>{SP<IKeyboard>, std::string}` ||
| preRender | fired before a frame for a monitor is about to be rendered | `CMonitor*` ||
| preRender | fired before a frame for a monitor is about to be rendered | `PHLMONITOR` ||
| screencast | fired when the screencopy state of a client changes. Keep in mind there might be multiple separate clients. | `std::vector<uint64_t>{state, framesInHalfSecond, owner}` ||
| render | fired at various stages of rendering to allow your plugin to render stuff. See `src/SharedDefs.hpp` for a list with explanations | `eRenderStage` ||
| windowtitle | emitted when a window title changes. | `PHLWINDOW` ||
Expand Down

0 comments on commit 4e89688

Please sign in to comment.