How locupleto/the-gallery works
The Gallery is a macOS desktop experience assembled from hotkey, window-management, and Hammerspoon tools, with a command-line interface for configuration. Its user workflow begins at a keyboard shortcut and reaches tiling, menus, themed terminals, or plugins. The README documents the broad capabilities; sampled source confirms the QML host and shim behavior and theme renderer responsibilities. Some internal wiring is not shown in the excerpts, so uncertain connections are omitted.
Main entry points: shim Quickshell shim · render-theme.py Theme renderer · gallery.skhd Hotkeys · gallery Gallery CLI
Components 24
Keys and commands
- Hotkeys
skhd/gallery.skhd - Gallery CLI
bin/gallery
Tiling and focus
- Window tiling
tiler/tiler.skhd - yabai
- Focus outline
Gallery.spoon/lib/outline.lua
Themes and terminals
- Theme commands
bin/gallery - Theme renderer
tools/render-theme.py - Theme palettes
themes - Terminal apps
- Wallpapers
plugins/gallery.backgrounds
Menus and Hammerspoon
- Hammerspoon app
Gallery.spoon/init.lua - Menus and overlays
Gallery.spoon/lib/menu.lua - Desktop state
Gallery.spoon/lib/state.lua
Plugin runtime
- Plugin commands
bin/gallery - Plugin manifests
plugins - QML host
qml/host.py - Quickshell shim
qml/shim - Process and files
qml/shim/quickshell_io.py - Quickshell core
qml/shim/quickshell_core.py - Hyprland shim
qml/shim/quickshell_hyprland.py - Wayland shim
qml/shim/quickshell_wayland.py - QML value adapter
qml/shim/_jsvalue.py
Other components
- User
- Omarchy QML plugins
Connections 21
- User → Hotkeys: presses keys
README.md - Hotkeys → Window tiling: dispatches shortcuts
README.md - Window tiling → yabai: tiles windows
README.md - Hotkeys → Menus and overlays: opens Learn
README.md - User → Gallery CLI: runs commands
README.md - Gallery CLI → Theme commands: sets themes
README.md - Theme commands → Theme renderer: renders theme
README.md - Theme palettes → Theme renderer: supplies palette
tools/render-theme.py - Theme renderer → Terminal apps: configures terminals
tools/render-theme.py - Theme renderer → Focus outline: renders outline colors
tools/render-theme.py - Theme renderer → Wallpapers: applies theme
- Gallery CLI → Plugin commands: runs plugin commands
README.md - Plugin commands → Plugin manifests: loads plugins
- Omarchy QML plugins → QML host: runs through host
README.md - QML host → Quickshell shim: registers and imports
qml/host.py - Quickshell shim → Process and files: registers type
qml/shim/__init__.py - Quickshell shim → Quickshell core: registers type
qml/shim/__init__.py - Quickshell shim → Hyprland shim: registers type
qml/shim/__init__.py - Quickshell shim → Wayland shim: registers type
qml/shim/__init__.py - Quickshell core → QML value adapter: converts values
qml/shim/quickshell_core.py - Process and files → QML value adapter: converts values
qml/shim/quickshell_io.py