`nmtui` that does not obliterate your eyes
from hayk@lemmy.ml to linux@lemmy.ml on 18 Jul 2024 17:05
https://lemmy.ml/post/18134220

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!

#linux

threaded - newest

hayk@lemmy.ml on 18 Jul 2024 17:06 next collapse

for comparison, here’s the default

<img alt="" src="https://lemmy.ml/pictrs/image/b5fc534a-55d9-47b2-b054-800eda21bfd6.png">

eager_eagle@lemmy.world on 18 Jul 2024 17:54 collapse

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

<img alt="" src="https://lemmy.world/pictrs/image/241d49a5-c7eb-45c1-91a4-884779d69336.png">

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

To preview themes: kitty +kitten themes

Cowbee@lemmy.ml on 18 Jul 2024 17:07 next collapse

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.ml on 18 Jul 2024 17:13 next collapse

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.”

davel@lemmy.ml on 18 Jul 2024 17:18 next collapse

Thank you, OP.

Cowbee@lemmy.ml on 18 Jul 2024 17:32 next collapse

Thanks!

richieadler@lemmy.myserv.one on 18 Jul 2024 20:21 next collapse

(i come from a completely different culture, where sexual assaults are extremely uncommon)

What culture is that? I wasn’t aware such a thing existed.

tyler@programming.dev on 21 Jul 2024 17:25 collapse

Probably a Scandinavian country if I had to guess.

uzay@infosec.pub on 18 Jul 2024 22:53 collapse

(i come from a completely different culture, where sexual assaults are extremely uncommon).

It is more likely that you are just not aware of it.

[deleted] on 18 Jul 2024 18:53 next collapse

.

dario@feddit.it on 20 Jul 2024 12:11 collapse

Why is it preferable to avoid using the word rape to describe something different from sexual abuse?

Cowbee@lemmy.ml on 20 Jul 2024 12:23 next collapse

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.

dario@feddit.it on 20 Jul 2024 12:32 collapse

What if he wants to use that word anyway to convey the message of a particularly unpleasant experience? Is he free to do so?

Cowbee@lemmy.ml on 20 Jul 2024 12:59 collapse

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.

dario@feddit.it on 20 Jul 2024 14:02 collapse

I assume you are American. Despite America’s ongoing culture war over so-called “leftist” or “woke” ideologies, the use of strong words to describe an unpleasant experience that does not exactly match that thing is not frowned upon in other countries. American morals do not stretch all around the world. Given the amount of downvotes you received, not everyone is on the same page.

Cowbee@lemmy.ml on 20 Jul 2024 14:05 collapse

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.

dario@feddit.it on 20 Jul 2024 15:44 collapse

The amount of downvotes you received for your comment is enough to address that not everyone is on the same page. Indeed, this is an indication that a non-negligible number of people do not uphold your point of view. In my opinion, the original poster was being overly polite to promptly accommodate the taste of a portion of the American audience and, by extension, that of some international community influenced by it. It is your opinion and that of someone else that the use of the word rape is not appropriate to describe - albeit metaphorically - an unpleasant color combination for a computer program. In my country and in much of the rest of Europe where such ideas are not yet widespread, the use of a word that carry a terrible meaning to it is not enough to elicit such horrifying memories even to those who suffered from that experience.

You are assuming things to a certain degree of confidence that may or may not hold true to an international audience.

It’s generally better to use words that don’t bring with them the same issues.

If he feels that this particular word does fit the frustration of his experience - albeit not as traumatic as sexual assault - who are you to finger wag his choice? You think it is generally better to avoid it. To someone else, this word may be fit for the purpose.

It normalizes a word and desensitizes it, making it less likely for victims to stand up.

Stretching things to such dramatic consequences is your personal point of view. It is not a fact that the use of a word to describe sexual assault in an unrelated context will lead to under-reporting.

The fact is that using words that bring up topics of SA despite that being an extremely sensitive subject is a bad thing.

Again, this is not a fact: it is your opinion that this is a “bad thing”. You are taking for granted that this is a bad thing.

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

There is to be gained that he fully conveyed his frustration using the word he saw fit. In a democracy, a society at large should be free to use the word they prefer, even for artistic license, if they wish to do so. What if a victim of sexual assault happens to hear this same word in a work of fiction when zapping on television? It is my opinion that if someone is triggered up to this point for reading a word, even if it was a victim, it is a problem that the person should bring up with a therapist. In a democracy, I think that such personal issues should not trample upon freedom of expression.

Cowbee@lemmy.ml on 20 Jul 2024 15:48 collapse

Quite a lot of “citation needed” here, along with a weird obsession with fignting for your right to be an enemy of victims of SA. Touch grass.

dario@feddit.it on 20 Jul 2024 16:41 collapse

What’s “SA”, by the way? Are we also supposed to ban “sexual abuse” in an appropriate context? Of course I am not an enemy of victims of sexual abuse, though I am quiet clearly an outspoken enemy of such “woke” or “leftist” ideologies.

Cowbee@lemmy.ml on 20 Jul 2024 16:43 collapse

What’s “SA”, by the way? Are we also supposed to ban “sexual abuse” in an appropriate context?

You clearly know, so why ask?

Of course I am not an enemy of victims of sexual abuse, though I am quiet clearly an outspoken enemy of such “woke” or “leftist” ideologies.

You didn’t need to outright state that you’re a bad person, that was self-evident by batting for normalization of rape.

dario@feddit.it on 20 Jul 2024 16:59 collapse

Only a madman would strive to “normalize” sexual abuse, whatever that means. You are assuming that I am a bad person, but I think I am an all-around good person. I think I am fun and a good company at parties.

hayk@lemmy.ml on 20 Jul 2024 16:06 collapse

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.

dario@feddit.it on 20 Jul 2024 16:50 collapse

His request was not outspokenly abusive, but it was a passive-aggression. It is a tactic employed by some American left-wing supporters to make people feel guilty for something not intended to cause harm either directly or indirectly.

hayk@lemmy.ml on 21 Jul 2024 05:42 collapse

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

p0wer@lemmy.zip on 18 Jul 2024 17:23 next collapse

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

wesker@lemmy.sdf.org on 18 Jul 2024 17:31 next collapse

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.

hayk@lemmy.ml on 18 Jul 2024 17:46 collapse

same here (except it’s waybar in my case) ( :

gramgan@lemmy.ml on 18 Jul 2024 19:01 next collapse

Thank you! I was just suffering from this an hour ago…

h0bbl3s@lemmy.world on 18 Jul 2024 23:01 next collapse

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 on 19 Jul 2024 00:00 next collapse

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

xavier666@lemm.ee on 19 Jul 2024 05:45 collapse

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 on 19 Jul 2024 16:32 collapse

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.

xavier666@lemm.ee on 19 Jul 2024 20:29 collapse

I would be interested in seeing the script. I really need to learn fzf now.

beeng@discuss.tchncs.de on 20 Jul 2024 11:37 next collapse

Me too!

JubilantJaguar@lemmy.world on 20 Jul 2024 18:07 collapse

Sure.

wn=$(nmcli dev wifi list | fzf)
ssid="$(echo $wn | awk '{print $2}')"
read -e -p "Password: " pw
nmcli dev wifi connect "$ssid" password $pw
phantomwise@lemmy.ml on 20 Jul 2024 12:40 next collapse

Wow thanks, I’m definitely going to alias that :)

yogurtwrong@lemmy.world on 11 Aug 2024 13:27 collapse

That’s the kind of innovation I expect from the Linux community