Skip to content

yami 2.6.0

Choose a tag to compare

@Trendorin Trendorin released this 07 Nov 14:43
· 135 commits to main since this release
  • Our own login screen instead of SDDM: yami-greet draws the lock screen's face (wallpaper under the veil, the big clock, the password field) inside niri, and greetd, a small daemon in Rust, checks the password and starts the session. No Qt, no QML, no theme files: it follows the shell by itself (palette, wallpaper, language, monitors and keyboard layouts, published to /var/lib/yami-greet/look on every change; yami login sync does it at once), remembers who logged in and the session, shows caps lock and the layout, asks second factors and password changes from PAM, offers sleep, reboot and power off, wipes a half-typed password after a minute and turns the screens off after two. If niri or yami-greet ever cannot start, greetd's text login takes that one boot. The installer switches an SDDM with the old yami theme over; by hand: tools/greet-install.sh.
  • The login screen your way and sturdier: settings → system → login screen (greet* keys) picks its wallpaper (as on the desktop, the palette's pixel one, or the theme colour), the veil, the clock, the machine name, a user list or a name to type, the power buttons, when the screens go off and numlock; «preview» shows it over the desktop, and the tab, yami login status and yami doctor tell how its last start went (log in /var/lib/yami-greet/log). A quick login no longer counts as a failed start (two of those sent one boot to the text login), a start that shows no picture (a GPU driver still loading) is tried again, the hand-over to the session ends on a black frame instead of hanging on the last frame of the fade, and the console no longer flashes between the two. Works with OpenRC (Alpine, Gentoo) and runit (Void) as well as systemd: the login manager switches at the next boot, never in the running session.
  • An update brings the new login screen along: from a terminal it asks right away, from the shell settings → updates gets one «install» button for it (greetd and yami-greet, SDDM is turned off and kept: ./install.sh --uninstall brings it back); yami doctor and yami update need name it too.
  • SDDM, which the login screen used before 2.6 (and the installer often installed), is turned off, not removed: it may belong to KDE. Once the new login screen has let you in, yami doctor says SDDM is unused and prints the one command that removes it with this distro's package manager.
  • The installer is lighter and tidier: install.sh is only the entry (help, flags, the order of the steps), every job has its own module in installer/. The summary comes first and Enter installs what it shows (c walks through the choices); sudo ./install.sh is refused with a hint (it would install into root's home; the installer asks for the password itself); slurp and xz are no longer installed (nothing used them), libcap only with yami-niri; --help keeps the everyday flags apart from the rare ones.
  • Hide a full battery (#21): settings → bar → look → «hide a full battery» (batHideFull) takes the bat module off the bar while the laptop is on power and not charging (full, or held at a charge limit).
  • Security: the login screen's installer never writes as root through a link the greeter account could put in its own folder, and reuses the yami-greet the update has just built instead of building it again.
  • Nix (#1): a flake with the package (the login screen included), a NixOS module (programs.yami: niri, the services, portals, fonts and tools, and greetd with yami-greet) and a Home Manager module (niri's config, settings, kitty, the default apps); CI builds it and evaluates the NixOS module on every push (docs/PACKAGING.md). Started from TheCodedKid's work.
  • Packagers: the Cargo feature package-managed hands updates to the package manager: no scheduled checks, the updates tab shows a note, yami update refuses and exits with 1; the shell and the login screen find yami-greet, its fonts and its session script inside the package's prefix (by TheCodedKid, #1).
  • Brazilian Portuguese (pt-BR, by dznass-cmd, #20): the shell, yami-files, yami-view, yami-play, the login screen and the installer. Pick it in settings → system or let the system language choose it (pt_BR.UTF-8 and pt work too); the language choice is shared by every app through yami-px, and the checks render every app in Portuguese.
  • Phones, cameras and drives mount by themselves when they are plugged in (settings → services → drives and phones, automount, automountOpen), like in GNOME and KDE: USB sticks, external disks, memory cards, CDs and DVDs, disk images, Android phones in file transfer mode (MTP), cameras and phones in PTP mode, iPhones and iPads. The shell listens to udev without polling (a netlink socket that the kernel filters down to block and usb events) and mounts what the volume itself asks to be mounted, once per plug (a phone that is still locked is tried again for half a minute): a card says what was mounted and opens it. Encrypted drives ask for their password in yami-files instead. Nothing is mounted while the screen is locked: what was plugged in meanwhile mounts after the unlock.
  • Fix: a phone with file transfer on did not show in yami-files until it was mounted by hand: phone and camera volumes have a USB device id that was taken for a disk's, so they were skipped. They show at once now, and a click mounts and opens them.
  • yami-files: encrypted drives (LUKS, BitLocker) show as «encrypted», a click asks for the password (handed to gio over a pipe, never stored); «eject» unmounts, locks and powers the drive off.
  • yami-files sidebar your way: drag places into your order, hide the ones you do not use (right click → hide, «show hidden» brings them back), fold the places, devices and network sections with a click on their title, name your bookmarks; a right click on any place or drive opens it in a new tab or in the other pane (it used to only open it in place), the middle button opens a tab. A long sidebar scrolls.
  • yami-files never waits for a slow drive while drawing: the free space of devices and of the open folder is measured with the listing in the background (a hung network share used to freeze the window), and the trash is looked for on local disks only.
  • Settings rebuilt: tabs in four groups (appearance, desktop, actions, system), every tab scrolls with the wheel, PageUp/PageDown, Home and End (a slider or number under the pointer is left alone while the page scrolls), the tab list scrolls too. Notifications have their own tab (cards, history, positions, the server); services gained «drives and phones». Each tab is one entry in a table with its draw function, search words and icon, so a new tab or row needs no other change.
  • Blur under panels appears with the reveal (#18): it used to wait for the animation to end and then pop in; now it comes in during the first third of the reveal and goes the same way on close.
  • Pixel tray (#19): settings → bar → look → «pixel tray» (trayPixel) redraws the tray icons on the bar and in the arrow's list in palette cells, like the dock and the launcher.
  • Apps in the palette colours (#17): settings → color → apps: foot, cava (reloads at once) and starship follow the palette (appThemes), and your own templates in ~/.config/yami/templates recolour any other app: {{accent}}, {{bg}}, {{color4}}… and a «yami-output:» line; written only under ~/.config, ~/.local/share and ~/.cache, never over a file you changed.
  • The shell's clickable areas end where their panel's visible part ends: a row scrolled under a list's header no longer catches the header's clicks.
  • The shell idles in about half the memory with a picture wallpaper (11–13 MB instead of 19–21 at 1080p, more saved at 4K): once niri shows the wallpaper the shell keeps only a small copy for the settings preview and the widgets, and rebuilds the full picture when it needs it again (the lock screen and the stream curtain show at once and sharpen a moment later).
  • The wallpaper no longer redraws whenever the pointer crosses the empty desktop (it took no clicks anyway), and «kanji on the wallpaper» applies at once.
По-русски
  • Свой экран входа вместо SDDM: yami-greet рисует лицо экрана блокировки (обои под вуалью, большие часы, поле пароля) внутри niri, а greetd, маленький демон на Rust, проверяет пароль и запускает сеанс. Без Qt, QML и файлов темы: он сам идёт за шеллом (палитра, обои, язык, мониторы и раскладки выкладываются в /var/lib/yami-greet/look при каждой смене; yami login sync — сразу), помнит, кто входил и в какой сеанс, показывает caps lock и раскладку, задаёт вопросы PAM (второй фактор, смена пароля), умеет сон, перезагрузку и выключение, через минуту стирает недописанный пароль, через две гасит экраны. Если niri или yami-greet однажды не запустятся, эту загрузку возьмёт текстовый вход greetd. Установщик переводит на него SDDM с прежней темой yami; вручную: tools/greet-install.sh.
  • Экран входа под себя и надёжнее: настройки → система → экран входа (ключи greet*) выбирают его обои (как на столе, пиксельные из палитры или цвет темы), вуаль, часы, имя машины, список пользователей или ввод имени, кнопки питания, когда гаснут экраны, и numlock; «посмотреть» показывает его поверх стола, а вкладка, yami login status и yami doctor говорят, как прошёл его последний запуск (журнал в /var/lib/yami-greet/log). Быстрый вход больше не считается неудачным запуском (два таких отправляли одну загрузку в текстовый вход), запуск без картинки (драйвер видеокарты ещё грузится) повторяется, передача сеансу заканчивается чёрным кадром, а не зависшим последним кадром растворения, и консоль между ними больше не мигает. Работает с OpenRC (Alpine, Gentoo) и runit (Void), не только с systemd: менеджер входа меняется со следующей загрузки, никогда в идущем сеансе.
  • Обновление приносит новый экран входа: из терминала спрашивает сразу, из шелла во вкладке настройки → обновления появляется одна кнопка «поставить» (greetd и yami-greet, SDDM выключается и остаётся: ./install.sh --uninstall вернёт его); yami doctor и yami update need тоже о нём говорят.
  • SDDM, на котором до 2.6 был экран входа (и который часто ставил сам установщик), выключается, а не удаляется: он может принадлежать KDE. Когда новый экран входа хоть раз впустил, yami doctor говорит, что SDDM не используется, и печатает одну команду, которая удалит его пакетным менеджером этого дистрибутива.
  • Установщик легче и чище: install.sh — только вход (справка, флаги, порядок шагов), у каждой работы свой модуль в installer/. Сначала сводка, Enter ставит то, что в ней (c проводит по выбору); sudo ./install.sh отклоняется с подсказкой (поставил бы всё в домашнюю папку root, а пароль установщик спрашивает сам); slurp и xz больше не ставятся (их ничто не использовало), libcap — только с yami-niri; в --help обычные флаги отделены от редких.
  • Прятать полную батарею (#21): настройки → бар → вид → «прятать полную батарею» (batHideFull) убирает модуль bat из бара, пока ноутбук от сети и не заряжается (полная или держит порог заряда).
  • Безопасность: установщик экрана входа никогда не пишет от root через ссылку, которую учётка greeter могла бы положить в свою папку, и берёт yami-greet, только что собранный обновлением, вместо новой сборки.
  • Nix (#1): flake с пакетом (вместе с экраном входа), модулем NixOS (programs.yami: niri, службы, порталы, шрифты и программы, greetd с yami-greet) и модулем Home Manager (конфиг niri, настройки, kitty, программы по умолчанию); CI собирает его и вычисляет модуль NixOS при каждом пуше (docs/PACKAGING.ru.md). Начато с работы TheCodedKid.
  • Сборщикам пакетов: признак Cargo package-managed отдаёт обновления пакетному менеджеру: проверок по расписанию нет, вкладка обновлений показывает заметку, yami update отказывается и выходит с 1; шелл и экран входа находят yami-greet, его шрифты и сценарий сеанса внутри префикса пакета (от TheCodedKid, #1).
  • Бразильский португальский (pt-BR, от dznass-cmd, #20): шелл, yami-files, yami-view, yami-play, экран входа и установщик. Выбирается в настройках → система или по языку системы (подходят и pt_BR.UTF-8, и pt); выбор языка общий для всех программ через yami-px, а проверки рисуют каждую программу по-португальски.
  • Телефоны, камеры и диски подключаются сами, как только их вставили (настройки → службы → флешки и телефоны, automount, automountOpen), как в GNOME и KDE: флешки, внешние диски, карты памяти, диски CD и DVD, образы дисков, Android-телефоны в режиме передачи файлов (MTP), камеры и телефоны в режиме PTP, iPhone и iPad. Шелл слушает udev без опроса (сокет netlink, который ядро фильтрует до событий block и usb) и подключает то, что сам том велит подключать, один раз за вставку (ещё заблокированный телефон пробуется снова полминуты): карточка говорит, что подключено, и открывает его. Зашифрованные диски вместо этого спрашивают пароль в yami-files. При заблокированном экране ничего не подключается: вставленное за это время подключится после разблокировки.
  • Исправлено: телефон с включённой передачей файлов не появлялся в yami-files, пока его не подключили руками: у томов телефонов и камер есть номер USB-устройства, его принимали за признак диска и том пропускали. Теперь они видны сразу, а щелчок подключает и открывает их.
  • yami-files: зашифрованные диски (LUKS, BitLocker) видны как «зашифрован», щелчок спрашивает пароль (он уходит в gio через канал и не хранится); «извлечь» отключает, запирает и выключает диск.
  • Боковая панель yami-files по-своему: места тянутся мышью в свой порядок, ненужные прячутся (ПКМ → скрыть, «показать скрытые» возвращает), разделы мест, устройств и сети сворачиваются щелчком по заголовку, закладки переименовываются; ПКМ по любому месту или диску открывает его в новой вкладке или в соседней панели (раньше — только на месте), средняя кнопка открывает вкладку. Длинная панель листается.
  • yami-files больше не ждёт медленный диск, пока рисует: свободное место устройств и открытой папки меряется вместе с чтением папки в фоне (зависший сетевой ресурс раньше вешал окно), а корзина ищется только на локальных дисках.
  • Настройки пересобраны: вкладки в четырёх группах (внешний вид, рабочий стол, действия, система), каждая вкладка листается колесом, PageUp/PageDown, Home и End (ползунок или число под курсором, пока страница листается, не меняются), список вкладок тоже листается. У уведомлений своя вкладка (карточки, история, места, сервер); в службах появились «флешки и телефоны». Каждая вкладка — одна строка таблицы с функцией рисования, словами для поиска и значком, так что новая вкладка или строка не требует других правок.
  • Размытие под панелями появляется вместе с проявлением (#18): раньше оно ждало конца анимации и возникало рывком; теперь входит в первой трети проявления и так же уходит при закрытии.
  • Трей клетками (#19): настройки → бар → вид → «трей клетками» (trayPixel) перерисовывает значки трея в баре и в списке за стрелкой клетками палитры, как док и лаунчер.
  • Программы в цветах палитры (#17): настройки → цвет → программы: foot, cava (перечитывает сразу) и starship идут за палитрой (appThemes), а свои шаблоны в ~/.config/yami/templates перекрашивают любую другую программу: {{accent}}, {{bg}}, {{color4}}… и строка «yami-output:»; пишутся только в ~/.config, ~/.local/share и ~/.cache и никогда поверх файла, который ты менял.
  • Области щелчков шелла кончаются там, где кончается видимая часть их панели: строка, прокрученная под шапку списка, больше не перехватывает щелчки шапки.
  • С картинкой на обоях шелл в покое занимает примерно вдвое меньше памяти (11–13 МБ вместо 19–21 при 1080p, при 4K экономия больше): когда niri уже показывает обои, шелл держит только маленькую копию для превью в настройках и виджетов, а полную картинку собирает заново, когда она снова нужна (экран блокировки и шторка для стримов появляются сразу и становятся чёткими через миг).
  • Обои больше не перерисовываются каждый раз, когда курсор проходит по пустому столу (щелчков они всё равно не принимали), а «иероглиф на обоях» включается и выключается сразу.

Install

bash <(curl -fsSL https://raw.githubusercontent.com/Trendorin/yami/v2.6.0/install.sh)

Already on yami: settings → updates → update, or yami update apply.

Built from source on your machine (Arch, Fedora, Debian/Ubuntu, openSUSE, Void, Alpine, Gentoo, NixOS). The tag is signed; check it with
git -c gpg.ssh.allowedSignersFile=keys/allowed_signers verify-tag v2.6.0.

Описание и установка по-русски: README.ru.md.