Skip to content

Optional genie minimize (hyprglass) with Dock restore - #19

Open
Doffi4 wants to merge 1 commit into
0-ss:mainfrom
Doffi4:genie-minimize
Open

Doffi4 wants to merge 1 commit into
0-ss:mainfrom
Doffi4:genie-minimize

Conversation

@Doffi4

@Doffi4 Doffi4 commented Oct 21, 2026

Copy link
Copy Markdown
Contributor

MacShell has no real minimize yet (the menu bar moves the window to special:minimized without animation, and a click on the Dock cannot bring it back, because Hyprland ignores activate() for windows on a hidden special workspace).

This adds an optional magic-lamp minimize on top of the hyprglass plugin (BSD-3):

  • contrib/genie/macshell-genie: small helper (min / restore / dock). It aims the animation at the app's own Dock icon and parks the minimized window off-screen so it does not block clicks.
  • contrib/genie/genie.lua + README: plugin load and Super+M / Super+Shift+M binds.
  • MacDock.qml: if ~/.local/bin/macshell-genie exists, the Dock writes icon rects to ~/.cache/macshell-dock-rects.json and routes clicks through the helper. Without the helper nothing changes.

Tested on Hyprland 0.56 (Lua config) with hyprglass 0.10.0 on MacShell 0.3.0: minimize flies into the app icon, restore from the Dock and with Super+Shift+M works, no QML errors. Not tested on other Hyprland versions.

The Dock writes its icon positions and routes clicks through ~/.local/bin/macshell-genie when that helper exists,
so a window minimized with the hyprglass genie can be restored from the Dock. Without the helper nothing changes.
@juanpimg

Copy link
Copy Markdown
Contributor

Data point from testing on Hyprland 0.56.2 + Quickshell 0.3.2 (Lua session): hl.dsp.window.move({ workspace = "special:minimized", follow = false }) hides the window as expected, and moving it back with hl.dsp.window.move({ workspace = "<id>", window = "address:<addr>" }) restores it to the focused workspace (pinning the address avoids racing focus changes). The shelf auto-hides once empty, so no explicit close is needed. This works with zero extra dependencies if you ever want a no-hyprglass fallback for restore.

MythosOfs added a commit to MythosOfs/MacShell that referenced this pull request Nov 22, 2026
Bring in Debian 13 support, GIF and WebP widgets, animated album art,
karaoke lyrics, System Monitor, optional Genie minimize, floating window
defaults, uptime, WireGuard, the audio hub, Reminders, Spotlight subtraction,
pinned-only Dock mode, tray collapse, and the unified icon grid.

Keep the fork's existing Spotlight screenshot search and Bluetooth status
reader. Sample Dock icons from the existing Image, fetch Apple Music motion
art from its public album page, and reuse MacLock's existing Spotify helper.
Isolate optional lyrics dependencies in a virtual environment.

Upstream: 0-ss#9, 0-ss#10, 0-ss#11, 0-ss#12, 0-ss#14, 0-ss#19, 0-ss#21, 0-ss#28, 0-ss#45, 0-ss#47,
0-ss#49, 0-ss#50, 0-ss#52, 0-ss#53, 0-ss#54.

Co-authored-by: 4sakenme <thienphutrinh4567@gmail.com>
Co-authored-by: Dexul <lcedu.dev@gmail.com>
Co-authored-by: Doffi4 <206447286+Doffi4@users.noreply.github.com>
Co-authored-by: Hrithik Ram Prasath <220790015+hrithikramprasath@users.noreply.github.com>
Co-authored-by: Marian Barba <134831821+MarianC-programing@users.noreply.github.com>
Co-authored-by: Victor Zwaga <victor.zwaga@gmail.com>
Co-authored-by: freroxx <yikni2829@gmail.com>
Co-authored-by: shuretokki <tri.r.utomo@gmail.com>
Co-authored-by: w4nnnn <irwanfebriansyah112@gmail.com>
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.

2 participants