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.

Advertisements

April 7, 2012

X11 tips and tricks

Filed under: Misc — talpadk @ 11:17 am

Useful commands for X11

Welcome to this short summary of useful commands for X11.
I have written it to avoid having to resort to googling next time I forget Xephyr.
Also it might be interesting for others as well…

Servers inside your X11 server

running xoo

xoo with a ipaq3800 skin

Why would you want to run a X11 server on your X11 display

Well for starters you might want to try out your UI on a device with a lower screen resolution than your development machine.
You might also want to code an application running at a different colour depth than you desktop, maybe a rotozoomer in 16bit 😉
You may also simply want to try out a couple of applications on a low res. screen prior to buying a table with a low res. screen…

Xoo

A wrapper for xnest and Xephyr that allows one to create a skinned X11 display.
You can even have working buttons that you can click.

sudo apt-get install xoo

Xnest

Haven’t used it myself.
As far as I know Xephyr has some advantages in the supported extensions over xnest

sudo apt-get install xnest

Xephyr

Based on the kdrive xserver supporting extensions such as render and composite.
xnest package actually recommends this package over it self…

sudo apt-get install xserver-xephyr

Utilities and tools

Xpra aka. “screen” and turbo for X11 applications

Screen is a wonderful tool for command line tools.
Xpra gives you the same capacity to leave the program running on the remove even if you close/losses the connection.
Also xpra “compresses” the stream of X11 commands by using a different protocol than X11, reducing the problems caused by low latency connections.

sudo apt-get install xpra

April 11, 2009

So you think you need a blog?

Filed under: Misc — talpadk @ 1:59 pm

Well I did would have prefered one that ran on my primary webpage talpa.dk but this was faster to setup.

Why I would want one you ask?
Well as a quick way of writing down notes/hints and to inform the world of the progress of my software project, altleast the part of the world that might care.

Create a free website or blog at WordPress.com.