From fd7e98fb94ccd523ed9407d10f6b8ad2f7905cef Mon Sep 17 00:00:00 2001 From: Kieran Klukas Date: Sat, 29 Aug 2026 15:48:37 -0400 Subject: [PATCH] minicom: add theme --- machines/atalanta/home/default.nix | 1 + modules/home/apps/minicom.nix | 35 ++++++++++++++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 modules/home/apps/minicom.nix diff --git a/machines/atalanta/home/default.nix b/machines/atalanta/home/default.nix index 479c4d1..5ea5df5 100644 --- a/machines/atalanta/home/default.nix +++ b/machines/atalanta/home/default.nix @@ -87,6 +87,7 @@ }; apps = { halloy.enable = true; + minicom.enable = true; helix = { enable = true; diff --git a/modules/home/apps/minicom.nix b/modules/home/apps/minicom.nix new file mode 100644 index 0000000..16906cb --- /dev/null +++ b/modules/home/apps/minicom.nix @@ -0,0 +1,35 @@ +{ lib, config, ... }: +{ + options.atelier.apps.minicom = { + enable = lib.mkEnableOption "Enable minicom config"; + escapeKey = lib.mkOption { + type = lib.types.enum [ + "^A" + "^B" + "Escape (Meta)" + "Meta-8th bit" + ]; + default = "^A"; + description = ''Minicom command prefix. "Escape (Meta)" makes it ESC-then-key.''; + }; + }; + config = lib.mkIf config.atelier.apps.minicom.enable { + home.file.".minirc.dfl".text = '' + pu mfcolor WHITE + pu mbcolor BLACK + pu tfcolor WHITE + pu tbcolor BLACK + pu sfcolor BLACK + pu sbcolor GREEN + pu histlines 5000 + pu statusline enabled + pu escape-key ${config.atelier.apps.minicom.escapeKey} + ''; + + # minicom paints the whole screen with an explicit SGR pair (\e[37;40m), so + # any color choice means an opaque background. With color off it emits only + # \e[0m and leans on reverse video, which keeps ghostty's transparency and + # your palette. The colors above are what it uses if you flip this to on. + home.sessionVariables.MINICOM = "-c off"; + }; +} -- 2.51.2