Skip to content

feat: added niri window focus detection support#53

Merged
mohak34 merged 1 commit into
mohak34:mainfrom
Shrub24:feat/niri-focus-support
Mar 26, 2026
Merged

feat: added niri window focus detection support#53
mohak34 merged 1 commit into
mohak34:mainfrom
Shrub24:feat/niri-focus-support

Conversation

@Shrub24

@Shrub24 Shrub24 commented Mar 26, 2026

Copy link
Copy Markdown
Contributor

This pull request adds support for detecting the active window on the Niri Wayland compositor. It updates both the documentation and the codebase to handle Niri specifically, allowing the application to identify the focused window when running under Niri.

Support for Niri compositor:

  • Added a new function getNiriActiveWindowId in src/focus.ts to fetch the active window ID using the niri msg --json focused-window command, and updated getLinuxWaylandActiveWindowId to check for the NIRI_SOCKET environment variable and use this function when present.
  • Updated the README.md to document support for Niri, specifying the requirements and marking it as tested

docs: fixed test status for niri

fix: fixed readme linting
@mohak34 mohak34 merged commit d302ac5 into mohak34:main Mar 26, 2026
1 check passed
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