to my shame i did not know how to customize the nmtui default colors (for the sake of my own health and mental stability). after reading a bit, i found out it uses the so-called newt backend with the whiptail app.

long story short… turns out it reads some of the env variables for that backend to setup the colors (if you’re interested, here’s where this happens in the code).

so you can simply set these env variables before calling nmtui. here’s a combination i came up with:

NEWT_COLORS='root=black,black;window=black,black;border=white,black;listbox=white,black;label=blue,black;checkbox=red,black;title=green,black;button=white,red;actsellistbox=white,red;actlistbox=white,gray;compactbutton=white,gray;actcheckbox=white,blue;entry=lightgray,black;textbox=blue,black' nmtui

enjoy and keep your eyes healthy!

    • Eager Eagle@lemmy.world
      link
      fedilink
      English
      arrow-up
      12
      ·
      edit-2
      2 months ago

      Another option is to change your terminal color profile. Here’s what the default looks like on Kitty’s Misterioso theme:

      imo more tolerable than the default colors, and it applies to other terminal apps too.

      To preview themes: kitty +kitten themes

  • Cowbee [he/him]@lemmy.ml
    link
    fedilink
    arrow-up
    27
    arrow-down
    12
    ·
    2 months ago

    Please don’t use “rape” as a casual negative verb, there are better, more accurate words to use that don’t needlessly reference SA.

    • hayk@lemmy.mlOP
      link
      fedilink
      arrow-up
      39
      ·
      edit-2
      2 months ago

      i really apologize if the use of that word was perceived as offensive, that was obviously not my intent. i’m usually quite straightforward in picking words (i come from a completely different culture, where sexual assaults are extremely uncommon).

      PS. for the context of others reading this comment, the original title of this post was: “nmtui that does not rape your eyes.”

  • h0bbl3s@lemmy.world
    link
    fedilink
    arrow-up
    4
    ·
    2 months ago

    I’m not sure where this software comes from, but you should try to get a merge to fix this to default. I’d give it a thumbs up after some testing for sure.