diff --git a/home-manager/fred.nix b/home-manager/fred.nix index 7fb3c8d..ae251c8 100644 --- a/home-manager/fred.nix +++ b/home-manager/fred.nix @@ -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; diff --git a/settings/hyprland.nix b/settings/hyprland.nix index 3f97c10..f4342e9 100644 --- a/settings/hyprland.nix +++ b/settings/hyprland.nix @@ -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())