Skip to content

All your computers and your phone/iPhone, working as one desk. Screens, apps, files, clipboard, calls, texts, notifications, mouse and keyboard, shared between Mac, Windows, Linux , Android, Web and ios / ipados . Free and open source. No account, no cloud, and no shared network needed.

3.0 KB
Raw Blame
/* TwinDesk — Copyright (C) 2026 inukaasith. GPL-3.0, see LICENSE. */
:root { color-scheme: dark; --bar: #1c1c1e; --text: #f5f5f7; --muted: #98989d; --hover: rgba(255, 255, 255, 0.1); }
html, body { margin: 0; height: 100%; background: #000; color: var(--text); font: 13px system-ui, "Ubuntu", "Cantarell", "Noto Sans", sans-serif; overflow: hidden; user-select: none; }
#bar {
  height: 32px; display: flex; align-items: center; justify-content: space-between; padding: 0 6px 0 10px; /* the desktop's own title bar is above: this is a toolbar */
  background: var(--bar); box-sizing: border-box;
}
#title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
/* How the picture comes: the USB cable or Wi-Fi. */
#via { font-size: 10.5px; font-weight: 600; padding: 1px 6px; border-radius: 5px; margin: 0 auto 0 6px; flex: none; background: var(--hover); color: var(--muted); }
#via.usb { background: rgba(48, 209, 88, 0.22); color: #30d158; }
.tools { display: flex; gap: 2px; flex: none; }
.tools button {
  -webkit-app-region: no-drag; width: 26px; height: 24px; border: 0; border-radius: 6px; background: none; display: grid; place-items: center; padding: 0;
}
.tools button:hover { background: var(--hover); }
#panelBtn, #fullBtn, #b-pin, #b-rail {
  -webkit-app-region: no-drag; width: 26px; height: 24px; border: 0; border-radius: 6px; background: none; display: grid; place-items: center; padding: 0; flex: none;
}
#panelBtn { margin-right: 6px; }
#fullBtn { margin-left: 2px; }
#panelBtn:hover, #fullBtn:hover, #b-pin:hover, #b-rail:hover { background: var(--hover); }
#panelBtn svg, #fullBtn svg, #b-pin svg, #b-rail svg { width: 15px; height: 15px; fill: none; stroke: var(--text); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
#panelBtn.on svg, #b-pin.on svg { stroke: #0a84ff; }
/* The panel button off: only the title, like a clean window. Fullscreen: only the picture. */
body.nopanel .tools { display: none; }
body.nopanel #via { margin-right: auto; }
body.full #bar { display: none; }
body.full #stage { top: 0; }
.tools svg { width: 15px; height: 15px; fill: none; stroke: var(--text); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
#stage { position: absolute; top: 32px; left: 0; right: 0; bottom: 0; display: grid; place-items: center; }
#screen { max-width: 100%; max-height: 100%; outline: none; cursor: default; touch-action: none; }
#status { position: absolute; color: var(--muted); text-align: center; padding: 0 24px; }
body.app #b-recents, body.app #b-notifs, body.app #b-rotate { display: none; }
#b-torch, #b-flip, #b-zoomin, #b-zoomout { display: none; }
body.camera #b-torch, body.camera #b-flip, body.camera #b-zoomin, body.camera #b-zoomout { display: grid; }
body.camera #b-back, body.camera #b-home, body.camera #b-recents, body.camera #b-notifs, body.camera #b-rotate { display: none; }
button.active { background: rgba(10, 132, 255, 0.4); }
body.drop #stage { outline: 3px solid #0a84ff; outline-offset: -3px; }
body.sound #bar { display: none; }