Skip to content

feat(actions): quick actions and window snapping - #9

Merged
Quost merged 3 commits into
mainfrom
feat/quick-actions-windows
Nov 22, 2026
Merged

Quost merged 3 commits into
mainfrom
feat/quick-actions-windows

Conversation

@Quost

@Quost Quost commented Nov 21, 2026

Copy link
Copy Markdown
Owner

The first of the smaller PRs that replace #2. This one takes the quick actions and window snapping from #2 (commit 82229d0) and rebuilds them on main, so they use main's notes, screenshots, monitor and updater.

What is in it

  • Quick actions in the palette: mute the mic (Ctrl+Alt+M) or the sound, switch the audio output and input (pactl, wpctl as fallback), dark mode (GNOME gsettings, KDE plasma-apply-colorscheme), keep awake (systemd-inhibit, also for a time: awake 2h), lock, empty trash (asks first), color picker (Screenshot portal), plain text clipboard, eject disks (lsblk + udisksctl), brightness (logind, ddcutil for external displays), quit or force quit apps with a never-quit list (never_quit in config.json), stop a server on a port (port 3000).
  • Window snapping with the Mac's 17 positions, from the palette and Ctrl+Alt+Shift+Arrows / Ctrl+Alt+Enter. KDE uses a KWin script over D-Bus. GNOME uses the extension's new org.menew.Shell service (extension version 2).
  • New menew-desktop crate for the portals and snapping, generic ItemAction::Command palette items, and menew run <id> (qa.mic, win.left, note.new...) for custom shortcuts on GNOME 45-47.
  • Ctrl+Alt+J opens a new note in main's notes window.
  • Keep awake fix: Menew now waits a moment after starting systemd-inhibit. If logind refuses the lock, it says "The system refused to keep the computer awake" (new string in all 5 languages) instead of claiming it is on.
  • scripts/desktop-test/actions.sh, sourced by gnome.sh and kde.sh, covers keep awake from the palette, the inhibit lock, dark mode on GNOME, and snapping read back from Mutter and KWin.
  • README (Windows and quick actions, shortcuts, privacy), CHANGELOG (Unreleased) and docs/parity.md are updated.

Dropped from #2

  • Its second system monitor (sysmon.rs, tray_metrics), since main has monitor.rs and monitor_tray_items.
  • Its update check, since main has the full updater.
  • Its Ctrl+Alt+S / Ctrl+Alt+O capture shortcuts, since main already has Ctrl+Alt+Shift+S / Ctrl+Alt+Shift+T.
  • The monitor and screenshot strings that duplicated main's keys.

Testing

All runs were in the Linux dev image (Ubuntu 24.04):

  • cargo clippy --workspace --all-targets -- -D warnings and cargo build pass. cargo test --workspace passes: 280 tests in 19 suites.
  • The new checks pass on headless GNOME Shell 46 and on KWin 5.27:
    • keep awake is offered for awake 2h
    • keep awake reports the refusal, because the container has no logind
    • qa.dark flips color-scheme
    • on GNOME, win.left gives geometry 0,640,1280
    • on KDE, win.right gives geometry 640,640,1280
  • Local full gnome.sh / kde.sh runs stop in phase 5, before these checks. That is only because the local image's ImageMagick has no font to draw the OCR sample. CI on GitHub runs the full scripts, and main's CI passes there.

Not checked on a real desktop yet: the snapping shortcuts, the audio devices, brightness, eject and the color picker.

The next PRs come after this one merges: focus extras, then the tray popover / Menew window / settings / welcome tour, then the release 1 checks and docs. #2 stays open until then.

🤖 Generated with Claude Code

Quost and others added 3 commits November 21, 2026 08:02
The part of #2 that is not on main yet, rebuilt on main's notes,
screenshots, monitor and updater instead of #2's own copies.

Quick actions in the palette: mute the mic (Ctrl+Alt+M) or the sound,
switch audio output and input (pactl), dark mode (GNOME gsettings, KDE
color scheme), keep awake (systemd-inhibit, also for a time), lock, empty
trash with confirmation, color picker (Screenshot portal), plain text
clipboard, eject disks (lsblk + udisksctl), brightness (logind + ddcutil),
quit or force quit apps with a never-quit list, stop servers on ports.

Windows: the Mac's 17 positions through a KWin script over D-Bus or the
GNOME extension's new org.menew.Shell service (extension version 2). New
menew-desktop crate for the portals and snapping, generic palette
Command items, shortcuts for the mic, snapping and a new note, and
`menew run <id>` for custom shortcuts on GNOME 45-47.

Left out from #2: its second system monitor (sysmon.rs, tray_metrics),
its update check and its capture shortcuts, since main has its own.
`note.new` opens a note in main's notes window.

Keep awake now waits a moment after starting systemd-inhibit and says
"The system refused to keep the computer awake" when logind refuses the
lock, instead of claiming it is on.

scripts/desktop-test/actions.sh checks the palette's keep awake, the
lock, dark mode on GNOME and snapping read back from Mutter and KWin.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@Quost
Quost merged commit 479ea25 into main Nov 22, 2026
2 checks passed
@Quost
Quost deleted the feat/quick-actions-windows branch November 22, 2026 20:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant