Posts: 1,308
BitJam
Joined: 31 Aug 2009
#1
It took me a while to play with all the uxrvt settings before I was really happy with it. Here is how I deal with fonts and font size. The font I start with is probably too large for most people but that is easy to adjust by reducing"size=17" below. The rest of the entries allow me to adjust the font-size on the fly with <Ctrl>-<Shift>-<Up_Arrow> and <Ctrl>-<Shift>-<Down_Arrow>

In ~.Xdefaults I have:

Code: Select all

urxvt*.font:  xft:DejaVu Sans Mono:autohint=true:pixelsize=17

urxvt.perl-lib:                     /home/USER/.urxvt
urxvt.keysym.Control-Shift-Up:      perl:font:increment
urxvt.keysym.Control-Shift-Down:    perl:font:decrement
urxvt.perl-ext-common:              default,font
I've attached a gzipped copy of the ~/.urxvt/font file that is used for dynamically changing the font size. It needs to be gunzipped in the ~./urxvt directory and then the perl-lib line should be edited with USER replaced by your username. Alternatively, you could put the file in /usr/lib/urxvt/perl/ and then you wouldn't need the perl-lib line in .Xdefaults.

It's quite possible there is a newer version of the dynamic font size extension. This version conflicts with fancy prompts which span from one side of the window to the other. The prompts are unaware of the new font size.
Posts: 1,308
BitJam
Joined: 31 Aug 2009
#2
FWIW, here are all of my urxvt settings. I use"URxvt" because some of the settings (tab menu colors) need the leading UR and none seem to have a problem with it. I removed the scrollbar. Most people probably want it back.

I gave it a transparent background but the background is both tinted and blurred so the text is always easy to read. The text dims when the terminal is not the selected window. I almost alway launch it in tabbed mode via"uxrvt -pe tabbed".

I have my own modified version of the tabbed extension which using <Alt>-<Left_Arrow> and <Alt>-<Right_Arrow> for switching tabs which corresponds to switching between virtual consoles. This makes my life easier. YMMV so I have not included it. My version also allows you to open multiple tabs from the command line, each with its own CWD.

The colors are toned down and are perhaps a bit sherbet-y. I'm not suggesting we use these settings as the default for antiX but this might be a good starting point to find a reasonable set of defaults for antiX. IMO the dynamic font size is handy on LiveUSBs that boot on a variety of machines.

After making changes to ~/.Xdefaults you should run"xrdb ~/.Xdefaults" to have them take effect the next time a window is opened.

Code: Select all

!--- Font and font size

URxvt*.font:  xft:DejaVu Sans Mono:autohint=true:pixelsize=17
URxvt.perl-lib:                     /home/jbowlin/.urxvt
URxvt.keysym.Control-Shift-Up:      perl:font:increment
URxvt.keysym.Control-Shift-Down:    perl:font:decrement
URxvt.perl-ext-common:              default,font

!--- General

URxvt.buffered:             true
URxvt.urlLauncher:          /usr/bin/firefox
URxvt.matcher.button:       1
URxvt.geometry:             100x45
!--- Scrolling

URxvt*.scrollTtyOutput:     false
URxvt*.scrollWithBuffer:    false
URxvt*.scrollTtyKeypress:   true
URxvt.secondaryScroll:      true
URxvt*scrollstyle:          plain
URxvt*saveLines:            20000
URxvt.scrollBar_right:      true
URxvt.scrollBar:            false

!-- Shading and Fading

URxvt.transparent:          true
URxvt.shading:              50
URxvt.blurRadius:           5
URxvt.fading:               30

!--- Tabbing Menu colors

URxvt.tabbed.tabbar-bg:     0
URxvt.tabbed.tabbar-fg:     6
URxvt.tabbed.tab-bg:        0
URxvt.tabbed.tab-fg:        5

!--- Colors

URxvt.background:           black
URxvt.underlineColor:       #4ad5e1

URxvt.pointerColor:         #dc74d1
URxvt.color0:               #000000
URxvt.color1:               #dc74d1
URxvt.color2:               #0eb8c7
URxvt.color3:               #dfe37e
URxvt.color5:               #9e88f0
URxvt.color6:               #73f7ff
URxvt.color7:               gray90
URxvt.color8:               #8b8f93
URxvt.color9:               #dc74d1
URxvt.color10:              #0eb8c7
URxvt.color11:              #dfe37e
URxvt.color12:              #8080ff
URxvt.color13:              #9e88f0
URxvt.color14:              #73f7ff
URxvt.color15:              #e1dddd
URxvt.foreground:           #c0e5f1
URxvt.cursorColor:          #e0e080