mirror of
https://github.com/prdlk/dotfiles.git
synced 2026-11-02 19:32:43 +00:00
feat(config): add scratch terminal binding and window rule, remove pj function
This commit is contained in:
1 parent
4f9c36cb79
commit
c47d31012b
4 files changed
+19
-92
No files matched your search
@@ -65,6 +65,13 @@ o.bind("SUPER + CTRL + K", "Previous workspace", hl.dsp.focus({ workspace = "e-1
|
||||
hl.unbind("SUPER + CTRL + S") -- was: share menu
|
||||
o.bind("SUPER + CTRL + S", "Toggle scratchpad", hl.dsp.workspace.toggle_special("scratchpad"))
|
||||
|
||||
-- Mod+A is the scratch terminal: the same scratchpad toggle, except an empty
|
||||
-- scratchpad starts kitty with ~/.config/kitty/herdr.conf (class kitty-herdr,
|
||||
-- pinned to the scratchpad by the window rule in hypr/hyprland.lua) instead of
|
||||
-- sliding an empty workspace into view. SUPER + A is free in Omarchy.
|
||||
-- Needs ~/.local/bin/omarchy-toggle-scratch.
|
||||
o.bind("SUPER + A", "Toggle scratch terminal", "omarchy-toggle-scratch")
|
||||
|
||||
-- Workspaces 1 to 5 on the home row of the left half: ALT to focus,
|
||||
-- ALT + SHIFT to send the window there. No Omarchy default uses ALT with a
|
||||
-- letter, so nothing is unbound.
|
||||
|
||||
@@ -42,3 +42,8 @@ o.window([[^brave-youtube\.com__-Default$]], { workspace = "1" })
|
||||
o.window([[^brave-www\.tldraw\.com__-Default$]], { workspace = "3" })
|
||||
o.window([[^com\.fastmail\.Fastmail$]], { workspace = "4" })
|
||||
o.window([[^Beeper$]], { workspace = "4" })
|
||||
|
||||
-- The SUPER + A scratch terminal (kitty --config ~/.config/kitty/herdr.conf).
|
||||
-- Pinning it here means it lands on the scratchpad no matter who starts it;
|
||||
-- "silent" leaves the reveal to omarchy-toggle-scratch.
|
||||
o.window([[^kitty-herdr$]], { workspace = "special:scratchpad silent" })
|
||||
Reference in new issue
Block a user