From 7b191d80e0c7d5eea089bc0f96c83b5a2aeed1da Mon Sep 17 00:00:00 2001 From: Iain Patterson Date: Fri, 11 Apr 2014 11:44:04 +0100 Subject: [PATCH] Use 256-colour urxvt if available. --- .Xdefaults | 34 +++++++++++++++++----------------- .profile.d/variables.bashrc | 6 +++++- 2 files changed, 22 insertions(+), 18 deletions(-) diff --git a/.Xdefaults b/.Xdefaults index 686b18f..8675aa0 100644 --- a/.Xdefaults +++ b/.Xdefaults @@ -26,25 +26,25 @@ Dtterm*dtTermView.marginWidth: 0 ! transparency !rxvt.inheritPixmap: True -urxvt.foreground: white -urxvt.background: [70]black -urxvt.highlightColor: [90]#8080ff -urxvt.depth: 32 -urxvt.borderColor: [70]black -urxvt.scrollBar_right: True -urxvt.font: xft:DejaVu Sans Mono:pixelsize=12,xft:AR PL Uming HK -urxvt.multichar_encoding: noenc -urxvt.title: Penguin terminal +URxvt.foreground: white +URxvt.background: [70]black +URxvt.highlightColor: [90]#8080ff +URxvt.depth: 32 +URxvt.borderColor: [70]black +URxvt.scrollBar_right: True +URxvt.font: xft:DejaVu Sans Mono:pixelsize=12,xft:AR PL Uming HK +URxvt.multichar_encoding: noenc +URxvt.title: Penguin terminal ! Centos5 refuses to read ~/.terminfo and find rxvt-unicode. -urxvt.saveLines: 512 -urxvt.scrollstyle: next -urxvt.secondaryscroll: True -urxvt.answerbackString: urxvt +URxvt.saveLines: 512 +URxvt.scrollstyle: next +URxvt.secondaryscroll: True +URxvt.answerbackString: urxvt ! Change font size. -urxvt.perl-lib: .urxvt -urxvt.perl-ext: font -urxvt.keysym.M-minus: perl:font:smaller -urxvt.keysym.M-equal: perl:font:bigger +URxvt.perl-lib: .urxvt +URxvt.perl-ext: font +URxvt.keysym.M-minus: perl:font:smaller +URxvt.keysym.M-equal: perl:font:bigger ! transparency !rxvt*inheritPixmap: True diff --git a/.profile.d/variables.bashrc b/.profile.d/variables.bashrc index e13ecae..3a07542 100644 --- a/.profile.d/variables.bashrc +++ b/.profile.d/variables.bashrc @@ -3,6 +3,10 @@ export SSHTERM_TITLE=-title export SSHTERM_EXEC=-e unset LANG unset XMODIFIERS #:-( -export SSHTERM="urxvt" +if find_working urxvt256c; then + export SSHTERM=urxvt256c +else + export SSHTERM=urxvt +fi export SSHTERM_TITLE="-title" export SSHTERM_EXEC="-e" -- 2.7.4