Skip to content

XDesk v0.6.0-beta.2

Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 15 Nov 17:52
· 134 commits to xdesk since this release

XDesk 0.6.0 beta 2

中文说明见下方

The second beta of 0.6.0. It brings the phone's notifications to the external screen, the menus of Mac apps, and a single cursor style, and fixes what beta 1 testing found. It installs over 0.6.0 beta 1 or 0.5.1, which stays the latest stable release.

New features

Notifications on the external screen

  • The phone's notifications appear on the external screen as banners at the top right, and stay in a notification centre.
  • Open the centre in three ways: push the pointer out through the top-right corner, click the bell, or press Ctrl+Alt+N. The bell shows how many are unread.
  • The centre shows the time, date and the phone's battery on one line, your notifications grouped by app, Do not disturb and Clear all. Click a notification to open its app on the external screen; reply where the app allows it. The keyboard works it too: ↑↓, Enter, Delete, R (reply), Esc.
  • Low battery banners at 15% and 5% while not charging.
  • Settings › Notifications (also on the first settings page): what banners say (everything, app name only, none), per app (banner + centre, centre only, hidden), the bell, the low-battery banners.
  • It needs Android's notification access for XDesk. XDesk offers it once when an external screen is first used. If the system's switch is grey or says "Restricted setting" (apps not installed from a store, Android 13 and later), the Notifications page explains the way through and opens XDesk's app info page. Without the access everything works as before.
  • Nothing of a notification is stored or sent anywhere; it lives in memory only. Not shown on a car screen.

Menus of Mac apps

  • With a single Mac window or app on the external screen, a ≡ button sits at the top left, the twin of the bell. Click it, push the pointer out through the top-left corner, or press Ctrl+Alt+Space to open the app's menu bar.
  • Menus drop down as on the Mac: titles, shortcuts, check marks, greyed items, separators and submenus. The item under the pointer is highlighted; the keyboard works it with ←→ ↑↓ Enter Esc.
  • On the phone, a Mac item's card has a Menu row with the same menus as a list.
  • It needs Sill to be allowed under Accessibility on the Mac; the bar says so when it is not.

