Skip to content

feat: add switch events for laptop lid close and open - #63

Merged
ItsLemmy merged 4 commits into
noctalia-dev:mainfrom
Yocraft-2000:feat/switch-events
Aug 30, 2026
Merged

feat: add switch events for laptop lid close and open#63
ItsLemmy merged 4 commits into
noctalia-dev:mainfrom
Yocraft-2000:feat/switch-events

Conversation

@Yocraft-2000

Copy link
Copy Markdown
Contributor

Summary

Add switch events for laptop lid close and open

Motivation

Useful to suspend the laptop when the lid is closed, this is also a feature in niri.

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Refactoring
  • Build / packaging
  • Documentation

Related Issue

Discord

Testing

just format
just test
just lint

Manual Coverage

  • Tested in a nested Umbriel session
  • Tested in a native Umbriel session
  • Tested with multiple monitors
  • Tested with a scaled output
  • Tested with native Wayland applications
  • Tested with X11 applications through xwayland-satellite
  • Tested with the scrolling layout
  • Tested with the dwindle layout

Screenshots / Videos

Checklist

  • This PR is ready for review, or it is marked as Draft.
  • I read and followed the relevant guidance in CONTRIBUTING.md.
  • I initialized and updated the SceneFX submodule where required.
  • I ran just format, or this PR has no C++ changes.
  • I ran the relevant build, test, lint, or verification commands, or explained why they were not run.
  • I functionally verified compositor behavior where automated checks are insufficient.
  • I self-reviewed the changes.
  • I checked for new warnings or errors.
  • I updated docs/ and examples/config.toml, or this PR does not change user-facing configuration or behavior.
  • I used canonical names for config keys, IPC actions, paths, and identifiers.

Additional Notes

@Yocraft-2000
Yocraft-2000 marked this pull request as ready for review August 30, 2026 10:51
@ItsLemmy

Copy link
Copy Markdown
Contributor

Thanks. I made the config keys snake_case to respect the repo convention.
Also added unit tests.

@ItsLemmy
ItsLemmy merged commit 7f450c9 into noctalia-dev:main Aug 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants