config-bash/rc.d/zz-powerline
2014-05-10 18:58:00 +02:00

27 lines
707 B
Bash

#!/bin/bash
# Powerline
POWERLINE_FILE=/usr/share/powerline/bash/powerline.sh
if [ -f "${POWERLINE_FILE}" -a -z "$SSH_CONNECTION" ]
then
#export URXVT_FONT_NAME="Terminus for Powerline"
export URXVT_FONT_NAME="DejaVu Sans Mono for Powerline"
export URXVT_FONT_SIZE="8"
xrdb -merge <<"EOF"
XTerm*utf8: 1
XTerm*faceName: ${URXVT_FONT_NAME}
XTerm*faceSize: ${URXVT_FONT_SIZE}
UXTerm*utf8: 1
UXTerm*faceName: ${URXVT_FONT_NAME}
UXTerm*faceSize: ${URXVT_FONT_SIZE}
URxvt*font: xft:${URXVT_FONT_NAME}-${URXVT_FONT_SIZE}
EOF
test -f ~/.Xresources.powerline && xrdb -merge ~/.Xresources.powerline
urxvt_set_font "${URXVT_FONT_NAME}-${URXVT_FONT_SIZE}"
source ${POWERLINE_FILE}
fi