Give scratchpad a Quake-style console presentation (#7409)
* 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 935283c8. 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) <noreply@anthropic.com>
---------
Co-authored-by: Omabot <david@hey.com>
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5
Omabot
parent
ec779715bd
commit
0b5111702e
@@ -175,6 +175,21 @@ if grep -Fq $'SUPER + CTRL + X Toggle dictation' <<<"$missing_voxtype_output"; t
|
||||
fi
|
||||
pass "missing Voxtype skips dictation bindings"
|
||||
|
||||
# The Grave shortcuts are aliases, so the original SUPER + S pair has to keep
|
||||
# working alongside them.
|
||||
scratchpad_home="$tmpdir/scratchpad-home"
|
||||
mkdir -p "$scratchpad_home"
|
||||
scratchpad_output=$(run_omarchy_bindings "$scratchpad_home")
|
||||
grep -Fqx $'SUPER + S Toggle scratchpad' <<<"$scratchpad_output" ||
|
||||
fail "scratchpad keeps its existing toggle binding"
|
||||
grep -Fqx $'SUPER + grave Toggle scratchpad' <<<"$scratchpad_output" ||
|
||||
fail "scratchpad supports a Quake-style toggle binding"
|
||||
grep -Fqx $'SUPER + ALT + S Move window to scratchpad' <<<"$scratchpad_output" ||
|
||||
fail "scratchpad keeps its existing move binding"
|
||||
grep -Fqx $'SUPER + SHIFT + grave Move window to scratchpad' <<<"$scratchpad_output" ||
|
||||
fail "scratchpad supports a Quake-style move binding"
|
||||
pass "scratchpad retains existing bindings and adds Grave shortcuts"
|
||||
|
||||
# The panel hotkeys claim a row of keys that workspace switching already uses
|
||||
# under other modifiers, so the count matters as much as the bindings: a tenth
|
||||
# claim on SUPER + CTRL + a number is a collision with one of these.
|
||||
|
||||
Reference in New Issue
Block a user