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.
JavaScript androidapple-ecosystemconnectelectronfile-sharingintel-unison-alternativeiosios-windowskde-connect-alternativekvmlinuxmacbookmacosmouse-sharingphone-link-alternativeproductivityscreen-sharingsidecar-alternativesynergy-alternativewindows
/* TwinDesk — Copyright (C) 2026 inukaasith. GPL-3.0, see LICENSE. */
/* TwinDesk Web's pages in the window (shared/ui-web.js). */
.web-pair { display: flex; gap: 20px; align-items: center; padding: 16px; flex-wrap: wrap; }
.web-qr { background: #fff; padding: 10px; border-radius: 12px; line-height: 0; flex: none; }
.web-qr canvas { width: 176px; height: 176px; image-rendering: pixelated; }
.web-pair-text { display: flex; flex-direction: column; gap: 6px; min-width: 200px; flex: 1; }
.web-code { font-size: 34px; font-weight: 600; letter-spacing: 3px; color: var(--text); }
.web-pair-btns { margin-top: 6px; }
.web-pad { padding: 12px 16px; }
.web-steps { margin: 0; padding-left: 20px; color: var(--text); line-height: 1.6; }
.web-name { width: 220px; padding: 5px 8px; border-radius: 6px; border: 1px solid var(--line); background: transparent; color: var(--text); font: inherit; }
.web-cam-box { display: flex; justify-content: center; padding: 12px; min-height: 60px; }
.web-cam { max-width: 100%; max-height: 50vh; border-radius: 10px; background: #000; }
/* Drop: one conversation in a card, the height of the window (as Messages). */
.web-drop { padding: 0; overflow: hidden; }
.web-drop .hub-conv { height: calc(100vh - 210px); min-height: 340px; }
.web-conv-head { flex-direction: row; align-items: center; justify-content: space-between; }
.hub-bubble { position: relative; }
.web-bubble-file { cursor: pointer; }
.web-file { display: flex; gap: 10px; align-items: center; white-space: normal; }
.web-file svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.4; flex: none; }
.web-file-name { font-weight: 500; }
.web-del { position: absolute; top: -6px; width: 18px; height: 18px; border-radius: 50%; border: 0; padding: 0; line-height: 18px; font-size: 13px;
background: var(--text); color: var(--card); cursor: pointer; opacity: 0; transition: opacity .15s; }
.hub-bubble.in .web-del { right: -6px; }
.hub-bubble.out .web-del { left: -6px; }
.hub-bubble:hover .web-del { opacity: .85; }
/* The sidebar tile: as a phone's, with a plain tint for a wallpaper. */
.web-wall { background: linear-gradient(160deg, #5e5ce6, #0a84ff); color: #fff; }
/* Web devices under the phones and computers, spaced as they are. */
#webdevs { display: flex; flex-direction: column; gap: 6px; margin: -6px 0 12px; }
#webdevs:empty { display: none; }
#phones:not(:empty) + #pcs:not(:empty), #phones:not(:empty) ~ #webdevs:not(:empty), #pcs:not(:empty) + #webdevs:not(:empty) { margin-top: -6px; }
/* A web device's Overview: what it may do here, each a way to its page. */
.web-feats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; padding: 12px; }
.web-feat { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line);
background: transparent; color: var(--text); font: inherit; text-align: left; cursor: default; }
.web-feat:hover { background: var(--nav-hover); }
.web-feat-state { font-size: 12px; color: var(--muted); }
.web-feat-state.on { color: var(--good); }
/* Drop: Save on a file bubble */
.web-save { margin-left: 8px; border: 0; border-radius: 6px; padding: 3px 9px; font: inherit; font-size: 12px; cursor: pointer;
background: rgba(127, 127, 127, 0.22); color: inherit; align-self: center; flex: none; }
.web-save:hover { background: rgba(127, 127, 127, 0.34); }
/* Files: transfers both ways */
.web-xfers { display: flex; flex-direction: column; }
.web-xfers-none { padding: 10px 14px; }
.web-xfer { display: flex; align-items: center; gap: 10px; padding: 9px 14px; border-top: 1px solid var(--sep, rgba(127, 127, 127, 0.18)); }
.web-xfer:first-child { border-top: 0; }
.web-xfer > svg { width: 22px; height: 22px; flex: none; opacity: 0.75; fill: none; stroke: currentColor; stroke-width: 1.4; }
.web-xfer-text { flex: 1; min-width: 0; }
.web-xfer-text .web-file-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.web-xfer-bar { height: 3px; border-radius: 2px; margin-top: 5px; background: rgba(127, 127, 127, 0.2); overflow: hidden; }
.web-xfer-bar i { display: block; height: 100%; background: var(--accent, #0a84ff); transition: width 0.3s; }
.web-xfer.in .web-xfer-bar { display: none; }
.web-xfer-acts { display: flex; gap: 6px; flex: none; }
.card.hub-drop { outline: 2px dashed var(--accent, #0a84ff); outline-offset: -4px; }
/* The web device's Overview */
.dv-hero .device.phone.big.tablet { width: 112px; height: 140px; border-radius: 14px; }
.dv-hero .device.phone.big.tablet::after { left: 44px; right: 44px; }
.web-ov-clip { padding: 12px 16px; font-size: 13px; line-height: 1.45; white-space: pre-wrap; word-break: break-word; max-height: 7.5em; overflow: hidden; }
.web-ov-none { padding: 12px 16px; }
.dropzone.dv-drop.off { opacity: 0.55; }
.web-files-zone { cursor: pointer; }
/* Connection with a web device's pages: its own hero, in place of the computer-to-computer one */
.web-mode .card.hero:not(.web-hero) { display: none; }
.web-hero .hero-actions { display: flex; gap: 8px; justify-content: center; margin-top: 12px; }
.web-hero.just .hero-link.up { animation: web-fill 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both; transform-origin: left; }
.web-hero.just .device { animation: web-glow 1.2s 0.5s ease-out both; }
@keyframes web-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes web-glow { 0% { box-shadow: 0 0 0 0 rgba(48, 209, 88, 0.6); } 100% { box-shadow: 0 0 0 14px rgba(48, 209, 88, 0); } }
@media (prefers-reduced-motion: reduce) { .web-hero.just .hero-link.up, .web-hero.just .device { animation: none; } }
/* Receive screen with a Mac: mirror it with AirPlay (UI.airplayMacTip, shared/ui-web.js) */
.apt { display: flex; align-items: center; gap: 16px; padding: 14px 16px; }
.apt-pic { flex: 0 0 240px; max-width: 42%; }
.apt-pic svg { display: block; width: 100%; height: auto; }
.apt-dev { fill: none; stroke: color-mix(in srgb, var(--text) 70%, var(--card)); stroke-width: 2.2; stroke-linejoin: round; }
.apt-scr { fill: color-mix(in srgb, var(--accent) 22%, var(--card)); }
.apt-scr.on { fill: color-mix(in srgb, var(--accent) 34%, var(--card)); }
.apt-bar { fill: color-mix(in srgb, var(--text) 16%, transparent); }
.apt-dock { fill: color-mix(in srgb, var(--text) 22%, transparent); }
.apt-ap path { fill: none; stroke: var(--accent); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.apt-ap path.fill { fill: var(--accent); stroke: none; }
.apt-wave { fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; opacity: 0; }
.apt-body { flex: 1; min-width: 0; }
.apt-head { font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.apt-steps { margin: 4px 0 6px; font-size: 12.5px; }
.apt-state { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.apt-state.on { color: var(--text); }
.apt-actions { display: flex; flex-wrap: wrap; gap: 6px; }
@media (max-width: 620px) { .apt { flex-direction: column; align-items: stretch; } .apt-pic { max-width: 100%; flex-basis: auto; } }
/* Visit twindesk.local: an address bar typing it out (UI.typingBar) */
.wt { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 16px 16px; text-align: center; }
.wt .hint { max-width: 460px; }
.wt .hint, .mg-note { color: var(--muted); font-size: 12px; line-height: 1.4; }
.wt-bar { display: flex; align-items: center; gap: 8px; width: min(340px, 100%); height: 40px; padding: 0 14px; border-radius: 12px;
background: var(--control); border: 1px solid var(--control-line); box-shadow: var(--shadow); font-size: 17px; font-weight: 500; color: var(--text); }
.wt-lock { width: 14px; height: 14px; flex: none; border-radius: 50%; background: radial-gradient(circle, transparent 3.5px, var(--muted) 4px, var(--muted) 5px, transparent 5.5px);
opacity: 0.8; }
.wt-typed { white-space: nowrap; letter-spacing: 0.01em; }
.wt-caret { width: 2px; height: 20px; margin-left: -6px; background: var(--accent); border-radius: 1px; animation: wt-blink 1s steps(1) infinite; }
@keyframes wt-blink { 50% { opacity: 0; } }
/* Screen Mirroring on an iPhone or iPad, on a loop (UI.mirrorGuide) */
.mg { display: flex; gap: 20px; align-items: center; padding: 14px 16px 16px; flex-wrap: wrap; }
.mg-phone { position: relative; width: 132px; height: 228px; flex: none; border-radius: 22px; background: #141416;
box-shadow: inset 0 0 0 3px #4a4a4e; overflow: hidden; }
.mg-apps { display: grid; grid-template-columns: repeat(4, 18px); gap: 9px; justify-content: center; padding-top: 30px; transition: filter .35s; }
.mg-apps i { width: 18px; height: 18px; border-radius: 5px; background: hsl(var(--h) 70% 55% / 0.65); }
.mg-phone[data-step="1"] .mg-apps, .mg-phone[data-step="2"] .mg-apps { filter: blur(4px) brightness(0.6); }
.mg-cc { position: absolute; inset: 0; padding: 26px 12px; display: flex; flex-direction: column; gap: 7px; background: rgba(40, 40, 44, 0.55);
opacity: 0; transform: translateY(-24px); transition: opacity .35s, transform .35s; }
.mg-phone[data-step="1"] .mg-cc, .mg-phone[data-step="2"] .mg-cc { opacity: 1; transform: none; }
.mg-row { display: flex; gap: 6px; }
.mg-tile { display: block; flex: 1; height: 22px; border-radius: 7px; background: rgba(255, 255, 255, 0.18); }
.mg-tile.blue { background: #0a84ff; } .mg-tile.green { background: #30d158; } .mg-tile.orange { background: #ff9f0a; }
.mg-tile.wide { height: 34px; }
.mg-mirror { display: flex; align-items: center; gap: 5px; height: 26px; padding: 0 7px; color: #fff; font-size: 8.5px; font-weight: 600; transition: background .2s; }
.mg-mirror-ic { width: 12px; height: 9px; flex: none; border: 1.5px solid #fff; border-radius: 2px; }
.mg-phone[data-step="1"] .mg-mirror { background: rgba(255, 255, 255, 0.42); animation: mg-pulse 1.2s ease-in-out infinite; }
@keyframes mg-pulse { 50% { box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.7); } }
.mg-list { position: absolute; left: 12px; right: 12px; top: 74px; padding: 8px; border-radius: 12px; background: rgba(60, 60, 64, 0.96); color: #fff;
font-size: 9px; opacity: 0; transform: scale(0.9); transition: opacity .3s, transform .3s; }
.mg-list b { display: block; text-align: center; margin-bottom: 6px; }
.mg-item { display: flex; align-items: center; gap: 6px; padding: 6px; border-radius: 7px; background: rgba(10, 132, 255, 0.85);
white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mg-tv { width: 11px; height: 8px; flex: none; border: 1.5px solid #fff; border-radius: 2px; }
.mg-phone[data-step="2"] .mg-list { opacity: 1; transform: none; }
.mg-finger { position: absolute; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: rgba(255, 255, 255, 0.85);
box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.25), 0 2px 6px rgba(0, 0, 0, 0.5); left: 108px; top: 14px; transition: left .5s, top .5s; }
.mg-phone[data-step="0"] .mg-finger { animation: mg-swipe 1.9s ease-in-out infinite; }
@keyframes mg-swipe { 0%, 15% { top: 14px; opacity: 0.5; } 70% { top: 100px; opacity: 1; } 100% { top: 100px; opacity: 0; } }
.mg-phone[data-step="1"] .mg-finger { left: 34px; top: 74px; }
.mg-phone[data-step="2"] .mg-finger { left: 80px; top: 112px; }
.mg-text { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 8px; }
.mg-head { font-weight: 600; color: var(--text); }
.mg-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.mg-steps li { display: flex; align-items: center; gap: 9px; color: var(--muted); transition: color .25s; }
.mg-steps li b { width: 20px; height: 20px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 11px; color: #fff;
background: var(--faint); transition: background .25s; }
.mg-steps li.on { color: var(--text); font-weight: 500; }
.mg-steps li.on b { background: var(--accent); }
@media (prefers-reduced-motion: reduce) { .mg-finger, .mg-mirror, .wt-caret { animation: none !important; } }