Skip to content

Latest commit

 

History

History
168 lines (128 loc) · 4.29 KB

Xresources.org

File metadata and controls

168 lines (128 loc) · 4.29 KB

X resources

XFT settings.

Necessary to improve the xft fonts.

Xft.dpi: 96
Xft.antialias: true
Xft.rgba: rgb
Xft.hinting: true
Xft.hintstyle: hintfull
Xft.autohint: 0
Xft.lcdfilter: lcddefault

URxvt Customization and Optimization.

Start Urxvt as a login shell.

URxvt*loginShell: true

Enable 256 color support.

I use gnu-screen so this is helpful.

URxvt*termName: screen-256color

Scrolling.

Someone who really need scroll bars?

URxvt*scrollBar: false
URxvt*scrollBar_right: false
URxvt*scrollBar_floating: false

Stop automatic scrolling when going back in the buffer.

  1. do not scroll to bottom when tty receives output.
  2. scroll in relation to buffer (with mouse scroll or Shift+Page Up)
  3. scroll back to the bottom on keypress.
URxvt*scrollTtyOutput: false
URxvt*scrollWithBuffer: true
URxvt*scrollTtyKeypress: true

Perl extensions

Enable the extensions features for Urxvt.

URxvt.perl-ext-common: default,clipboard,url-select,font-size

Url-select

I want to select and open URLs in my browser (Conkeror) without using the mouse, by this we installed urxvt-perls from Arch/community repo.

URxvt.url-select.launcher:  conkeror
URxvt.url-select.underline: true
URxvt.keysym.C-i:           perl:url-select:select_next

Font size

Changing the font size on the fly with keyboard shortcuts. To use this you have to install urxvt-font-size-git from Archlinux/Aur.

URxvt.keysym.C-equal : perl:font-size:increase
URxvt.keysym.C-minus : perl:font-size:decrease

Clipboard

Enable Copy/Pasting from Urxvt with ^c ^v . To use this you have to install urxvt-perls from Arch/community repo.

URxvt.keysym.C-c: perl:clipboard:copy
URxvt.keysym.C-v: perl:clipboard:paste

Disable Keycap Picture insert mode

Disable all the urxvt functionalities (input of ☺ unicodes etc..) associated with the ctrl+shift keys.

URxvt.iso14755: false
URxvt.iso14755_52: false

Font Appearance.

I use Anonymous Pro as my font choice.

URxvt*font:                 xft:Anonymous Pro:regular:size=13
URxvt*imFont:               xft:Anonymous Pro:regular:size=13
URxvt*boldFont:             xft:Anonymous Pro:bold:size=13
URxvt*italicFont:           xft:Anonymous Pro:italic:size=13
URxvt*boldItalicFont:       xft:Anonymous Pro:bold:italic:size=13

Zenburn color-scheme.

The Color scheme that Changed the World!

URxvt*background: #3F3F3F
URxvt*foreground: #DCDCCC
URxvt*cursorColor: #DCDCCC
URxvt*cursorColor2: #3F3F3F
URxvt*colorUL: #8CD0D3
URxvt*underlineColor: #F0DFAF
URxvt*colorBD: #E0CF9F
URxvt*colorIT: #656555

!! black dark/light
URxvt*color0: #3F3F3F
URxvt*color8: #5F5F5F
!! red dark/light
URxvt*color1: #BC8383
URxvt*color9: #CC9393
!! green dark/light
URxvt*color2: #5F7F5F
URxvt*color10: #7F9F7F
!! yellow dark/light
URxvt*color3: #E0CF9F
URxvt*color11: #F0DFAF
!! blue dark/light
URxvt*color4: #7CB8BB
URxvt*color12: #8CD0D3
!! magenta dark/light
URxvt*color5: #DC8CC3
URxvt*color13: #DC8CC3
!! cyan dark/light
URxvt*color6: #93E0E3
URxvt*color14: #93E0E3
!! white dark/light
URxvt*color7: #DCDCCC
URxvt*color15: #FFFFFF

XMESSAGE

Configure the appearance of xmessage, I like red background and yellow foreground.

Xmessage*font: -*-terminus-medium-r-*-*-14-*-*-*-*-*-iso10646-1
Xmessage*background: red
Xmessage*foreground: yellow
Xmessage*form.*.shapeStyle: rectangle
Xmessage*Scrollbar.width: 1
Xmessage*Scrollbar.borderWidth: 0
Xmessage*Buttons: OK
Xmessage*defaultButton: OK