Difference between revisions of "Rxvt-unicode"
(→Native transparency: added templates; changed Template:File to Template:hc) |
m (codeline -> ic) |
||
Line 4: | Line 4: | ||
{{i18n|Rxvt-unicode}} | {{i18n|Rxvt-unicode}} | ||
− | [http://software.schmorp.de/pkg/rxvt-unicode.html rxvt-unicode] is a highly customizable [[Wikipedia:Terminal emulator|terminal emulator]] forked from [[Wikipedia:Rxvt|rxvt]]. Commonly known as {{ | + | [http://software.schmorp.de/pkg/rxvt-unicode.html rxvt-unicode] is a highly customizable [[Wikipedia:Terminal emulator|terminal emulator]] forked from [[Wikipedia:Rxvt|rxvt]]. Commonly known as {{Ic|urxvt}}, rxvt-unicode can be [[daemon]]ized to run clients within a single [[Wikipedia:Process (computing)|process]] in order to minimize the use of system resources. Developed by Marc Lehmann, some of the more outstanding features of rxvt-unicode include international language support through [[Wikipedia:Unicode|Unicode]], the ability to display multiple font types and support for [[Wikipedia:Perl|Perl]] extensions. |
==Installation== | ==Installation== | ||
Line 94: | Line 94: | ||
URxvt.underlineURLs: true | URxvt.underlineURLs: true | ||
− | {{Note|This extension replaces the Clickable URLs extension mentioned above, so {{ | + | {{Note|This extension replaces the Clickable URLs extension mentioned above, so {{Ic|matcher}} can be removed from the {{Ic|URxvt.perl-ext}} list.}} |
'''Key commands:''' | '''Key commands:''' | ||
Line 187: | Line 187: | ||
==Improving Performance== | ==Improving Performance== | ||
− | *Avoid the use of Xft fonts. If Xft fonts must be used, append {{ | + | *Avoid the use of Xft fonts. If Xft fonts must be used, append {{Ic|<nowiki>:antialias=false</nowiki>}} to the setting value.<sup>[http://pod.tst.eu/http://cvs.schmorp.de/rxvt-unicode/doc/rxvt.7.pod#Can_I_speed_up_Xft_rendering_somehow]</sup> |
− | *Build rxvt-unicode with disabled support for unnecessary features, {{ | + | *Build rxvt-unicode with disabled support for unnecessary features, {{Ic|--disable-xft}} and {{Ic|--disable-unicode3}} in particular.<sup>[http://pod.tst.eu/http://cvs.schmorp.de/rxvt-unicode/doc/rxvt.7.pod#Rxvt_unicode_uses_gobs_of_memory_how]</sup> |
− | *Limit the number of {{ | + | *Limit the number of {{Ic|saveLines}} (option {{Ic|-sl}}) in the scrollback buffer to reduce memory usage.<sup>[http://pod.tst.eu/http://cvs.schmorp.de/rxvt-unicode/doc/rxvt.7.pod#Isn_t_rxvt_unicode_supposed_to_be_sm]</sup> |
− | *Consider running {{ | + | *Consider running {{Ic|urxvtd}} as a daemon accepting connections from {{Ic|urxvtc}} clients. |
==Cut and Paste== | ==Cut and Paste== | ||
− | {{Note|With the use of a VDT multiplexer, urxvt (or any VDT emulator) {{ | + | {{Note|With the use of a VDT multiplexer, urxvt (or any VDT emulator) {{Ic|CLIPBOARD}} integration will not be effective, since it will not be possible to select all of the desired text in a straightforward fashion or at all, in some cases (e.g., when the active multiplexed terminal is changed to another one and then back to the original one, and one selects text beyond what is visible, which causes text from the other terminal to be displayed). Obviously this is due to the fact that the VDT emulator lacks the ability to distinguish between multiplexed terminals. Therefore, it would be effectively redundant for one who always uses a VDT multiplexer capable of maintaining a scrollback buffer and integrating with {{Ic|CLIPBOARD}} (e.g., [[tmux]] with [[tmux#ICCCM Selection Integration|customized key bindings]]) to integrate {{Ic|CLIPBOARD}} with urxvt.}} |
− | For users unfamiliar with [[Xorg]] data transfer methods, the exchange of information to and from rxvt-unicode can become a burden. Suffice to say that rxvt-unicode uses cut buffers which are typically loaded into the current {{ | + | For users unfamiliar with [[Xorg]] data transfer methods, the exchange of information to and from rxvt-unicode can become a burden. Suffice to say that rxvt-unicode uses cut buffers which are typically loaded into the current {{Ic|PRIMARY}} selection by default.<sup>[http://pod.tst.eu/http://cvs.schmorp.de/rxvt-unicode/doc/rxvt.1.pod#THE_SELECTION_SELECTING_AND_PASTING_]</sup> Users are urged to review [[Wikipedia:X Window selection]] for additional information. |
====Clipboard Management==== | ====Clipboard Management==== | ||
* [http://parcellite.sourceforge.net/ Parcellite] is a GTK+ clipboard manager which can also run in the background as a daemon. | * [http://parcellite.sourceforge.net/ Parcellite] is a GTK+ clipboard manager which can also run in the background as a daemon. | ||
− | * [http://www.nongnu.org/autocutsel/ autocutsel] provides command line and daemon interfaces to synchronize PRIMARY, {{ | + | * [http://www.nongnu.org/autocutsel/ autocutsel] provides command line and daemon interfaces to synchronize PRIMARY, {{Ic|CLIPBOARD}} and cut buffer selections. |
* [http://glipper.sourceforge.net/ Glipper] is a [[GNOME]] panel applet with older versions available for use in environments other than GNOME. | * [http://glipper.sourceforge.net/ Glipper] is a [[GNOME]] panel applet with older versions available for use in environments other than GNOME. | ||
Line 240: | Line 240: | ||
</pre> | </pre> | ||
− | It also requires {{Package Official|xsel}} and needs to be enabled in the {{ | + | It also requires {{Package Official|xsel}} and needs to be enabled in the {{Ic|*perl-ext-common}} or {{Ic|*perl-ext}} field in {{Filename|~/.Xresources}}. For example: |
URxvt.perl-ext-common: default,clipboard | URxvt.perl-ext-common: default,clipboard | ||
Line 249: | Line 249: | ||
===Scriptlets=== | ===Scriptlets=== | ||
− | Save this scriptlet from the {{ | + | Save this scriptlet from the {{Ic|urxvtc}} man page somewhere on your system as {{Filename|urxvtc}} (e.g., in {{Filename|~/.config/openbox}}): |
<pre> | <pre> | ||
#!/bin/sh | #!/bin/sh | ||
Line 299: | Line 299: | ||
</pre> | </pre> | ||
− | Make sure that you change {{ | + | Make sure that you change {{Ic|/path/to/urxvtc}} to the actual path to the {{Filename|urxvtc}} scriptlet that you saved above. We will be using {{Filename|urxvtc}} to launch both regular instances of {{Ic|urxvt}} and the kuake-like instance. |
===urxvtq with tabbing=== | ===urxvtq with tabbing=== | ||
Line 325: | Line 325: | ||
You can also use your mouse to switch the tabs by clicking the wished one and create a new tab by clicking on ''[NEW].\\'' | You can also use your mouse to switch the tabs by clicking the wished one and create a new tab by clicking on ''[NEW].\\'' | ||
− | To close a tab just enter {{ | + | To close a tab just enter {{Ic|exit}} like you would to normally close a terminal. |
===Openbox configuration=== | ===Openbox configuration=== | ||
− | Now add the following lines to the {{ | + | Now add the following lines to the {{Ic|<applications>}} section of {{Filename|~/.config/openbox/rc.xml}}: |
<pre> | <pre> | ||
<application name="urxvtq"> | <application name="urxvtq"> | ||
Line 344: | Line 344: | ||
</pre> | </pre> | ||
− | and add these lines to the {{ | + | and add these lines to the {{Ic|<keyboard>}} section: |
<pre> | <pre> | ||
<keybind key="W-t"> | <keybind key="W-t"> | ||
Line 358: | Line 358: | ||
</pre> | </pre> | ||
− | Here too you need to change the {{ | + | Here too you need to change the {{Ic|/path/to/*}} lines to point to the scripts that you saved above. Save the file and then reconfigure Openbox. You should now be able to launch regular instances of urxvt with the Windows/Super key + {{Keypress|T}}, and toggle the kuake-like console with the Windows/Super key + {{Keypress|'''`'''}} (the grave key also known as the backtick). |
===Further configuration=== | ===Further configuration=== | ||
Line 384: | Line 384: | ||
===Using rxvt-unicode as gmrun terminal=== | ===Using rxvt-unicode as gmrun terminal=== | ||
− | Unlike some other terminals, urxvt expects the arguments to {{ | + | Unlike some other terminals, urxvt expects the arguments to {{Ic|-e}} to be given separately, rather than grouped together with quotes. This causes trouble with gmrun, which assumes the opposite behavior. This can be worked around by putting an "eval" in front of gmrun's "Terminal" variable in {{Filename|.gmrunrc}}: |
Terminal = eval urxvt | Terminal = eval urxvt | ||
TermExec = ${Terminal} -e | TermExec = ${Terminal} -e | ||
− | (gmrun uses {{Filename|/bin/sh}} to execute commands, so the "eval" is understood here.) The "eval" has the side-effect of "breaking up" the argument to {{ | + | (gmrun uses {{Filename|/bin/sh}} to execute commands, so the "eval" is understood here.) The "eval" has the side-effect of "breaking up" the argument to {{Ic|-e}} in the same way that {{Ic|$@}} does in [[Bash]], making the command intelligible to urxvt. |
=== My numerical keypad acts weird and generates differing output? (e.g. in vim) === | === My numerical keypad acts weird and generates differing output? (e.g. in vim) === | ||
Line 435: | Line 435: | ||
*[http://pod.tst.eu/http://cvs.schmorp.de/rxvt-unicode/doc/rxvt.1.pod rxvt-unicode Reference] - Official manual page | *[http://pod.tst.eu/http://cvs.schmorp.de/rxvt-unicode/doc/rxvt.1.pod rxvt-unicode Reference] - Official manual page | ||
*[http://pod.tst.eu/http://cvs.schmorp.de/rxvt-unicode/src/urxvt.pm urxvtperl] - Official Perl extension reference | *[http://pod.tst.eu/http://cvs.schmorp.de/rxvt-unicode/src/urxvt.pm urxvtperl] - Official Perl extension reference | ||
− | *{{ | + | *{{Ic|man urxvt}} |
Revision as of 17:16, 11 December 2011
rxvt-unicode is a highly customizable terminal emulator forked from rxvt. Commonly known as urxvt
, rxvt-unicode can be daemonized to run clients within a single process in order to minimize the use of system resources. Developed by Marc Lehmann, some of the more outstanding features of rxvt-unicode include international language support through Unicode, the ability to display multiple font types and support for Perl extensions.
Contents
Installation
Template:Package Official is available in the Official Repositories and includes 256 color support:
# pacman -S rxvt-unicode
Template:Package AUR is available in the AUR and includes a fix for the font width bug and adds support for ignoring window size hints (lock the window size to n_columns * column_width, etc.) without dead space.
Configuration
See the rxvt-unicode reference page for the complete list of available setting and values.
Creating ~/.Xresources
The look, feel, and function of rxvt-unicode is controlled by command-line arguments and/or X resources. X resources can be set using Template:Filename and xrdb (Template:Package Official), see the wiki page for details.
If Template:Filename is not affecting rxvt-unicode, add the following to your Template:Filename file and restart your X session:
xrdb -merge ~/.Xresources
True transparency
To use true transparency, you need to be using a window manager that supports compositing or a separate compositor.
From the command-line:
$ urxvt -depth 32 -bg rgba:3f00/3f00/3f00/dddd
Using the configuration file:
Native transparency
If there is no need for true transparency, or if compositing uses too many resources on your system, you can get transparency working in the following way:
~/.Xresources
URxvt*transparent: true URxvt*shading: 10 # 0 to 99 darkens, 101 to 200 lightens
URxvt*tintColor
set. Use a different tintColor
instead.Scrollbar
The look of the scrollbar can be chosen through this entry in Template:Filename:
! scrollbar style - rxvt (default), plain (most compact), next, or xterm URxvt*scrollstyle:rxvt
The scrollbar can also be completely deactivated like so:
URxvt.scrollBar: off
Font Declaration Methods
URxvt.font: 9x15
is the same as:
URxvt.font: -misc-fixed-medium-r-normal--15-140-75-75-c-90-iso8859-1
and:
URxvt.font: 9x15bold
is the same as:
URxvt.font: -misc-fixed-bold-r-normal--15-140-75-75-c-90-iso8859-1
The complete list of short names for X core fonts can be found in Template:Filename (there's also some fonts.alias files in some of the other subdirectories of Template:Filename, but as they are packaged separately from the actual fonts, they may list fonts you do not actually have installed). It is worth noting that these short aliases select for ISO-8859-1 versions of the fonts rather than ISO-10646-1 (Unicode) versions, and 75 DPI rather than 100 DPI versions, so you're probably better off avoiding them and choosing fonts by their full long names instead.
URxvt.font: xft:monaco:size=10
Or
URxvt.font: xft:monaco:bold:size=10
Set icon
By default URxvt does not feature a taskbar icon. However, this can be easily changed by adding the following line to Template:Filename and pointing to the desired icon:
URxvt*iconFile: /usr/share/icons/Clarity/scalable/apps/terminal.svg
Perl extensions
Clickable URLs
You can make URLs in the terminal clickable using the matcher extension. For example, to open links in Firefox add the following to Template:Filename:
URxvt.perl-ext-common: default,matcher URxvt.urlLauncher: /usr/bin/firefox URxvt.matcher.button: 1
Yankable URLs (No Mouse)
In addition, you can select and open URLs in your web browser without using the mouse.
Install the Template:Package Official package from the Official Repositories and adjust your Template:Filename as necessary. An example is shown below:
URxvt.perl-ext: default,url-select URxvt.keysym.M-u: perl:url-select:select_next URxvt.urlLauncher: firefox URxvt.underlineURLs: true
matcher
can be removed from the URxvt.perl-ext
list.Key commands:
Template:Keypress+Template:Keypress Enter selection mode. The last URL on your screen will be selected. You can repeat Template:Keypress+Template:Keypress to select the next upward URL.
Template:Keypress Select next upward URL
Template:Keypress Select next downward URL
Template:Keypress Open selected URL in browser and quit selection mode
Template:Keypress Open selected URL in browser without quitting selection mode
Template:Keypress Copy (yank) selected URL and quit selection mode
Template:Keypress Cancel URL selection mode
Tabs
To add tabs to urxvt, add the following to your Template:Filename:
URxvt.perl-ext-common: default,tabbed
To control tabs use:
Template:Keypress+Template:Keypress new tab
Template:Keypress+Template:Keypress go to left tab
Template:Keypress+Template:Keypress go to right tab
Template:Keypress+Template:Keypress move tab to the left
Template:Keypress+Template:Keypress move tab to the right
Template:Keypress+Template:Keypress: close tab
You can change the colors of tabs with the following:
URxvt.tabbed.tabbar-fg: 2 URxvt.tabbed.tabbar-bg: 0 URxvt.tabbed.tab-fg: 3 URxvt.tabbed.tab-bg: 0
For named tabs, see Template:Package AUR, (Template:Keypress+Template:Keypress: names a tab).
Fullscreen
You can install the Template:Package AUR in the AUR and then set a key bind to put urxvt fullscreen.
urxvt*keysym.F11: perl:fullscreen:switch
Colors
Colors must be specified using color indexes: 0 to 15 correspond with the colors from the rxvt manual "Colors and Graphics" Section.
COLORS AND GRAPHICS If graphics support was enabled at compile-time, rxvt can be queried with ANSI escape sequences and can address individual pixels instead of text characters. Note the graphics support is still considered beta code. In addition to the default foreground and background colours, rxvt can display up to 16 colours (8 ANSI colours plus high-intensity bold/blink versions of the same). Here is a list of the colours with their rgb.txt names. 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 foreground = Black background = White It is also possible to specify the colour values of foreground, background, cursorColor, cursorColor2, colorBD, colorUL as a number 0-15, as a convenient shorthand to reference the colour name of color0-color15. Note that -rv ("reverseVideo: True") simulates reverse video by always swapping the foreground/background colours. This is in contrast to xterm(1) where the colours are only swapped if they have not otherwise been specified. For example, rxvt -fg Black -bg White -rv would yield White on Black, while on xterm(1) it would yield Black on White.
Improving Performance
- Avoid the use of Xft fonts. If Xft fonts must be used, append
:antialias=false
to the setting value.[1]
- Build rxvt-unicode with disabled support for unnecessary features,
--disable-xft
and--disable-unicode3
in particular.[2]
- Limit the number of
saveLines
(option-sl
) in the scrollback buffer to reduce memory usage.[3]
- Consider running
urxvtd
as a daemon accepting connections fromurxvtc
clients.
Cut and Paste
CLIPBOARD
integration will not be effective, since it will not be possible to select all of the desired text in a straightforward fashion or at all, in some cases (e.g., when the active multiplexed terminal is changed to another one and then back to the original one, and one selects text beyond what is visible, which causes text from the other terminal to be displayed). Obviously this is due to the fact that the VDT emulator lacks the ability to distinguish between multiplexed terminals. Therefore, it would be effectively redundant for one who always uses a VDT multiplexer capable of maintaining a scrollback buffer and integrating with CLIPBOARD
(e.g., tmux with customized key bindings) to integrate CLIPBOARD
with urxvt.For users unfamiliar with Xorg data transfer methods, the exchange of information to and from rxvt-unicode can become a burden. Suffice to say that rxvt-unicode uses cut buffers which are typically loaded into the current PRIMARY
selection by default.[4] Users are urged to review Wikipedia:X Window selection for additional information.
Clipboard Management
- Parcellite is a GTK+ clipboard manager which can also run in the background as a daemon.
- autocutsel provides command line and daemon interfaces to synchronize PRIMARY,
CLIPBOARD
and cut buffer selections.
- Glipper is a GNOME panel applet with older versions available for use in environments other than GNOME.
- xclip is a lightweight, command-line based interface to the clipboard.
Automatic Script Management
Skottish[5] created a Perl script to automatically copy any selection in rxvt-unicode to the X clipboard. Save the following as Template:Filename:
#! /usr/bin/perl sub on_sel_grab { my $query=quotemeta $_[0]->selection; $query=~ s/\n/\\n/g; $query=~ s/\r/\\r/g; system( "echo -en " . $query . " | xsel -i -b -p" ); }
Xyne has also created his own variation of Skottish's script named Template:Package AUR which is available in the AUR that allows the user to paste the selection with Template:Keypress+Template:Keypress instead of only with a middle mouse click:
#! /usr/bin/perl sub on_sel_grab { my $query = $_[0]->selection; open (my $pipe,'|-','xsel -ib') or die; print $pipe $query; close $pipe; open (my $pipe,'|-','xsel -ip') or die; print $pipe $query; close $pipe; }
It also requires Template:Package Official and needs to be enabled in the *perl-ext-common
or *perl-ext
field in Template:Filename. For example:
URxvt.perl-ext-common: default,clipboard
The AUR package Template:Package AUR is another option one can use. Template:Package AUR includes the same functionality as Template:Package AUR, in addition to the keyboard-select and url-select Perl extensions.
Improved Kuake-like Behavior in Openbox
This was originally posted on the forum by Xyne[6], and it relies on the Template:Package Official found in the official repositories.
Scriptlets
Save this scriptlet from the urxvtc
man page somewhere on your system as Template:Filename (e.g., in Template:Filename):
#!/bin/sh urxvtc "$@" if [ $? -eq 2 ]; then urxvtd -q -o -f urxvtc "$@" fi
and save this one as Template:Filename:
#!/bin/bash wid=$(xdotool search --classname urxvtq) if [ -z "$wid" ]; then /path/to/urxvtc -name urxvtq -geometry 80x28 wid=$(xdotool search --classname urxvtq | head -1) xdotool windowfocus $wid xdotool key Control_L+l else if [ -z "$(xdotool search --onlyvisible --classname urxvtq 2>/dev/null)" ]; then xdotool windowmap $wid xdotool windowfocus $wid else xdotool windowunmap $wid fi fi
A previous version of Template:Package Official introduced a bug which disabled recognition of visible windows and thus led some users to use the following scriptlet in place of the previous one. This is no longer necessary as of Template:Package Official >= 1.20100416.2809, but it has been left here for future reference.
#!/bin/bash wid=$(xprop -name urxvtq | grep 'WM_COMMAND' | awk -F ',' '{print $3}' | awk -F '"' '{print $2}') if [ -z "$wid" ]; then /path/to/urxvtc -name urxvtq -geometry 200x28 wid=$(xprop -name urxvtq | grep 'WM_COMMAND' | awk -F ',' '{print $3}' | awk -F '"' '{print $2}') xdotool windowfocus $wid xdotool key Control_L+l else if [ -z "$(xprop -id $wid | grep 'window state: Normal' 2>/dev/null)" ]; then xdotool windowmap $wid xdotool windowfocus $wid else xdotool windowunmap $wid fi fi
Make sure that you change /path/to/urxvtc
to the actual path to the Template:Filename scriptlet that you saved above. We will be using Template:Filename to launch both regular instances of urxvt
and the kuake-like instance.
urxvtq with tabbing
If you want to have tabs in your kuake-like Template:Filename (here called Template:Filename) just replace the third line in your Template:Filename:
wid=$(xdotool search --name urxvtq)
with:
wid=$(xdotool search --name urxvtq | grep -m 1 "" )
To activate the tab support, you can either replace the fifth line of your Template:Filename:
/path/to/urxvtc -name urxvtq -geometry 80x28
with:
/path/to/urxvtc -name urxvtq -pe tabbed -geometry 80x28
or replace this line of your Template:Filename file:
URxvt.perl-ext-common: default,matcher
with
URxvt.perl-ext-common: default,matcher,tabbed
Tab control
Template:Keypress+Template:Keypress: Switch to the tab left of the current one
Template:Keypress+Template:Keypress: Switch to the tab right of the current one
Template:Keypress+Template:Keypress: Create a new tab
You can also use your mouse to switch the tabs by clicking the wished one and create a new tab by clicking on [NEW].\\
To close a tab just enter exit
like you would to normally close a terminal.
Openbox configuration
Now add the following lines to the <applications>
section of Template:Filename:
<application name="urxvtq"> <decor>no</decor> <position force="yes"> <x>center</x> <y>0</y> </position> <desktop>all</desktop> <layer>above</layer> <skip_pager>yes</skip_pager> <skip_taskbar>yes</skip_taskbar> <maximized>Horizontal</maximized> </application>
and add these lines to the <keyboard>
section:
<keybind key="W-t"> <action name="Execute"> <command>/path/to/urxvtc</command> </action> </keybind> <keybind key="W-grave"> <action name="Execute"> <execute>/path/to/urxvtq</execute> </action> </keybind>
Here too you need to change the /path/to/*
lines to point to the scripts that you saved above. Save the file and then reconfigure Openbox. You should now be able to launch regular instances of urxvt with the Windows/Super key + Template:Keypress, and toggle the kuake-like console with the Windows/Super key + Template:Keypress (the grave key also known as the backtick).
Further configuration
The advantage of this configuration over the urxvt kuake Perl script is that Openbox provides more keybinding options such as modifier keys. The kuake script hijacks an entire physical key regardless of any modifier combination. Review the Openbox bindings documentation for the full range or possibilities.
The Openbox per-app settings can be used to further configure the behavior of the kuake-like console (e.g. screen position, layer, etc.). You may need to change the "geometry" parameter in the Template:Filename scriptlet to adjust the height of the console.
Related scripts
- hbekel has posted a generalized version of the Template:Filename here which can be used to toggle any application using Template:Package Official.
- http://www.jukie.net/~bart/blog/20070503013555 - A script for opening URLs with your keyboard instead of mouse with urxvt.
Troubleshooting
Transparency not working after upgrade to V9.09
The rxvt-unicode devs removed compatibility code for a lot of non standard wallpaper setters with this update. Using a non compatible wallpaper setter will break transparency support. Recommended wallpaper setters:
- feh
- hsetroot
- esetroot
To make true transparency work, make sure to comment urxvt*tintColor and urxvt*inheritPixmap.
Remote Hosts
If you are logging into a remote host, you may encounter problems when running text-mode programs under rxvt-unicode. This can be fixed by copying Template:Filename from your local machine to your host at Template:Filename.
Using rxvt-unicode as gmrun terminal
Unlike some other terminals, urxvt expects the arguments to -e
to be given separately, rather than grouped together with quotes. This causes trouble with gmrun, which assumes the opposite behavior. This can be worked around by putting an "eval" in front of gmrun's "Terminal" variable in Template:Filename:
Terminal = eval urxvt TermExec = ${Terminal} -e
(gmrun uses Template:Filename to execute commands, so the "eval" is understood here.) The "eval" has the side-effect of "breaking up" the argument to -e
in the same way that $@
does in Bash, making the command intelligible to urxvt.
My numerical keypad acts weird and generates differing output? (e.g. in vim)
Some Debian GNU/Linux users seem to have this problem, although no specific details were reported so far. It is possible that this is caused by the wrong TERM setting, although the details of whether and how this can happen are unknown, as TERM=rxvt should offer a compatible keymap. See the answer to the previous question, and please report if that helped.
However, using the xmodmap program (Template:Package Official), you can re-map your numpad keys back.
1. Check the keycode that your numerical keypad (numpad) generates using xev program.
- Start xev program
- Press your numpad keys and looks for ... keycode xxx ... in xev output. For example, numpad 1 in my keyboard is also "End" key, that have a 'keycode 87'.
2. Create or modify your xmodmap file, usually Template:Filename, with the content representing your keycode.
- Example of xmodmap file with numpad keycode,
keycode 63 = KP_Multiply keycode 79 = Home KP_7 keycode 80 = Up KP_8 keycode 81 = Prior KP_9 keycode 82 = KP_Subtract keycode 83 = Left KP_4 keycode 84 = KP_5 keycode 85 = Right KP_6 keycode 86 = KP_Add keycode 87 = End KP_1 keycode 88 = Down KP_2 keycode 89 = Next KP_3 keycode 90 = Insert KP_0 keycode 91 = Delete KP_Decimal keycode 112 = Prior keycode 117 = Next
3. Load your xmodmap file at X session start-up.
- For example, in Template:Filename file add,
... xmodmap ~/.Xmodmap ...
External resources
- rxvt-unicode - Official site
- rxvt-unicode FAQ - Official FAQ
- rxvt-unicode Reference - Official manual page
- urxvtperl - Official Perl extension reference
man urxvt