Talpadk’s Blog

March 22, 2014

A fast and beautiful terminal

Filed under: Misc — talpadk @ 11:31 am
Tags: ,

xrvt-unicode/uxrvt has long been my favourite terminal, it is fast and it supports faked transparency.

rxvt terminal with transparencyOne problem with using a darkened background was however that some terminal colour simply were bit too dark.

After a quick googling and short man page reading it was however clear that this can actually easily be resolved.
Additionally I can store some extra settings making my keyboard short cur for launching the terminal nice and simple.

Requirements:

sudo apt-get install xrvt-unicode 
sudo apt-get install tango-icon-theme

The last line is only for getting the terminal icon, and is optional if you comment out the iconFile resource

Configuring rxvt-unicode

In the file ~/.Xdefaults add the following lines:

!===== rxvt-unicode resource definitions =====!
!The number of scrollback lines
URxvt*saveLine: 5000

!Add fading for unfocused windows
URxvt*fading: 33

!Specify the icon for the terminal window, requieres the "tango-icon-theme" package
URxvt*iconFile: /usr/share/icons/Tango/16x16/apps/terminal.png

!Transparency setting
URxvt*transparent: true
URxvt*shading: 25
URxvt*background: Black
URxvt*foreground: White

!Colour setup for the darker background
URxvt*color0:  Black
URxvt*color1:  #ffa2a2
URxvt*color2:  #afffa2
URxvt*color3:  #feffa2
URxvt*color4:  #a2d0ff
URxvt*color5:  #a2a2ff
URxvt*color6:  #a2f5ff
URxvt*color7:  #ffffff
URxvt*color8:  #000000
URxvt*color9:  #ffa2a2
URxvt*color10: #afffa2
URxvt*color11: #feffa2
URxvt*color12: #a2d0ff
URxvt*color13: #a2a2ff
URxvt*color14: #a2f5ff
URxvt*color15: White

!Colour notes from the man page
!color0       (black)            = Black
!color1       (red)              = Red3
!color2       (green)            = Green3
!color3       (yellow)           = Yellow3
!color4       (blue)             = Blue3
!color5       (magenta)          = Magenta3
!color6       (cyan)             = Cyan3
!color7       (white)            = AntiqueWhite
!color8       (bright black)     = Grey25
!color9       (bright red)       = Red
!color10      (bright green)     = Green
!color11      (bright yellow)    = Yellow
!color12      (bright blue)      = Blue
!color13      (bright magenta)   = Magenta
!color14      (bright cyan)      = Cyan
!color15      (bright white)     = White

The last comments can of course be left out but is handy if you need to find a particular colour that you want to change.

Also adjust the shading resource to your liking.

After saving the file you may start the terminal using urxvt or rxvt-unicode and enjoy it fast and good looks.

Create a free website or blog at WordPress.com.