xps-plex
БесплатноЗапускает вложенные скриптыНе проверенProject a web page fullscreen onto the second laptop (ssh host `xps`) over SSH: start the v2rayN proxy if it is down, launch Firefox or Brave on a dedicated…
от j3ffyang318 установок в других каталогахОб этом скилле
xps-plex — project a page onto the other laptop
One script, three subcommands, no server. The logic runs as a bash block on the remote host over ssh; this skill is the part that tells you when to run it and what the output means.
The MCP server version of the same job lives at ai-thoughts/.opencode/mcp/xps-plex/. They are interchangeable; this one needs no client registration and no restart.
Commands
Run from anywhere; the script is beside this file.
scripts/xps-plex.sh status
scripts/xps-plex.sh start-proxy
scripts/xps-plex.sh open [--browser firefox|brave] [--windowed]
| Command | Does | Use when |
|---|---|---|
status |
proxy state, v2rayN/Firefox/Brave process counts, window titles | before reporting to the user, or to check whether something is already open |
start-proxy |
starts v2rayN if the port is down, parks its window | the user asks to prepare the proxy without opening a page |
open |
ensures the proxy, reuses or starts the browser, fullscreens the page | the actual request: "put it on the other screen" |
open defaults to Firefox and fullscreen. --windowed skips the fullscreen step. Both arguments are optional, so the ordinary call is bare open.
Output
One key: value line per fact:
proxy window: workspace 2
action: reuse
window: Live TV Guide - Plex — Mozilla Firefox
proxy: already listening
fullscreen: mode 2
| Key | Values | Meaning |
|---|---|---|
action |
reuse / start / clean / restart |
reuse means nothing was touched; the rest launched one browser |
window |
window titles, ; separated |
what is actually on screen |
fullscreen |
mode 2 / mode 1 / mode 0 |
2 is fullscreen, 1 is maximize, 0 is neither |
proxy |
already listening / was down, v2rayN started / v2rayN not found… / …never opened |
the last two are honest failures, not errors |
proxy window |
workspace <n> |
where the proxy GUI was parked |
warning |
no page window |
nothing but a dialog or blank tab appeared |
The four faults this script exists to dodge
These are why it is not a one-line ssh firefox https://…. Each one looks like the fault before it when it breaks.
- The name resolves to the wrong address.
watch.plex.tvis answered with157.240.20.18on this network — not Plex's address, and it changes — so a direct connection loads nothing. Only the proxy path works, and the proxy becomes a prerequisite, not a detail. - Firefox has no
--proxy-server. Brave takes it on the command line; Firefox needs it written into a profile. The script writes~/.mozilla/firefox/plex-proxy/user.json every call, which keeps the proxy scoped to one profile and the configuration idempotent. Neither browser can be retrofitted, so a browser on another profile is restarted. - Fullscreen is a compositor dispatch, not a flag.
--start-fullscreenis ignored, especially when the launch is forwarded to a running instance. Hyprland 0.56+ takes Lua dispatchers, and1means maximize — mode 2 is real fullscreen. The window is focused by address first, because the site sometimes opens a sign-in window that would otherwise take the fullscreen. - v2rayN is X11-only. Its Avalonia build needs
DISPLAY, which an SSH session does not have and Hyprland does not export; the:0fallback hits a different X server and fails authorization. XWayland's real number is read from its command line each time.
If the page is silent
The projection can be perfect — one window, mode 2, the right URL — and the page still arrive mute. A speaker with a cross over it is drawn at one of three layers, and only the third is the page's own doing:
pactl get-sink-mute @DEFAULT_SINK@ # Mute: no → the machine is not muted
pactl get-sink-volume @DEFAULT_SINK@ # 15% / -49.44 dB → quiet, not muted
pactl list sink-inputs | grep -E 'Sink Input|Mute:|application.name'
wpctl status | sed -n '/Audio/,/Video/p' # look for a per-app stream under Streams:
| Reading | Fault lives in | Fix |
|---|---|---|
Mute: yes on the sink |
the machine | wpctl set-mute @DEFAULT_AUDIO_SINK@ 0 |
| a sink-input exists and is muted or at 0% | the per-app stream | wpctl set-volume <id> 0.6 |
| no sink-input at all | the page | the keyboard shortcut below |
No stream is the deciding measurement. Nothing was ever handed to the sink, so nothing outside the browser can be at fault, and raising the volume cannot help. grim settles where the icon is drawn: inside the video frame it is a player control, not a desktop widget.
There is no pointer-injection tool on that host — no ydotool, dotool or xdotool, and /dev/uinput is root:root — so wtype and the site's own shortcut are the only non-root lever. Plex web binds m:
RUNDIR="/run/user/$(id -u)"
WD=$(ls "$RUNDIR" | grep -m1 '^wayland-[0-9]*$')
HIS=$(ls "$RUNDIR/hypr" | head -1)
export XDG_RUNTIME_DIR="$RUNDIR" WAYLAND_DISPLAY="$WD" H
Установить xps-plex в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл xps-plex?
Project a web page fullscreen onto the second laptop (ssh host `xps`) over SSH: start the v2rayN proxy if it is down, launch Firefox or Brave on a dedicated proxy profile, park the proxy GUI on its own workspace, fullscreen the page. Also carries the follow-up diagnosis when the page arrives mute: the three audio layers, and the wtype keyboard shortcut that unmutes a player that has no clickable pointer path. Use when the user asks to put a page, a stream, or Plex live TV on the other machine's screen, asks whether that machine's proxy is up, asks what is open on it, or says there is no sound, it is muted, or a speaker icon shows a cross.
Как установить скилл xps-plex?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл xps-plex запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic