hyprland: put the terminal scratchpad back at 80%
This commit is contained in:
parent
90db91f178
commit
4e3d96256a
2 changed files with 14 additions and 24 deletions
|
|
@ -30,29 +30,14 @@ in
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# ── File managers: two TUIs, both mouse-driven ────────────────────────
|
# ── Yazi — TUI file manager, Super+E ──────────────────────────────────
|
||||||
# Neither is themed per wallpaper, on purpose. Both draw with the
|
# Not themed per wallpaper, on purpose: it draws with the terminal's 16
|
||||||
# terminal's 16 ANSI colours, so they inherit ghostty's palette the
|
# ANSI colours, so it inherits ghostty's palette the instant theme-apply
|
||||||
# instant theme-apply reloads it — no per-wallpaper files, no restart,
|
# reloads it — no per-wallpaper files, no restart, and none of the
|
||||||
# and none of the full-reflow jank a GTK theme switch causes.
|
# full-reflow jank a GTK theme switch causes.
|
||||||
#
|
#
|
||||||
# Neither can drag a file into a browser: a TUI has no wayland surface,
|
# It cannot drag a file into a browser: a TUI has no wayland surface, so
|
||||||
# so it can never start a drag. Nemo stays installed for that.
|
# it can never start a drag. Nemo stays installed for that.
|
||||||
|
|
||||||
# Midnight Commander — the stronger mouse: double-click opens (do_enter),
|
|
||||||
# the menu bar and F-key bar are clickable, the panel divider drags.
|
|
||||||
programs.mc = lib.mkIf isDesktop {
|
|
||||||
enable = true;
|
|
||||||
settings.Midnight-Commander = {
|
|
||||||
# The -defbg skins paint on `default` — the terminal's own background
|
|
||||||
# — and take foregrounds from the 16-colour palette. That is what
|
|
||||||
# makes this follow the wallpaper for free. The plain skins hardcode
|
|
||||||
# a blue background and would sit there unchanged.
|
|
||||||
skin = "modarcon16-defbg";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
# Yazi — lighter mouse (click, scroll), nicer layout, image previews.
|
|
||||||
programs.yazi = lib.mkIf isDesktop {
|
programs.yazi = lib.mkIf isDesktop {
|
||||||
enable = true;
|
enable = true;
|
||||||
enableFishIntegration = true;
|
enableFishIntegration = true;
|
||||||
|
|
|
||||||
|
|
@ -397,7 +397,7 @@ in
|
||||||
name = "scratchpad-inset",
|
name = "scratchpad-inset",
|
||||||
match = { class = "^dev.fred.scratchpad$" },
|
match = { class = "^dev.fred.scratchpad$" },
|
||||||
float = true,
|
float = true,
|
||||||
size = "60% 60%",
|
size = "80% 80%",
|
||||||
center = true,
|
center = true,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
@ -443,7 +443,12 @@ in
|
||||||
|
|
||||||
-- Apps
|
-- Apps
|
||||||
hl.bind(mod .. " + T", hl.dsp.exec_cmd("ghostty"))
|
hl.bind(mod .. " + T", hl.dsp.exec_cmd("ghostty"))
|
||||||
hl.bind(mod .. " + E", hl.dsp.exec_cmd("nemo"))
|
-- Yazi in a terminal, not nemo: it re-themes with ghostty's
|
||||||
|
-- palette instead of needing a GTK restart. Nemo stays one key
|
||||||
|
-- away on Super+N — it is the only one of the two that can drag
|
||||||
|
-- a file into a browser.
|
||||||
|
hl.bind(mod .. " + E", hl.dsp.exec_cmd("ghostty -e yazi"))
|
||||||
|
hl.bind(mod .. " + N", hl.dsp.exec_cmd("nemo"))
|
||||||
hl.bind(mod .. " + R", hl.dsp.exec_cmd("${pkgs.quickshell}/bin/qs ipc call launcher toggle"))
|
hl.bind(mod .. " + R", hl.dsp.exec_cmd("${pkgs.quickshell}/bin/qs ipc call launcher toggle"))
|
||||||
hl.bind(mod .. " + Q", hl.dsp.window.close())
|
hl.bind(mod .. " + Q", hl.dsp.window.close())
|
||||||
hl.bind(mod .. " + SHIFT + E", hl.dsp.exit())
|
hl.bind(mod .. " + SHIFT + E", hl.dsp.exit())
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue