Difference between pages "Template:Infobox software" and "Package:Urxvt"

(Difference between pages)
 
m (Added the package to the category "Terminal Emulators")
 
Line 1: Line 1:
{{Infobox
+
{{Ebuild
| bodyclass  = vevent
+
|Summary=rxvt clone with xft and unicode support
| title      = {{{title|{{{name|<includeonly>{{PAGENAME}}</includeonly>}}}}}}
+
|PkgCat=x11-terms/rxvt-unicode
| titleclass = summary
+
|Homepage=http://software.schmorp.de/pkg/rxvt-unicode.html
| labelstyle = white-space: nowrap
+
}}
| above      = {{{logo|}}}
+
| image      = {{#if:{{{collapsible|}}}|{{hidden begin|title=Screenshot|titlestyle=text-align:center}}}}{{{screenshot|}}}
+
| caption    = {{{caption|}}}{{#if:{{{collapsible|}}}|{{hidden end}}}}
+
  
| label1    = [[Software design|Original author(s)]]
+
Urxvt is a clone of [[Package:Rxvt|rxvt]], to which xft fonts and unicode characters support were added. This is an alternative to [[Package:Xterm|Xterm]], the X default terminal emulator.
| data1      = {{{author<includeonly>|</includeonly>}}}
+
 
| label2    = [[Software developer|Developer(s)]]
+
== Installation ==
| data2      = {{{developer<includeonly>|</includeonly>}}}
+
 
| label3    = Initial release
+
First step to get Urxvt work is to merge it, so let's do it.
| data3      = {{{released<includeonly>|</includeonly>}}}
+
 
| label4    = [[Software release life cycle|{{#if:{{{discontinued|}}}|Discontinued|Stable release}}]]
+
<console>
| data4      = {{#if:{{{latest release version|{{{latest_release_version<includeonly>|</includeonly>}}}}}}
+
###i## emerge -av rxvt-unicode
|{{{latest release version|{{{latest_release_version}}}}}} {{#if:{{{latest release date|{{{latest_release_date<includeonly>|</includeonly>}}}}}}
+
</console>
  | / {{{latest release date|{{{latest_release_date}}}}}}
+
 
  }}
+
Most likely, you will want to enable '''xft''' use flag so that you can use extra fonts (such as Inconsolata, a pretty good font for terminals). You might also want to enable '''256-color''' use flag to get a larger color range.
|{{#if:{{{frequently updated|{{{frequently_updated|}}}}}}
+
 
  |{{#ifexist:Template:Latest stable software release/{{{name|{{PAGENAME}}}}}
+
== Configuration ==
  }}
+
 
}}
+
It is very likely that when you will launch Urxvt for the first time, you will want to make some customizations so that your terminal doesn't look ugly and fit your tastes. So we will go into it. If it does not exist, create a file <code>~/.Xresources</code>.
 +
 
 +
{{fancyimportant|You may be used to handle your terminal configuration in <code>~/.Xdefaults</code> which is generally autoloaded when you start X. However, this method is deprecated. So you should use <code>~/.Xresources</code> now.}}
 +
 
 +
If you use a [[:Category:Display_Managers|display manager]], <code>~/.Xresources</code> is probably automatically loaded. If this is not the case, you will have to load it manually in your <code>~/.xinitrc</code> with the command <code>xrdb ~/.Xresources</code>. If you want to split your configuration into multiple files, you can also use the <code>-merge</code> option of <code>xrdb</code> so that the last called file doesn't override the others.
 +
 
 +
=== Color scheme ===
 +
 
 +
First thing you might want to do is to change the color scheme. For instance, you may prefer working with white on black:
 +
 
 +
{{file|name=~/.Xresources|desc=Switch foreground and background|body=
 +
URxvt*background: black
 +
URxvt*foreground: white
 
}}
 
}}
| label5    = [[Software release life cycle|Preview release]]
+
 
| data5      = {{#if:{{{latest preview version|{{{latest_preview_version<includeonly>|</includeonly>}}}}}}
+
{{fancynote|The prefix ''URxvt'' is optional. It is actually the namespace of the property you define. For instance, if we just wrote <code>*background: black</code>, the background color would have been global to any terminal emulator ([[Package:Xterm|Xterm]], [[Package:Gnome-Terminal|gnome-terminal]], ...).}}
|{{{latest preview version|{{{latest_preview_version}}}}}} {{#if:{{{latest preview date|{{{latest_preview_date<includeonly>|</includeonly>}}}}}}
+
 
  | / {{{latest preview date|{{{latest_preview_date}}}}}}
+
You can also redefine other colors. For instance, I redefined color0 so that it is close to the background color (to display invisible characters in [[Package:Vim|Vim]]) and color12 to a more readable color than dark blue on black:
  }}
+
 
|{{#if:{{{frequently updated|{{{frequently_updated|}}}}}}
+
{{file|name=~/.Xresources|desc=Change some colors|body=
  |{{#ifexist:Template:Latest preview software release/{{{name|{{PAGENAME}}}}}
+
URxvt*color0: #353535
  }}
+
URxvt*color12: #6495ed
}}
+
}}
 +
 
 +
{{fancynote|When editing your colorscheme, it is often useful to reload your <code>~/.Xresources</code> with <code>xrdb ~/.Xresources</code> and restart your terminal emulator so that you can note changes.}}
 +
 
 +
=== Scrolling ===
 +
 
 +
Maybe the scrollbar on the left annoys you. You can move it to the right or even remove it:
 +
 
 +
{{file|name=~/.Xresources|desc=Move/Remove the scrollbar|body=
 +
! No scrollbar
 +
URxvt*scrollBar: false
 +
! Or scrollbar on the right side
 +
URxvt*scrollBar_right: true
 +
}}
 +
 
 +
=== Font ===
 +
 
 +
When you spend a lot of time on your terminal, it is important to have a lean and readable font. A good font designed for console is '''Inconsolata''. If you want to use it, you have to emerge it first.
 +
 
 +
<console>###i## emerge -q media-fonts/inconsolata</console>
 +
 
 +
Then, if you want to set your terminal font to Inconsolata with a size of 8px, write the following in your <code>~/.Xresources</code>.
 +
 
 +
{{file|name=~/.Xresources|desc=Changing font|body=
 +
URxvt*font: xft:Inconsolata:size=8
 +
}}
 +
 
 +
If you think your the space between letters is too wide (or too nested), you can change it with the <code>letterSpace: n</code> property, which increases the size of the separation between letter by <code>n</code> (or decreases if negative).
 +
 
 +
{{file|name=~/.Xresources|desc=Alter letters spacing|body=
 +
URxvt*letterSpace: -1
 
}}
 
}}
| label6    = Development status
 
| data6      = {{{status<includeonly>|</includeonly>}}}
 
| label7    = [[Programming language|Written in]]
 
| data7      = {{{programming language|{{{programming_language<includeonly>|</includeonly>}}}}}}
 
| label8    = [[Operating system]]
 
| data8      = {{{operating system|{{{operating_system<includeonly>|</includeonly>}}}}}}
 
| label9    = [[Computing platform|Platform]]
 
| data9      = {{{platform<includeonly>|</includeonly>}}}
 
| label10    = [[File size|Size]]
 
| data10    = {{{size<includeonly>|</includeonly>}}}
 
| label11    = [[Language|Available in]]
 
| data11    = {{{language<includeonly>|</includeonly>}}}
 
| label12    = [[List of software categories|Type]]
 
| data12    = {{{genre<includeonly>|</includeonly>}}}
 
| label13    = [[Software license|License]]
 
| data13    = {{{license<includeonly>|</includeonly>}}}
 
| label14    = [[Software license|Licence]]
 
| data14    = {{{licence<includeonly>|</includeonly>}}}
 
| label15    = [[Website]]
 
| data15    = {{{website<includeonly>|</includeonly>}}}
 
| label16    = [[Technical standard|Standard]](s)
 
| data16    = {{{standard<includeonly>|</includeonly>}}}
 
| label17    = As of
 
| data17    = {{{AsOf<includeonly>|</includeonly>}}}
 
}}<noinclude>
 
{{documentation}}
 
</noinclude>
 
  
{{delete}}
+
[[Category:Terminal_Emulators]]

Latest revision as of 21:22, September 25, 2014


Source Repository:Gentoo Portage Tree
Homepage

Summary: rxvt clone with xft and unicode support

Urxvt


Urxvt is a clone of rxvt, to which xft fonts and unicode characters support were added. This is an alternative to Xterm, the X default terminal emulator.

Installation

First step to get Urxvt work is to merge it, so let's do it.

# emerge -av rxvt-unicode

Most likely, you will want to enable xft use flag so that you can use extra fonts (such as Inconsolata, a pretty good font for terminals). You might also want to enable 256-color use flag to get a larger color range.

Configuration

It is very likely that when you will launch Urxvt for the first time, you will want to make some customizations so that your terminal doesn't look ugly and fit your tastes. So we will go into it. If it does not exist, create a file ~/.Xresources.

Important

You may be used to handle your terminal configuration in ~/.Xdefaults which is generally autoloaded when you start X. However, this method is deprecated. So you should use ~/.Xresources now.

If you use a display manager, ~/.Xresources is probably automatically loaded. If this is not the case, you will have to load it manually in your ~/.xinitrc with the command xrdb ~/.Xresources. If you want to split your configuration into multiple files, you can also use the -merge option of xrdb so that the last called file doesn't override the others.

Color scheme

First thing you might want to do is to change the color scheme. For instance, you may prefer working with white on black:

~/.Xresources: Switch foreground and background
URxvt*background: black
URxvt*foreground: white

Note

The prefix URxvt is optional. It is actually the namespace of the property you define. For instance, if we just wrote *background: black, the background color would have been global to any terminal emulator (Xterm, gnome-terminal, ...).

You can also redefine other colors. For instance, I redefined color0 so that it is close to the background color (to display invisible characters in Vim) and color12 to a more readable color than dark blue on black:

~/.Xresources: Change some colors
URxvt*color0: #353535
URxvt*color12: #6495ed

Note

When editing your colorscheme, it is often useful to reload your ~/.Xresources with xrdb ~/.Xresources and restart your terminal emulator so that you can note changes.

Scrolling

Maybe the scrollbar on the left annoys you. You can move it to the right or even remove it:

~/.Xresources: Move/Remove the scrollbar
! No scrollbar
URxvt*scrollBar: false
! Or scrollbar on the right side
URxvt*scrollBar_right: true

Font

When you spend a lot of time on your terminal, it is important to have a lean and readable font. A good font designed for console is 'Inconsolata. If you want to use it, you have to emerge it first.

# emerge -q media-fonts/inconsolata

Then, if you want to set your terminal font to Inconsolata with a size of 8px, write the following in your ~/.Xresources.

~/.Xresources: Changing font
URxvt*font: xft:Inconsolata:size=8

If you think your the space between letters is too wide (or too nested), you can change it with the letterSpace: n property, which increases the size of the separation between letter by n (or decreases if negative).

~/.Xresources: Alter letters spacing
URxvt*letterSpace: -1