viralcode/openwhale/niri-ipc
Claude Code and agent skill by viralcode/openwhale
- community
Checking that the SKILL.md file is still in the repository.
Control the Niri Wayland compositor on Linux via its IPC (`niri msg --json` / $NIRI_SOCKET). Use when you need to query Niri state (outputs/workspaces/windows/focused window) or perform actions (focus/move/close windows, switch workspaces, spawn commands, reload config) from an OpenClaw agent running on a Niri session.
Install
npx vskill@latest install viralcode/openwhale/niri-ipcSKILL.md
Niri IPC
Use Niri IPC through the niri msg CLI (preferred) or by writing JSON requests to $NIRI_SOCKET.
This skill assumes:
- You are on Linux with Niri running.
$NIRI_SOCKETis set (usually true inside the Niri session).
Quick start (recommended)
Use the bundled helper script (wrapper around niri msg --json):
Deeper control
1) High-level helpers (window matching)
Use scripts/niri_ctl.py when you want to refer to windows by title/app_id substring instead of ids:
2) Full IPC access (raw socket)
Use scripts/niri_socket.py to talk to $NIRI_SOCKET directly (newline-delimited JSON):
Actions
Pass through Niri actions:
Output configuration
Use niri msg output ... via the wrapper:
Working directly with niri msg
If you don’t want the helper script, call Niri directly:
Tip: if niri msg parsing errors happen after upgrades, restart the compositor (new niri msg against old compositor is a common mismatch).
Event stream
For status bars/daemons: Niri can stream events.
Troubleshooting
- If commands fail with “NIRI_SOCKET is not set”: run inside your Niri session, or export the socket path.
- If you need the socket protocol details, read:
./skills/niri-ipc/references/ipc.md. - If your goal is complex automation (pick the right window by title/app_id, etc.), first query
windows, then act by window id.
Security
- Security scanPassed, 96 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/niri-ipc/SKILL.md
Popularity
- Repository stars
- 51
- Repository forks
- 4
- Repository npm downloads, 7 days
- 67
- 7-day trend score
- 34
Stars and forks are for the whole GitHub repository, not this skill alone. Downloads are for the repository's npm package. Refreshed 18 Mar 2026, 7 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/viralcode/openwhale/niri-ipc)