Skip to content

Give scratchpad a Quake-style console presentation - #7409

Merged
dhh merged 2 commits into
omacom:quattrofrom
tobi:quake-style-scratchpad
Aug 18, 2026
Merged

dhh merged 2 commits into
omacom:quattrofrom
tobi:quake-style-scratchpad

Conversation

@tobi

@tobi tobi commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

Summary

  • present the special scratchpad as an inset, dimmed overlay with rounding, shadow, blur, and directional slide animations
  • add Super + Grave and Super + Shift + Grave shortcuts while retaining the existing Super + S and Super + Alt + S bindings
  • document the scratchpad as a quick home for terminal agents and cover all four bindings in the default-config test

Verification

  • bash test/shell.d/hyprland-default-config-test.sh
  • test/shell.d/hyprland-binding-conflicts-test.sh
  • luac -p default/hypr/looknfeel.lua default/hypr/bindings/tiling.lua
  • loaded default/hypr/looknfeel.lua into the live compositor; hyprctl configerrors remained empty
  • exercised a terminal probe in the scratchpad and visually inspected the inset layout, dimming, and hide/show transition

./test/all reached two unrelated failures: the Fireworks collector's local-midnight assertion and missing local omarchy-iso checkout coverage. The changed Hyprland tests pass.

Copilot AI balanced review requested due to automatic review settings August 18, 2026 18:13

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a Quake-style presentation and shortcuts for the Hyprland scratchpad.

Changes:

  • Adds inset styling and directional animations.
  • Adds Grave-key shortcuts while retaining existing bindings.
  • Updates documentation and binding tests.

Tip

If you aren't ready for review, convert to a draft PR.
Click "Convert to draft" or run gh pr ready --undo.
Click "Ready for review" or run gh pr ready to reengage.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
default/hypr/looknfeel.lua Adds scratchpad presentation and animations.
default/hypr/bindings/tiling.lua Adds Grave-key scratchpad bindings.
manual/04-navigation.md Describes Quake-style scratchpad usage.
manual/07-hotkeys.md Documents all scratchpad shortcuts.
test/shell.d/hyprland-default-config-test.sh Tests all four bindings.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread default/hypr/looknfeel.lua Outdated
Comment on lines +23 to +27
rounding = 5,
dim_special = 0.6,