Closing and quitting

  • Quitting a Mac app really quits it (from its menu, ⌘Q, or Quit on the app's item under Running), so apps no longer pile up on the Mac.
  • A Mac window's card has Close (the window only); a Mac app's has Quit.
  • One rule when what is on the screen goes away (closed, quit, the X desktop restarted): the screen goes back to what was there before, or else to the Launchpad.

One cursor

  • The Launchpad's pointer is the same arrow as everywhere else, no longer a blue dot.
  • The X side gets a black arrow with a white edge, sized for the screen like XDesk's own (pkg install adwaita-icon-theme in Termux). It applies only to sessions XDesk starts; a desktop you start some other way keeps its cursor.
  • Receivers know whether the picture already has a cursor, so a receiver no longer shows two; a tablet's mouse over an Android app gets the phone's arrow.

Car (Android Auto)

  • Everything is sized for the distance of a car screen.
  • Sound follows Android Auto being connected.
  • No Launchpad on the car; the screen size setting says it does not apply there.

Experiments

  • Split screen prototype (Settings › Experiments): two Android apps side by side on the external screen, each on a display of its own, the mouse working the side it is over. A test to judge smoothness and input, not a finished feature.

xdesk command

  • xdesk add NAME 'COMMAND' --root DIR --launch 'PREFIX' for chroot environments: where their apps are listed from and how they are started.

Improvements and fixes

  • The Dock opens again over Android apps by pushing the pointer against the bottom edge (broken since the notification work after beta 1).
  • Fixed a crash when what is on the screen goes away, for example when the X desktop is restarted.
  • The Launchpad opened over an Android app turns pages with the mouse wheel again.
  • The pointer stays above the notification centre, the Mac menus and the Dock instead of going under them, over every content.
  • The corner buttons (≡ and the bell) have a dark plate, so they read over a light picture; both are as high as the Mac menu bar.

Known limits

  • The receiver paths (XDesk Receiver, the web page, the Mac app) were not retested on real devices for this beta.
  • The split screen is a prototype: input focus between the two sides and the frame rate shown are rough.
  • Mac sound is not synchronised with the picture.
  • Windows PCs, the file shelf and receiver protocol v3 come later.

Upgrading

  • Install the APK over beta 1 or 0.5.1. If the desktop was running during the update, XDesk asks once to restart the X server (programs on it close).
  • Run the installer again in Termux to get the new xdesk command:
    curl -fsSL https://raw.githubusercontent.com/n2ray/xdesk/xdesk/xdesk/install.sh | bash
  • For the X cursor: pkg install adwaita-icon-theme in Termux.
  • On receivers, install the new xdesk-receiver.apk, and on a Mac the new XDesk-macos-arm64.dmg.
  • Mac support is a client for Sill by Noah Saffer, following Sall, a third-party Android client for Sill by n2ray. Neither XDesk nor Sall is an official Sill app.

XDesk 0.6.0 测试版 2

0.6.0 的第二个测试版:把手机通知带到外屏,加上 Mac 应用的菜单和统一的光标,并修好测试版 1 测出来的问题。可以直接覆盖安装在 0.6.0 测试版 1 或 0.5.1 上;0.5.1 仍是最新的正式版。

新功能

外屏上的通知

  • 手机的通知会在外屏右上角弹出横幅,并留在通知中心里。
  • 三种方式打开通知中心:把鼠标推出右上角、点铃铛、按 Ctrl+Alt+N。铃铛上显示未读数。
  • 通知中心顶上一行是时间、日期和手机电量,下面是按应用分组的通知,还有勿扰和全部清除。点一条通知会在外屏打开对应的应用;应用允许时可以直接回复。也能用键盘:↑↓、Enter、Delete、R(回复)、Esc。
  • 未充电时电量到 15% 和 5% 会弹低电量横幅。
  • 设置 ›「通知」(设置首页也有):横幅显示什么(全部、只显示应用名、不弹)、按应用(横幅 + 通知中心、只进通知中心、不显示)、铃铛、低电量横幅。
  • 需要给 XDesk 开 Android 的「通知使用权」。第一次接外屏时 XDesk 会问一次。系统开关是灰的、或提示「受限设置」时(Android 13 起,不是从应用商店装的应用都会这样),「通知」页里写了怎么放行,并能直接打开 XDesk 的应用详情页。不开这个权限,其他功能照旧。
  • 通知内容不落盘、不外传,只在内存里。车机屏上不显示。

Mac 应用的菜单

  • 外屏上是单个 Mac 窗口或应用时,左上角有一个 ≡ 按钮,和铃铛是一对。点它、把鼠标推出左上角、或按 Ctrl+Alt+Space,打开这个应用的菜单栏。
  • 下拉菜单和 Mac 上一样:标题、快捷键、勾选、灰色的不可用项、分隔线、子菜单。鼠标经过的项会高亮;也能用键盘 ←→ ↑↓ Enter Esc 操作。
  • 手机上 Mac 项目的卡片里有「菜单」一行,以列表显示同样的菜单。
  • 需要在 Mac 的「辅助功能」里允许 Sill;没允许时菜单栏会提示。

关闭和退出

  • 退出 Mac 应用会真的退出(菜单、⌘Q、或「正在运行」里应用项的「退出」),Mac 上不会再越开越多。
  • Mac 窗口的卡片是「关闭」(只关这个窗口);Mac 应用的卡片是「退出」。
  • 外屏上的内容没了(关掉、退出、重启 X 桌面)时,统一回到之前的内容,没有就回启动台。

统一的光标

  • 启动台的鼠标和其他地方一样是箭头,不再是蓝色小圆点。
  • X 这边用带白边的黑箭头,大小和 XDesk 自己的界面一致(Termux 里 pkg install adwaita-icon-theme)。只对 XDesk 启动的会话生效;用别的方式起的桌面保留自己的光标。
  • 接收端知道画面里是否已经带光标,不会再出现两个光标;平板的鼠标在安卓应用上显示手机的箭头。

车机(Android Auto)

  • 所有界面按车机屏的观看距离放大。
  • 声音跟随 Android Auto 的连接切换。
  • 车机上没有启动台;屏幕尺寸设置会注明在车机上不适用。

实验功能

  • 分屏原型(设置 › 实验):外屏左右并排两个安卓应用,各自在独立的显示器上,鼠标在哪边就操作哪边。用来判断流畅度和输入方式,还不是正式功能。

xdesk 命令

  • xdesk add 名字 '命令' --root 目录 --launch '前缀',给 chroot 环境指定从哪里列出应用、怎么启动它们。

改进和修复

  • 安卓应用上又能推底边呼出 Dock 了(测试版 1 之后做通知功能时弄坏的)。
  • 修复崩溃:外屏上的内容没了(比如重启 X 桌面)时 XDesk 会崩溃。
  • 在安卓应用上打开的启动台又能用鼠标滚轮翻页了。
  • 在所有内容上,鼠标都会留在通知中心、Mac 菜单和 Dock 的上面,不再被盖住。
  • 角落的两个按钮(≡ 和铃铛)加了深色底板,在浅色画面上也看得清,高度和 Mac 菜单栏一致。

已知局限

  • 这次没有在真机上重测接收端(XDesk 接收器、网页端、Mac App)。
  • 分屏只是原型:两边之间的输入焦点、显示的帧率都还粗糙。
  • Mac 的声音和画面没有同步。
  • Windows 电脑、文件中转架、接收端协议 v3 以后再做。

升级

  • APK 直接覆盖安装在测试版 1 或 0.5.1 上。更新时桌面在运行的话,XDesk 会问一次是否重启 X(上面的程序会关闭)。
  • 在 Termux 里重新运行安装脚本,拿到新的 xdesk 命令:
    curl -fsSL https://raw.githubusercontent.com/n2ray/xdesk/xdesk/xdesk/install.sh | bash
  • X 光标:Termux 里 pkg install adwaita-icon-theme。
  • 接收端装新的 xdesk-receiver.apk,Mac 上装新的 XDesk-macos-arm64.dmg。
  • Mac 支持是 Noah Saffer 的 Sill 的客户端,参照了 n2ray 写的第三方 Sill 安卓客户端 Sall。XDesk 和 Sall 都不是 Sill 官方应用。