2015-11-12 21:59:21 +02:00
|
|
|
#!/bin/zsh
|
2012-11-18 18:49:48 +02:00
|
|
|
# help shit
|
|
|
|
|
if [[ $1 == '-h' ]]; then
|
|
|
|
|
echo Help: $0 fontsize tintcolor fadepercent fadecolor cursorcolor extrashit
|
|
|
|
|
else
|
2015-11-12 21:59:21 +02:00
|
|
|
#TP="TopazPlus a600a1200a4000 for Powerline-$1"
|
|
|
|
|
TP="xft:TopazPlus a600a1200a4000 for Powerline-$1:antialias=false,xft:Symbola-$1:antialias=false"
|
2015-01-08 11:56:50 +02:00
|
|
|
PN="xft:P0T\-NOoDLE for Powerline-$1"
|
|
|
|
|
MS="xft:mOsOul for Powerline-$1"
|
|
|
|
|
MK="xft:MicroKnightPlus for Powerline-$1"
|
2012-11-18 18:49:48 +02:00
|
|
|
TINTCOLOR=$2
|
|
|
|
|
FADEPERCENT=$3
|
|
|
|
|
FADECOLOR=$4
|
|
|
|
|
CURSORCOLOR=$5
|
|
|
|
|
# get rid of these arguments so we can do the rest at the end
|
|
|
|
|
shift 5
|
|
|
|
|
echo urxvtc -fn "$TP" -fi "$PN" -fb "$MS" -fbi "$MK" \
|
|
|
|
|
-tint "$TINTCOLOR" -fade "$FADEPERCENT" \
|
|
|
|
|
-fadecolor "$FADECOLOR" -cr "$CURSORCOLOR" \
|
2013-08-24 14:37:54 +03:00
|
|
|
-rv -tr -sb -sr -g 80x24 +is -tn "xterm-256color" $@
|
2012-11-18 18:49:48 +02:00
|
|
|
|
|
|
|
|
urxvtc -fn "$TP" -fi "$PN" -fb "$MS" -fbi "$MK" \
|
|
|
|
|
-tint "$TINTCOLOR" -fade "$FADEPERCENT" \
|
|
|
|
|
-fadecolor "$FADECOLOR" -cr "$CURSORCOLOR" \
|
2013-08-24 14:37:54 +03:00
|
|
|
-rv -tr -sb -sr -g 80x24 +is -tn "xterm-256color" $@
|
2012-11-18 18:49:48 +02:00
|
|
|
|
|
|
|
|
if [[ $? != 0 ]]; then
|
|
|
|
|
urxvtd -f -o
|
|
|
|
|
urxvtc -fn "$TP" -fi "$PN" -fb "$MS" -fbi "$MK" \
|
|
|
|
|
-tint "$TINTCOLOR" -fade "$FADEPERCENT" \
|
|
|
|
|
-fadecolor "$FADECOLOR" -cr "$CURSORCOLOR" \
|
2013-08-24 14:37:54 +03:00
|
|
|
-rv -tr -sb -sr -g 80x24 +is -tn "xterm-256color" $@
|
2012-11-18 18:49:48 +02:00
|
|
|
fi
|
|
|
|
|
fi
|