You are not logged in.

#1 2009-10-07 22:54:27

x0rg
Member
From: Switzerland
Registered: 2009-07-12
Posts: 116

Urxvt: Different color schemes for different applications?

I just converted my urxvt to zenburn-colors. All is working fine except in Nethack it's hard to tell apart the  different monsters.
The question is, is it possible to tell the terminal to use different colors for nethack? Or is it possible in Nethack?

Offline

#2 2009-10-07 23:07:54

brisbin33
Member
From: boston, ma
Registered: 2008-07-24
Posts: 1,799
Website

Re: Urxvt: Different color schemes for different applications?

im pretty sure you can do this by having .Xdefaults lines for a urxvt with a specific title.  then just use urxvt -e nethack to get the title to be "nethack".

i could be way off though...

Offline

#3 2009-10-07 23:37:23

x0rg
Member
From: Switzerland
Registered: 2009-07-12
Posts: 116

Re: Urxvt: Different color schemes for different applications?

Is it possible to change the terminal-title within urxvt, without having a new window opened?

Offline

#4 2009-10-08 01:19:02

fogobogo
Member
Registered: 2008-08-24
Posts: 83

Re: Urxvt: Different color schemes for different applications?

you can do it all by reading the manpage. lets say you want a different colors for nethack, then edit your .Xdefaults and do something like that:

bananas*color1: #FFFFFF
bananas*color2: #00000
etc. etc...

the name doesnt matter. you can use anything.
for example. the only thing you have to remember is that urxvt*color1: is for urxvt and when you want to use that color profile start it with
urxvt -name bananas -e nethack
urxvt will then use the colors you specified. theres also an option for the title string but look that up yourself

Offline

#5 2009-10-08 14:03:01

x0rg
Member
From: Switzerland
Registered: 2009-07-12
Posts: 116

Re: Urxvt: Different color schemes for different applications?

yeah, I understand that, but would be a little more comfortable to just have a command to change the terminal-name instead of having a new window opened.

Offline

#6 2009-10-08 14:16:14

rson451
Member
From: Annapolis, MD USA
Registered: 2007-04-15
Posts: 1,233
Website

Re: Urxvt: Different color schemes for different applications?

alias nethack='echo -ne "\033]2;nethack\007"; nethack'

Should do the trick.


archlinux - please read this and this — twice — then ask questions.
--
http://rsontech.net | http://github.com/rson

Offline

#7 2009-10-08 14:41:02

x0rg
Member
From: Switzerland
Registered: 2009-07-12
Posts: 116

Re: Urxvt: Different color schemes for different applications?

hmmm, the name changes to nethack, but the color-scheme stays the same...
Anyways, I just mapped "urxvt -name nethack -e nethack" to "Super-N" and it works fine...
Thanks for help, though.

Offline

Board footer

Powered by FluxBB