LordOS — a free, fast and secure GNU/Linux distribution based on Debian, with its own desktop environment: display server and Wayland compositor in C, a React UI engine on QuickJS, and private native apps.
C cdebiandesktop-environmentebpffirewalllandlocklinuxlinux-distributionopen-sourceprivacyquickjsraspberry-pi-5reactsecuritywaylandwayland-compositor
Remote desktop: a 📌 button keeps the top bar shown (remembered in that browser)
Federico Pereiraf039bb7a5dc5
diff --git a/docs/REMOTE.md b/docs/REMOTE.mdindex 95e8dbc..ff1c369 100644--- a/docs/REMOTE.md+++ b/docs/REMOTE.md@@ -264,7 +264,7 @@ paces composition. Measured on VM 116 (no GPU, 1280×800, a 60 fps video window**The page's top bar says how the video is made:** codec, encoder in hardware (VA-API) or software,path (UDP, TCP, relay), frames a second shown by the browser / encoded by the computer, the browserscreen's refresh rate, and whether the session composes on the GPU or the CPU (hover: the encoding-time per frame). The session sends it as `RP_VINFO` (fixed-size numbers, when they change), the bridge+time per frame); 📌 keeps the bar shown (remembered in that browser). The session sends it as `RP_VINFO` (fixed-size numbers, when they change), the bridgeturns it into `{"t":"vinfo"}` with numbers only.**The GPU keeps composing.** Until 0.8.3 a remote viewer switched the session to CPU composition.diff --git a/server/src/remote/client.html b/server/src/remote/client.htmlindex beba79c..2c265ce 100644--- a/server/src/remote/client.html+++ b/server/src/remote/client.html@@ -15,7 +15,8 @@#bar { position: fixed; top: 0; left: 50%; transform: translate(-50%, -34px); transition: transform .18s ease; z-index: 3;display: flex; gap: 10px; align-items: center; padding: 6px 10px 6px 12px; border-radius: 0 0 12px 12px;background: rgba(28,26,44,.92); border: 1px solid rgba(255,255,255,.12); border-top: 0; white-space: nowrap; }- #bar.show, #bar:hover { transform: translate(-50%, 0); }+ #bar.show, #bar:hover, #bar.pinned { transform: translate(-50%, 0); }+ #bar button.on { background: #6d4aff; }#bar button { border: 0; border-radius: 7px; padding: 5px 10px; color: #fff; background: #3a3754; cursor: pointer; font-size: 12px; }#bar button.red { background: #b4232f; }#lat { color: #a9a6c3; min-width: 52px; }@@ -48,7 +49,7 @@<div id="wrap"><div id="stage"><video id="v" autoplay playsinline muted></video><canvas id="c" tabindex="0"></canvas></div></div><div id="rcur"></div><div id="bar"><span id="who">LordOS</span><span id="lat">…</span><span id="mode"></span>- <button id="snd" hidden>🔇</button><button id="fs">⛶</button><button id="out" class="red">✕</button></div>+ <button id="snd" hidden>🔇</button><button id="pin">📌</button><button id="fs">⛶</button><button id="out" class="red">✕</button></div><div id="again-note"><i></i><span id="again-text"></span></div><div id="msg"><div id="card" role="alertdialog" aria-live="assertive"></div></div><script>@@ -60,7 +61,7 @@ const L = {en: {full: 'Full screen', out: 'Disconnect', conn: 'Connecting…', reconn: 'Reconnecting…', retry: 'Try again', signout: 'Sign out',sndOn: 'Turn sound on', sndOff: 'Turn sound off', video: 'Video', bye: 'The session ended.',- hwEnc: 'hardware', swEnc: 'software',+ hwEnc: 'hardware', swEnc: 'software', pinOn: 'Keep this bar shown', pinOff: 'Let this bar hide',vinfoTip: (comp, enc, ms) => `Screen composed on the ${comp}; video encoded in ${enc} (${ms} ms per frame). Frames a second: shown here / sent by the computer.`,unsupTitle: 'This browser can’t show the remote desktop',unsupText: 'The remote desktop arrives as live video over WebRTC. This browser is missing something it needs:',@@ -80,7 +81,7 @@ const L = {es: {full: 'Pantalla completa', out: 'Desconectar', conn: 'Conectando…', reconn: 'Reconectando…', retry: 'Reintentar', signout: 'Cerrar sesión',sndOn: 'Activar el sonido', sndOff: 'Silenciar', video: 'Video', bye: 'La sesión terminó.',- hwEnc: 'por hardware', swEnc: 'por software',+ hwEnc: 'por hardware', swEnc: 'por software', pinOn: 'Dejar la barra fija', pinOff: 'Que la barra se esconda',vinfoTip: (comp, enc, ms) => `Pantalla compuesta en la ${comp}; video codificado ${enc} (${ms} ms por cuadro). Cuadros por segundo: mostrados aquí / enviados por la computadora.`,unsupTitle: 'Este navegador no puede mostrar el escritorio remoto',unsupText: 'El escritorio remoto llega como video en vivo por WebRTC. A este navegador le falta algo que necesita:',@@ -100,7 +101,7 @@ const L = {pt: {full: 'Tela cheia', out: 'Desconectar', conn: 'Conectando…', reconn: 'Reconectando…', retry: 'Tentar de novo', signout: 'Sair',sndOn: 'Ativar o som', sndOff: 'Silenciar', video: 'Vídeo', bye: 'A sessão terminou.',- hwEnc: 'por hardware', swEnc: 'por software',+ hwEnc: 'por hardware', swEnc: 'por software', pinOn: 'Fixar a barra', pinOff: 'Deixar a barra se esconder',vinfoTip: (comp, enc, ms) => `Tela composta na ${comp}; vídeo codificado ${enc} (${ms} ms por quadro). Quadros por segundo: mostrados aqui / enviados pelo computador.`,unsupTitle: 'Este navegador não consegue mostrar a área de trabalho remota',unsupText: 'A área de trabalho remota chega como vídeo ao vivo por WebRTC. Falta a este navegador algo de que ela precisa:',@@ -650,6 +651,17 @@ function signOut() {}$('out').onclick = signOut;$('bar').classList.add('show'); hideT = setTimeout(() => $('bar').classList.remove('show'), 3000);+// 📌 keeps the bar shown (remembered in this browser only)+function setPin(on) {+ $('bar').classList.toggle('pinned', on);+ $('pin').classList.toggle('on', on);+ $('pin').title = on ? T.pinOff : T.pinOn;+ try { localStorage.setItem('lordos.rd.pin', on ? '1' : ''); } catch (e) {}+}+let pinned = false;+try { pinned = localStorage.getItem('lordos.rd.pin') === '1'; } catch (e) {}+setPin(pinned);+$('pin').onclick = () => { pinned = !pinned; setPin(pinned); };const sup = support();if (!sup.rtc || !sup.codec || !sup.secure) unsupported(sup);else { waiting(T.conn); connect(); cv.focus(); }