From 68a41f157f2fc6553b52e7e33ac5bac144d55f16 Mon Sep 17 00:00:00 2001 From: Xavier Logerais Date: Wed, 9 Apr 2014 18:20:49 +0200 Subject: [PATCH] Fix rc.d/zz-powerline --- rc.d/zz-powerline | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/rc.d/zz-powerline b/rc.d/zz-powerline index 3471fea..b4a1e3c 100644 --- a/rc.d/zz-powerline +++ b/rc.d/zz-powerline @@ -1,9 +1,25 @@ #!/bin/bash # Powerline -if [ -f /usr/lib64/python3.2/site-packages/powerline/bindings/bash/powerline.sh ] +POWERLINE_FILE=/usr/share/powerline/bash/powerline.sh + +#export URXVT_FONT_NAME="Terminus for Powerline" +export URXVT_FONT_NAME="DejaVu Sans Mono for Powerline" +export URXVT_FONT_SIZE="8" + +if [ -f "${POWERLINE_FILE}" ] then - #urxvt_set_font "Terminus for Powerline-12" - urxvt_set_font "DejaVu Sans Mono for Powerline-10" - source /usr/lib64/python3.2/site-packages/powerline/bindings/bash/powerline.sh + + 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 + xrdb -merge ~/.Xresources.powerline + urxvt_set_font "${URXVT_FONT_NAME}-${URXVT_FONT_SIZE}" + source ${POWERLINE_FILE} fi