hyprland: put the terminal scratchpad back at 80%

This commit is contained in:
rope 2026-08-19 19:58:20 +01:00
parent 90db91f178
commit 4e3d96256a
2 changed files with 14 additions and 24 deletions

View file

@ -30,29 +30,14 @@ in
};
};
# ── File managers: two TUIs, both mouse-driven ────────────────────────
# Neither is themed per wallpaper, on purpose. Both draw with the
# terminal's 16 ANSI colours, so they inherit ghostty's palette the
# instant theme-apply reloads it — no per-wallpaper files, no restart,
# and none of the full-reflow jank a GTK theme switch causes.
# ── Yazi — TUI file manager, Super+E ──────────────────────────────────
# Not themed per wallpaper, on purpose: it draws with the terminal's 16
# ANSI colours, so it inherits ghostty's palette the instant theme-apply
# reloads it — no per-wallpaper files, no restart, and none of the
# full-reflow jank a GTK theme switch causes.
#
# Neither can drag a file into a browser: a TUI has no wayland surface,
# so 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.
# It cannot drag a file into a browser: a TUI has no wayland surface, so
# it can never start a drag. Nemo stays installed for that.
programs.yazi = lib.mkIf isDesktop {
enable = true;
enableFishIntegration = true;

View file

@ -397,7 +397,7 @@ in
name = "scratchpad-inset",
match = { class = "^dev.fred.scratchpad$" },
float = true,
size = "60% 60%",
size = "80% 80%",
center = true,
})
@ -443,7 +443,12 @@ in
-- Apps
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 .. " + Q", hl.dsp.window.close())
hl.bind(mod .. " + SHIFT + E", hl.dsp.exit())