Skip to content

Releases

Mochi 0.4.8

Choose a tag to compare

@github-actions github-actions released this 23 Nov 20:35

Fixed

  • On Hyprland, the capture picker, the screenshot card and other notices over a fullscreen game showed only on the other monitors (#8). Hyprland focuses a window before it reports the workspace that holds it, so Mochi took the game's monitor for uncovered, and the island never moved over the game. Mochi now asks Hyprland which monitors show a fullscreen window after each workspace, window or fullscreen change. The island also starts a new surface whenever it moves to the overlay layer and draws no frame within 100 ms, on every monitor, so a fullscreen window Mochi misses can't hide it.

Mochi 0.4.7

Choose a tag to compare

@github-actions github-actions released this 22 Nov 22:05

Fixed

  • A switchable share went black for good once the shared screen stayed still for 3 seconds (#7). Hyprland reports a capture as stopped after half a second without a frame, and MOCHI-SHARE only renders when its copy changes, so a still source looked like the app had stopped, and Mochi ended the share while the app still streamed it. While a share runs, Mochi now redraws MOCHI-SHARE ten times a second, so the app's capture keeps getting frames.

Mochi 0.4.6

Choose a tag to compare

@github-actions github-actions released this 22 Nov 01:26

Fixed

  • The mouse wheel scrolled lists in steps again on Qt 6.12, instead of gliding (#5). Qt 6.12 gives a wheel's steps a pixel distance, and Mochi took any scroll with one for a touchpad. Only a touchpad's scrolls come in phases, so Mochi now tells them apart that way.

Mochi 0.4.5

Choose a tag to compare

@github-actions github-actions released this 19 Nov 17:51

Fixed

  • The first screen share after login failed with Switchable on, and only a second try worked (#2). Mochi made MOCHI-SHARE while the portal waited for the picker, and xdg-desktop-portal-hyprland only finds monitors it saw before running the picker. The monitor now exists whenever Switchable is on, with a workspace of its own, name:mochi-share, and Mochi places it away from your screens again after Hyprland reloads its config.

Mochi 0.4.4

Choose a tag to compare

@github-actions github-actions released this 19 Nov 17:34

Added

  • ActivitySpec::over_fullscreen: an activity that shows over a fullscreen window, like a game, without being modal. The protocol's activity has a new over_fullscreen field. The screenshot card, the brightness notice and the OSD module's notices (volume, output device, microphone, Caps Lock and keyboard layout) use it, so a screenshot of a game or a volume key pressed in one gets an answer on screen.

Fixed

  • Under a fullscreen window, a screenshot showed nothing, saved nothing and held the island, so the launcher, the mixer and every other panel stayed closed until mochid restarted (#1). On Sway the island's surface stops drawing under a fullscreen window and never moved to the overlay layer; it now starts a new surface there. Over a fullscreen window the island draws only what belongs there, so a screenshot no longer shows the hidden island, and a notice there lets clicks through to the window. A screenshot whose screens don't freeze within five seconds now gives up and says so.

Mochi 0.4.3

Choose a tag to compare

@github-actions github-actions released this 18 Nov 22:43

Fixed

  • The flake builds on a nixpkgs with Qt 6.12. Its Quickshell is the latest from upstream, since 0.3.1 failed to compile there, and the source package links zstd, which the newer zstd-sys build looks up through pkg-config.

Mochi 0.4.2

Choose a tag to compare

@github-actions github-actions released this 18 Nov 21:41

Added

  • Each bubble area has an arrangement: apart, merged, stacked or island. Merged draws the area's bubbles as one shape. Island joins them to the island across the areas in between, so in notch mode the sides and the notch read as one strip. A bubble with merge = false keeps its own pill.
  • Settings › Bubbles lists every bubble in its area. Drag a chip to another area or within one, hide it into the tray, or open its options: show, with text, merge, and the pill it shares. The keyboard does the same with the arrows, Shift+arrows, Delete and Enter.
  • Every setting can be changed in the settings panel. Maps have their own fields and an Add menu, and times, durations, folders, places, formats and commands have pickers or suggestions. Removing an entry that config.toml defines writes its off value, so the entry stays listed as Off.

Changed

  • Mochi moved to github.com/Davidutz19/mochi, and the documentation to https://davidutz19.github.io/mochi/. The updater, install.sh, the packages, the plugin examples and the bento registry use the new address. Mochi 0.4.1 and older look for updates at the old one, which is gone: run the install script again, or update through your package manager or flake.
  • stack = true under [bubbles] stacks only the areas config.toml leaves unset. The bluetooth, network, timer, pomodoro and meteo bubble settings are gone, and their values move to bubbles.<module>.show.

Mochi 0.4.1

Choose a tag to compare

@Davidutz19 Davidutz19 released this 20 Nov 18:32

Fixed

  • The settings panel had two pages called Colors, the theme's and the colors module's, with the same id, so a click on the colors module's page opened the theme's. The theme's page is Themes now, and mochi ipc settings open themes opens it. Its options are still under [colors] in theme.toml.

Mochi 0.4.0

Choose a tag to compare

@Davidutz19 Davidutz19 released this 20 Nov 18:30

Added

  • A profiler. mochi profile [seconds], in every build, records what mochid, Quickshell and the programs they start cost, 30 seconds by default, and writes one HTML file to send with a bug report: CPU, wake-ups and memory over time, how many frames each window of the shell drew each second, the busiest threads, each module's time, and a flame graph of mochid. In mochid --dev, a click on the dev bubble opens the same readings live, twice a second, with a button that records. Nothing runs until one of them asks. mochid keeps its function names in the release builds for the flame graph, which makes the download about 2.4 MB bigger. See Profiling.

Changed

  • An NVIDIA GPU is read only while a view shows it, like the Performance page or a performance widget on screen: nvidia-smi runs then and for 30 seconds after, since asking the driver can make games stutter. An NVIDIA GPU's notice and critical levels only count then. Views ask with the performance module's new gpu action.
  • The launcher's file index is built in the background the first time a search asks for files after the launcher opens, with "Indexing" in the search field meanwhile, and no longer watches every folder of the home folder through inotify. watch = true in [module.launcher.files] brings the watching back. Unwatched, the index goes 15 seconds after the launcher closes, which gives mochid back about 45 MB for 200 000 files: the next search for files builds it again anyway.
  • The protocol has profile, answered with output, for mochi profile, and, for the UI, profiling, frames and covered. See the protocol.

Fixed

  • High CPU use, and stutter in games, while music plays. The island's media bars and the progress wave of the media views and the now-playing widget redrew the island or the desktop for every frame of the monitor, 144 or 240 times a second on a gaming monitor. Now they move 30 times a second, together, and only where they can be seen: not in a hidden panel. The wave slides a line drawn once instead of drawing a new one each frame. A clock's seconds change in place instead of rolling, which drew frames for a third of every second.
  • Under a fullscreen window, like a game, the island and the desktop kept drawing. mochid now follows which monitors a fullscreen window covers, and there the media bars, the wave, the edge light, the recording and sharing dots, the tray's attention and the critical bubbles' pulse stop. The desktop widgets also stop moving, and stop asking for the GPU's readings, while ordinary windows hide most of their monitor, as tiled windows do, on Hyprland, niri and Sway, which say where the windows are.
  • The desktop drew frames all the time on every monitor, about 12 a second with no widget on it, and kept a live preview of every widget in memory: the widgets drawer, with its previews, was always there, hidden. It's made when arranging the widgets now, which gives the shell back about 60 MB and most of its idle CPU with the widgets module on. The desktop no longer loads the lock screen's background, the whole wallpaper on each monitor, unless the lock screen is being arranged, and an analog clock's second hand stops moving out of sight.
  • The clipboard picker decodes a copied image, and the Bento page a screenshot, at the size they show it, not at the image's own.

Mochi 0.3.0

Choose a tag to compare

@Davidutz19 Davidutz19 released this 20 Nov 18:28

Added

  • An auth module for what lets someone in without a password: sudo's password, the SSH keys in the agent, polkit's admin actions and the keyring. Everything is forgotten once the screen locks, by default, with Mochi's lock, hyprlock started by the power module, or anything logind locks. SSH keys and the keyring can be kept 1, 4 or 8 hours from when they were entered, a lock or not, or until logging out; sudo and polkit for their own timeout. It's off until "auth" is added to modules, like the lock screen, since it takes over the session's password prompts. A lock screen set up with 0.2.1 forgets them on locking only once "auth" is added.
  • Admin passwords on the island: the auth module is the session's polkit agent, so when pkexec, systemctl, run0 or an app needs an admin action, the island asks, saying which program asks and why, with a choice of user when several may allow it. polkit's own helper checks the password. Only one agent answers a session: the home-manager module's polkitAgent.enable turns off hyprpolkitagent; polkit = false in [module.auth] leaves polkit to another agent.
  • The keyring's passwords on the island: Mochi is gnome-keyring's prompter, in place of GNOME's gcr-prompter, for unlocking a keyring, a new keyring's password and the SSH key passphrases gcr's agent asks for. The password goes back encrypted with gcr's key exchange. keyring = false in [module.auth] leaves them to gcr-prompter.
  • mochi-askpass asks on the island for sudo -A and ssh, as SUDO_ASKPASS and SSH_ASKPASS, which the home-manager module's askpass.enable sets. Both options are off by default. For an SSH key's passphrase, the prompt picks how long the key stays in the agent: until locked, 1, 4 or 8 hours, or until logout. ssh's yes or no questions and notices, like touching a security key, show as such.

Security

  • Only the island answers a password prompt or a yes or no question. Another program of the user's can't answer one with mochi ipc auth answer, even one that connects to mochid as the UI.
  • What the prompts can't stop: any program of the user's can run mochi-askpass, or ask for a keyring password over the session bus, and gets what's typed in. Every askpass and gcr-prompter work this way too. Mochi's askpass prompt names the program, as the kernel says it, and warns when it runs from a folder the user can write to, didn't go through mochi-askpass, exited before the prompt showed, or its answer could reach another program; a root one has to be sudo asking with -A. Mochi checks again before the answer goes out, and keeps it if anything changed. Its command line is the program's own to set; its name isn't. Keyring prompts don't say who asks yet. See the auth module.

Changed

  • 0.2.1's forget_* settings in [module.lock] are remember_* in [module.auth] now. A config that still has them starts, and the lock module warns about them.