hyprland: ghostty scratchpad on special:scratch, SUPER+Return
This commit is contained in:
parent
016b9bdd48
commit
11f7c14df3
2 changed files with 22 additions and 0 deletions
|
|
@ -282,6 +282,10 @@ in
|
||||||
-- doing something else; the window rule above swallows it onto
|
-- doing something else; the window rule above swallows it onto
|
||||||
-- special:music silently, so it never steals focus.
|
-- special:music silently, so it never steals focus.
|
||||||
hl.exec_cmd("ghostty --title=spotify-player -e spotify_player")
|
hl.exec_cmd("ghostty --title=spotify-player -e spotify_player")
|
||||||
|
-- Scratchpad terminal, same trick: parked on special:scratch at
|
||||||
|
-- login so SUPER+Return is always an instant toggle and the shell
|
||||||
|
-- keeps its history/cwd between peeks.
|
||||||
|
hl.exec_cmd("ghostty --title=scratchpad")
|
||||||
-- swayosd removed; volume/brightness OSD handled by quickshell
|
-- swayosd removed; volume/brightness OSD handled by quickshell
|
||||||
${lib.optionalString isMacbook ''hl.exec_cmd("hypridle")''}
|
${lib.optionalString isMacbook ''hl.exec_cmd("hypridle")''}
|
||||||
end)
|
end)
|
||||||
|
|
@ -347,6 +351,21 @@ in
|
||||||
center = true,
|
center = true,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
-- Scratchpad terminal — same title-match + float-to-inset pattern as
|
||||||
|
-- spotify-player above.
|
||||||
|
hl.window_rule({
|
||||||
|
match = { title = "^scratchpad$" },
|
||||||
|
workspace = "special:scratch silent",
|
||||||
|
})
|
||||||
|
|
||||||
|
hl.window_rule({
|
||||||
|
name = "scratchpad-inset",
|
||||||
|
match = { title = "^scratchpad$" },
|
||||||
|
float = true,
|
||||||
|
size = "80% 80%",
|
||||||
|
center = true,
|
||||||
|
})
|
||||||
|
|
||||||
-- Games stall on other workspaces: no frame callbacks = no render =
|
-- Games stall on other workspaces: no frame callbacks = no render =
|
||||||
-- game loop blocks. Keep them ticking in the background at
|
-- game loop blocks. Keep them ticking in the background at
|
||||||
-- misc:render_unfocused_fps (15).
|
-- misc:render_unfocused_fps (15).
|
||||||
|
|
@ -400,6 +419,7 @@ in
|
||||||
hl.bind(mod .. " + P", hl.dsp.window.pseudo())
|
hl.bind(mod .. " + P", hl.dsp.window.pseudo())
|
||||||
hl.bind(mod .. " + S", hl.dsp.layout("togglesplit"))
|
hl.bind(mod .. " + S", hl.dsp.layout("togglesplit"))
|
||||||
hl.bind(mod .. " + M", hl.dsp.workspace.toggle_special("music"))
|
hl.bind(mod .. " + M", hl.dsp.workspace.toggle_special("music"))
|
||||||
|
hl.bind(mod .. " + Return", hl.dsp.workspace.toggle_special("scratch"))
|
||||||
|
|
||||||
-- Focus
|
-- Focus
|
||||||
hl.bind(mod .. " + left", hl.dsp.focus({ direction = "left" }))
|
hl.bind(mod .. " + left", hl.dsp.focus({ direction = "left" }))
|
||||||
|
|
|
||||||
|
|
@ -701,6 +701,8 @@ in
|
||||||
readonly property var sections: [
|
readonly property var sections: [
|
||||||
{ title: "Apps", binds: [
|
{ title: "Apps", binds: [
|
||||||
["Super + T", "Terminal"],
|
["Super + T", "Terminal"],
|
||||||
|
["Super + Return", "Scratchpad terminal"],
|
||||||
|
["Super + M", "Spotify Player"],
|
||||||
["Super + E", "Files"],
|
["Super + E", "Files"],
|
||||||
["Super + Z", "Zen browser"],
|
["Super + Z", "Zen browser"],
|
||||||
["Super + R", "Launcher"],
|
["Super + R", "Launcher"],
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue