Repository navigation
Give scratchpad a Quake-style console presentation - #7409
Conversation
There was a problem hiding this comment.
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.
| rounding = 5, | ||
| dim_special = 0.6, | ||
|
|
||
| shadow = { | ||
| enabled = false, | ||
| enabled = true, |
| | `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]>
| -- 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
left a comment
There was a problem hiding this comment.
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:25tags every windowopacity = "0.985 0.96", so blur contributes roughly 1.5% of each pixel behind a window.- There are no
layer_ruleblur rules in the repo, so the bar and menus don't pick it up either. blur.brightness = 0.5darkens all blurred content globally, not just the scratchpad.blur.xray = truemakes 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 againstWORKSPACE_RULE_FIELDS— so they were doing nothing. Dropped; the gaps remain. manual/07-hotkeys.mdended 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.
* 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]>
* 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]>
* 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]>
* 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]>
Summary
Super + GraveandSuper + Shift + Graveshortcuts while retaining the existingSuper + SandSuper + Alt + SbindingsVerification
bash test/shell.d/hyprland-default-config-test.shtest/shell.d/hyprland-binding-conflicts-test.shluac -p default/hypr/looknfeel.lua default/hypr/bindings/tiling.luadefault/hypr/looknfeel.luainto the live compositor;hyprctl configerrorsremained empty./test/allreached two unrelated failures: the Fireworks collector's local-midnight assertion and missing localomarchy-isocheckout coverage. The changed Hyprland tests pass.