You are not logged in.
Hello. I use mcabber for IM which is a ncurses program. From what I understand, it is not possible to set font size for a ncurses program. Also urxvt uses .Xresources for configuration which sets the same font for every instance of urxvt.
So I want to ask if it is possible to write a script to start urxvt with a different configuration file and then start mcabber in it.
I understand that I can write a script to change font size in .Xresources and then use xrdb to merge the changes, but I do not understand how I can make that change local for only that instance of urxvt.
Thanks
Offline
I don't htink it's possible to invoke a single instance of urxvt with a different profile.
Why don't you simply configure xterm to your liking and startx mcabber through that?
Offline
Form man urxvt;
-fn fontlist
Select the fonts to be used. This is a comma separated list of font names that are checked in order when trying to find glyphs for characters. The first font defines the cell size for characters; other fonts might be smaller, but not (in general) larger. A (hopefully) reasonable default font list is always appended to it. See resource font for more details.
In short, to specify an X11 core font, just specify its name or prefix it with "x:". To specify an XFT-font, you need to prefix it with "xft:", e.g.:
urxvt -fn "xft:Bitstream Vera Sans Mono:pixelsize=15"
urxvt -fn "9x15bold,xft:Bitstream Vera Sans Mono"I use it all the time.
Offline
You can create a launch script for your application and define fonts you want to use there.
Edit: Good news came twice so now you even have a relevant man snippet.
Last edited by bohoomil (2012-06-09 12:18:30)
:: Registered Linux User No. 223384
:: github
:: infinality-bundle+fonts: good looking fonts made easy
Offline
Thanks swanson, that was exactly what I was looking for. I was so pessimistic I didn't even bother looking up the man page.
Last edited by navgeet (2012-06-09 12:52:46)
Offline
You can also do it from within urxvt.
You could for example make an alias for the ncurses program like this:
alias fontc='printf "\e]710;xft:%s:pixelsize=%s\007"'
alias mcabber='fontc profont 11; mcabber; fontc profont 15'Offline
You can also set the class of the window upon launch and use that to define your terminal settings (all of them ...) in your .Xresources:
Offline