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
      29
      ·
      edit-2
      4 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
    70
    arrow-down
    28
    ·
    4 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
      82
      arrow-down
      3
      ·
      edit-2
      4 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.”

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

        Because it normalizes a word and desensitizes it, making it less likely for victims to stand up. It can also bring up horrifying memories in SA survivors.

        There exist negative words that do not share the same mass systemic connotations. It’s generally better to use words that don’t bring with them the same issues.

          • Cowbee [he/him]@lemmy.ml
            link
            fedilink
            arrow-up
            10
            arrow-down
            3
            ·
            4 months ago

            What do you mean “free?” I don’t control him, but the fact is that using words that bring up topics of SA despite that being an extremely sensitive subject is a bad thing.

            There is nothing to be gained at best, and at worst you’ve resurfaced horrifying memories for others.

            Basic human decency, which is why OP quickly changed it and everyone is on the same page.

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

                None of that actually addresses my points, you’re just finger-wagging at me for being “woke.”

                If you could make a coherent point we could have a discussion.

                Additionally, referencing likes/dislikes is pointless, I could just as easily point to how your comments have worse ratios than mine.

      • hayk@lemmy.mlOP
        link
        fedilink
        arrow-up
        5
        ·
        4 months ago

        Guys, guys… You’re over-ideologizing a very simple humane request. I was asked nicely and respectfully – I tried to respond in the same way. Simple as that. I’m usually not regulating my personal communications with others in terms of laws and amendments.

          • hayk@lemmy.mlOP
            link
            fedilink
            arrow-up
            4
            ·
            4 months ago

            Maybe. In any case I try to never infer someone’s tone from text interactions since it’s always faulty and lacks human dimension. By default I just assume people actually mean what they write. I think we get (on average) more aggressive, and tend to show less empathy when not talking face to face.

            Also… The term “American left-wing” is offensive for a Marxist like myself. :D

  • Dr. Wesker@lemmy.sdf.org
    link
    fedilink
    English
    arrow-up
    10
    ·
    4 months ago

    This is great, bookmarking for later. My polybar config opens nmtui in a floating kitty terminal when you click the networking icons. It’d be awesome to theme it accordingly.

  • p0wer
    link
    fedilink
    English
    arrow-up
    6
    ·
    4 months ago

    Thanks. I’ll use it my config. you’re an eye saver.

  • h0bbl3s@lemmy.world
    link
    fedilink
    arrow-up
    7
    arrow-down
    1
    ·
    4 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.

  • ColdWater@lemmy.ca
    link
    fedilink
    arrow-up
    3
    ·
    4 months ago

    Luckily I don’t have to use nmtui all that much but this look nice, I might try it

    • xavier666@lemm.ee
      link
      fedilink
      English
      arrow-up
      5
      ·
      4 months ago

      It’s very useful for people who don’t use a desktop environment, such as TWM (tiling window manager) users. I use nmtui all the time.

      • JubilantJaguar@lemmy.world
        link
        fedilink
        arrow-up
        5
        ·
        4 months ago

        Agreed. But for such a simple tool I find it so ugly and unintuitive that I ended up rolling my own 3-line script using nmcli and fzf that does exactly the same thing more logically and in less keystrokes.