Menu
cosmic-mobile
publicLatest change d22956783f74f68f3d7eff1dd31f885aaf0fbe3e - Checkpoint BúiOS prototype and document clean-worktree workflow by AkurAI Build
#!/bin/sh set -eu sleep 12 mount -t 9p -o trans=virtio,version=9p2000.L captures /mnt # Wait for compositor readiness, not a fixed boot-time assumption. ready=0 while [ "$ready" -lt 120 ]; do export NIRI_SOCKET=$(printf '%s' /run/user/1000/niri.*.sock) if niri msg -j windows >/dev/null 2>&1; then break; fi ready=$((ready + 1)) sleep 1 done niri msg -j windows >/dev/null # Test-only Unix IPC bridge through the dedicated captures directory. No network. while test ! -f /mnt/stop-control; do if test -f /mnt/request; then read -r action argument < /mnt/request rm /mnt/request case "$action" in windows) niri msg -j windows > /mnt/windows.json ;; home) niri msg action focus-workspace home ;; overview) niri msg action open-overview ;; close) niri msg action close-window --id "$argument" ;; focus) niri msg action focus-window --id "$argument" ;; spawn) niri msg action spawn -- alacritty ;; shot) niri msg action screenshot-screen --path "/mnt/$argument.png" ;; esac touch /mnt/done fi sleep 0.2 done