shadow = {
enabled = false,
enabled = true,
Comment thread manual/07-hotkeys.md
Comment on lines +29 to +30
| `Super + S` / `Super + Grave` | Toggle scratchpad |
| `Super + Alt + S` / `Super + Shift + Grave` | Move window to scratchpad |
The presentation was bought with global decoration defaults: rounding went
0 -> 5 and both shadow and blur were switched back on for every window on
the system, undoing 935283c. Blur in particular is close to invisible
here, since every window is already tagged 0.985/0.96 opacity and no layer
rule asks for it, so it was GPU load on every frame for almost nothing.

Put the globals back and scope the rounding to the scratchpad with a window
rule, the same way popped windows already get theirs. The inset, dim_special
and the slide carry the effect on their own. dim_special only applies while
a special workspace is open, so it stays.

Also drop the four workspace-rule booleans that only restated Hyprland's
defaults, fold the stale scratchpad rows in the hotkey table into the new
ones, and give the binding assertions their own fixture instead of borrowing
the bar-panel one.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Copilot AI review requested due to automatic review settings August 18, 2026 19:10

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Comment on lines +107 to +111
-- The direction names the edge the offset is measured from, not where the
-- workspace goes: "slide top" drops it down into view, and "slide bottom"
-- retracts it back up the way a Quake console does.
hl.animation({ leaf = "specialWorkspaceIn", enabled = true, speed = 3, bezier = "easeOutQuint", style = "slide top" })
hl.animation({ leaf = "specialWorkspaceOut", enabled = true, speed = 2, bezier = "easeInOutCubic", style = "slide bottom" })

@omarchybot omarchybot left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice idea, and the animation work here is correct — I checked it against the Hyprland 0.56.2 source rather than trusting the names, because they read backwards. specialWorkspaceIn / specialWorkspaceOut are real nodes, slide top / slide bottom pass styleValidInConfigVar through the starts_with("slide") branch, and WorkspaceAnimationController genuinely honours the direction words: slide top starts the workspace above the monitor and drops it down, and slide bottom on the Out animation retracts it back upward. That's exactly the Quake motion. I've added a comment above those two lines so nobody "fixes" the direction later.

The one thing I've changed is how the presentation was paid for.

The decoration changes were global, not scratchpad-scoped

decoration.rounding went 0 -> 5, and shadow.enabled and blur.enabled both went back to true. Those are system-wide defaults, so every window got restyled to dress up one workspace. That also undoes 935283c ("Simplify rendering"), which turned exactly these off on the grounds that they add little and cost GPU.

The blur is the part worth calling out, because it's close to invisible here:

  • default/hypr/windows.lua:25 tags every window opacity = "0.985 0.96", so blur contributes roughly 1.5% of each pixel behind a window.
  • There are no layer_rule blur rules in the repo, so the bar and menus don't pick it up either.
  • blur.brightness = 0.5 darkens all blurred content globally, not just the scratchpad.
  • blur.xray = true makes floating windows ignore tiled windows in their blur, which works against the "blur the workspace underneath" effect this is reaching for.

So it's per-frame GPU cost on every window for almost no visible change.

What I pushed instead: globals back to flat, and the rounding scoped with a window rule — the same shape default/hypr/apps/system.lua:54 already uses to give popped windows their corners:

hl.window_rule({ match = { workspace = "special:scratchpad" }, rounding = 8 })

(rounding is a valid window-rule effect, and CWorkspace::matchesStaticSelector takes the starts_with("special") branch and compares the workspace name, so special:scratchpad matches.)

dim_special = 0.6 stays as you had it. It only applies while a special workspace is open, so it's the one global key here that really is scratchpad-scoped — and together with the inset and the slide it carries the effect without any of the blur.

Three smaller things, also pushed

  • The four workspace-rule booleans (no_border, no_rounding, no_shadow, decorate) only restated Hyprland's defaults — I checked them against WORKSPACE_RULE_FIELDS — so they were doing nothing. Dropped; the gaps remain.
  • manual/07-hotkeys.md ended up with two scratchpad entries: the new rows plus the older pair further down that listed only the legacy bindings. Folded into one.
  • The binding assertions were sharing the bar-panel fixture. Given them their own.

All nine test/shell.d/hyprland-*.sh suites pass on the result, and the net diff against quattro leaves the decoration block byte-identical to base apart from dim_special.

One arbitrary call on my side: I used rounding 8 rather than your 5, just to match the popped-window rule. Change it if you'd rather.

@dhh
dhh merged commit 0b51117 into omacom:quattro Aug 18, 2026
torturado pushed a commit to torturado/omarchy that referenced this pull request Aug 19, 2026
* Give scratchpad a Quake-style presentation

* Keep the Quake scratchpad from restyling every window

The presentation was bought with global decoration defaults: rounding went
0 -> 5 and both shadow and blur were switched back on for every window on
the system, undoing 935283c. Blur in particular is close to invisible
here, since every window is already tagged 0.985/0.96 opacity and no layer
rule asks for it, so it was GPU load on every frame for almost nothing.

Put the globals back and scope the rounding to the scratchpad with a window
rule, the same way popped windows already get theirs. The inset, dim_special
and the slide carry the effect on their own. dim_special only applies while
a special workspace is open, so it stays.

Also drop the four workspace-rule booleans that only restated Hyprland's
defaults, fold the stale scratchpad rows in the hotkey table into the new
ones, and give the binding assertions their own fixture instead of borrowing
the bar-panel one.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>

---------

Co-authored-by: Omabot <[email protected]>
Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
sgruendel pushed a commit to sgruendel/omarchy that referenced this pull request Aug 22, 2026
* Give scratchpad a Quake-style presentation

* Keep the Quake scratchpad from restyling every window

The presentation was bought with global decoration defaults: rounding went
0 -> 5 and both shadow and blur were switched back on for every window on
the system, undoing 935283c. Blur in particular is close to invisible
here, since every window is already tagged 0.985/0.96 opacity and no layer
rule asks for it, so it was GPU load on every frame for almost nothing.

Put the globals back and scope the rounding to the scratchpad with a window
rule, the same way popped windows already get theirs. The inset, dim_special
and the slide carry the effect on their own. dim_special only applies while
a special workspace is open, so it stays.

Also drop the four workspace-rule booleans that only restated Hyprland's
defaults, fold the stale scratchpad rows in the hotkey table into the new
ones, and give the binding assertions their own fixture instead of borrowing
the bar-panel one.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>

---------

Co-authored-by: Omabot <[email protected]>
Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
jnadeau207-collab pushed a commit to jnadeau207-collab/omarchy-7-ultimate that referenced this pull request Aug 26, 2026
* Give scratchpad a Quake-style presentation

* Keep the Quake scratchpad from restyling every window

The presentation was bought with global decoration defaults: rounding went
0 -> 5 and both shadow and blur were switched back on for every window on
the system, undoing 935283c. Blur in particular is close to invisible
here, since every window is already tagged 0.985/0.96 opacity and no layer
rule asks for it, so it was GPU load on every frame for almost nothing.

Put the globals back and scope the rounding to the scratchpad with a window
rule, the same way popped windows already get theirs. The inset, dim_special
and the slide carry the effect on their own. dim_special only applies while
a special workspace is open, so it stays.

Also drop the four workspace-rule booleans that only restated Hyprland's
defaults, fold the stale scratchpad rows in the hotkey table into the new
ones, and give the binding assertions their own fixture instead of borrowing
the bar-panel one.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>

---------

Co-authored-by: Omabot <[email protected]>
Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
nick1udwig pushed a commit to nick1udwig/omarchy that referenced this pull request Sep 9, 2026
* Give scratchpad a Quake-style presentation

* Keep the Quake scratchpad from restyling every window

The presentation was bought with global decoration defaults: rounding went
0 -> 5 and both shadow and blur were switched back on for every window on
the system, undoing 935283c. Blur in particular is close to invisible
here, since every window is already tagged 0.985/0.96 opacity and no layer
rule asks for it, so it was GPU load on every frame for almost nothing.

Put the globals back and scope the rounding to the scratchpad with a window
rule, the same way popped windows already get theirs. The inset, dim_special
and the slide carry the effect on their own. dim_special only applies while
a special workspace is open, so it stays.

Also drop the four workspace-rule booleans that only restated Hyprland's
defaults, fold the stale scratchpad rows in the hotkey table into the new
ones, and give the binding assertions their own fixture instead of borrowing
the bar-panel one.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>

---------

Co-authored-by: Omabot <[email protected]>
Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
@emirb emirb added this to the 4.5 milestone Oct 17, 2026
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.

5 participants