pull down to refresh

I really like nmtui but damn, the color scheme SUCKS:
5000 sats for who tells me how to fix this in a way that ONLY affects nmtui.
$ echo $XTERM
tmux-256color
bonus sats if you're using the catppuccin mocha colors
5,000 sats bounty
133 sats \ 1 reply \ @geeknik 19 Apr
You can inject your own color config using:
sudoedit /etc/newt/palette
Or better:
mkdir -p ~/.config/nmtui
cp /etc/newt/palette ~/.config/nmtui/palette
Then edit your alias:
alias nmtui='NEWT_COLORS=$(<~/.config/nmtui/palette) nmtui'
You can tweak the palette like:
root=white,black
border=black,brightblue
window=gray,black
title=brightwhite,black
button=black,gray
button_active=brightwhite,blue
checkbox=green,black
Catppuccin Mocha-inspired tweaks:
root=lavender,crust
border=sapphire,base
window=overlay0,base
title=rosewater,crust
button=surface2,lavender
button_active=crust,maroon
To apply:
export NEWT_COLORS=$(<~/.config/nmtui/palette)
nmtui
BONUS One-liner:
alias nmtui='NEWT_COLORS="root=lavender,crust border=sapphire,base window=overlay0,base title=rosewater,crust button=surface2,lavender button_active=crust,maroon" nmtui'
Replace the color names with Xterm-256-compatible ones or hex via terminal emulators that support truecolor.
reply
Cool, this works!
I have to tweak it a little to make it look better but this already helped me a lot. I will pay you the bounty.
However, I see you don't have a horse which means you don't have a wallet attached. Do you want to attach a wallet first so you can receive sats?
reply
Setting Colors with NEWT_COLORS
You can change some of the interface colors by setting the NEWT_COLORS environment variable before launching nmtui. For example, to change the background color from the default pink to blue, run:
bash NEWT_COLORS='window=blue' nmtui
NEWT_COLORS='window=white,red border=white,red checkbox=white,red actcheckbox=white,green' nmtui
reply
0 sats \ 1 reply \ @ek OP 19 Apr
NEWT_COLORS='window=blue' nmtui
This doesn't seem to do anything
NEWT_COLORS='window=white,red border=white,red checkbox=white,red actcheckbox=white,green' nmtui
This at least changed something:
btw, did you use AI for this reply?
reply
yep, i though i could have help as it looks correct but also i read, it could depends of the shell that your are using
there's an available repo?
reply