Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Is it possible to embed _one_ urxvt terminal .. ?
View unanswered posts
View posts from last 24 hours

Reply to topic    Gentoo Forums Forum Index Off the Wall
View previous topic :: View next topic  
Author Message

Joined: 12 Mar 2012
Posts: 40

PostPosted: Mon Jan 07, 2013 6:54 am    Post subject: Is it possible to embed _one_ urxvt terminal .. ? Reply with quote

Is it possible to embed _one_ urxvt terminal but have the rest normal?

I've been tinkering around with my Openbox desktop. I've got a pretty nice setup for now, but I would like an "embedded" rxvt-unicode. I know this is possible, according to this guide (I've followed it before, successfully):

But more specifically, and especially as the ~/.Xresources file sets parameters on a global basis for all rxvt-unicode terminals that I call up, I would like to still be able to call up additional, "normal" terminals with borders, a scrollbar and the like. Is this possible or am I just asking for too much?

Another option that I like less would be to install the non-unicode rxvt and use this one for my desktop while my hacked-the-hell-out rxvt-unicode would remain as my regular terminal.

If you can think of anything, please share a solution with me. Thanks. (:

I've opened a thread about this earlier on, now I just copied and pasted my query for fresh ideas. I received one reply about creating an alias here:
Back to top
View user's profile Send private message

Joined: 04 Jul 2011
Posts: 189
Location: right behind you ... (you did turn around, didn't you?)

PostPosted: Mon Jan 07, 2013 7:31 am    Post subject: Reply with quote

One approach would be to give that big urxvt a specific class name and then use that in Xresources.

in you startup script:
urxvt -name bigterm -geomerty 1024x768

in .Xresources
bigterm*transparent: true
URxvt*transparent: false

Another approach would be to do some Perl extension hacking, but the first method should be easier.
Back to top
View user's profile Send private message
Bones McCracker

Joined: 14 Mar 2006
Posts: 1577
Location: U.S.A.

PostPosted: Mon Jan 07, 2013 4:55 pm    Post subject: Reply with quote

Without giving a lot of thought to it, I'd look into use of the -name option. The man page says:
-name name
Specify the application name under which resources are to be obtained, rather than the default executable file name. Name should not contain `.' or `*' characters. Also sets the icon and title name.

If the "resources" they're talking about there are X resources, then that might enable you to specify a separate set of X resources for a separate instance of urxvt (or urxvtc, which is the way I run it, with urxvtd having been started in ~/.xsession:
/usr/bin/urxvtd -q -o -f

An added benefit is that, once the daemon is running, separate launches of actual urxvtc (client) instances takes a blink of the eye, literally, and each only use a tiny fraction of the RAM of discrete urxvt instances. The downside is that, theoretically, a crash of one instance could bring the daemon and all the others down, but I've never had it crash in years of using it this way.

Also, I don't know if you literally followed that howto that you linked to, but you should be using ~/.Xresources, not ~/.Xdefaults. The latter will still work, but it doesn't make use of the modern, efficient X resources infrastructure, which loads the ~/.Xresources entries into a database (xrdb), merging them with any other settings loaded at system level, and enables you to dynamically change them while X is running. In fact, it had been that way for years when that howto was written.
Behold the tortoise: he only makes progress when he sticks out his neck. Behold the vampire bat: he really sucks.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Off the Wall All times are GMT
Page 1 of 1

Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum