LinuxCommandLibrary

urxvt

Run a terminal emulator within X

TLDR

Open a new urxvt window

$ urxvt
copy

Run in a specific directory
$ urxvt -cd [path/to/directory]
copy

Run a command in a new urxvt window
$ urxvt -e [command]
copy

Run a command and keep the window open
$ urxvt --hold -e [command]
copy

Run a command within the sh shell
$ urxvt -e [sh] -c [command]
copy

SYNOPSIS

urxvt [options]

PARAMETERS

-help
    Display help message.

-display
    Specify the X display to connect to.

-geometry
    Specify the size and position of the terminal window.

-title
    Set the title of the terminal window.

-name
    Set the name of the terminal window.

-class
    Set the class of the terminal window.

-utmp
    Record the terminal in utmp.

-depth
    Specify the color depth.

-visual
    Specify the visual ID.

-sync
    Run in synchronous mode (for debugging).

-rv
    Reverse video.

-fg
    Set the foreground color.

-bg
    Set the background color.

+hold
    Do not exit when the child process terminates.

-hold
    Exit when the child process terminates (default).

-pty-fd
    Use the given file descriptor as the pty.

-perl-lib
    Add the given directory to the perl library search path.

DESCRIPTION

urxvt, also known as rxvt-unicode, is a highly customizable and lightweight terminal emulator for the X Window System.

It's designed to be a fast and efficient alternative to traditional terminal emulators like xterm. urxvt focuses on Unicode support and extensibility through Perl scripting.

It supports features like multiple font rendering, transparency, and various encoding options.

Its configuration is primarily done through the ~/.Xresources or ~/.Xdefaults files, offering extensive control over the terminal's appearance and behavior. It's a popular choice for users who want a minimal footprint and the ability to fine-tune their terminal environment to their specific needs.

CAVEATS

Configuration relies heavily on X resources, which can be complex for new users. Requires a good understanding of X configuration.

CONFIGURATION FILES

urxvt is primarily configured through the ~/.Xresources or ~/.Xdefaults files.

These files allow customization of fonts, colors, transparency, and other visual and behavioral aspects of the terminal.

PERL EXTENSIONS

urxvt supports extensions written in Perl, allowing users to add custom functionality and modify the terminal's behavior beyond what's possible through X resources.

These extensions can handle tasks like highlighting URLs, managing tabs, and providing notifications.

HISTORY

rxvt-unicode, now known as urxvt, was developed as a fork of the original rxvt terminal emulator, focusing on enhanced Unicode support. It gained popularity due to its efficiency, customizability, and ability to handle various character encodings, filling a need that many other terminals at the time did not fully address.

SEE ALSO

Copied to clipboard