Some changes and more scripts.

This commit is contained in:
Howland Owl 2016-07-12 14:33:09 +03:00
parent ed35a29f4f
commit 1b4a994236
7 changed files with 583 additions and 15 deletions

View file

@ -4,31 +4,31 @@ if [[ $1 == '-h' ]]; then
echo Help: $0 fontsize tintcolor fadepercent fadecolor cursorcolor extrashit
else
#TP="TopazPlus a600a1200a4000 for Powerline-$1"
TP="xft:TopazPlus a600a1200a4000 for Powerline-$1:antialias=false,xft:Symbola-$1:antialias=false"
PN="xft:P0T\-NOoDLE for Powerline-$1"
MS="xft:mOsOul for Powerline-$1"
MK="xft:MicroKnightPlus for Powerline-$1"
TP="xft:TopazPlus a500a1000a2000 for Powerline-${1}:antialias=false,xft:Symbola-${1}:antialias=false"
PN="xft:P0T\-NOoDLE for Powerline-${1}"
MS="xft:mOsOul for Powerline-${1}"
MK="xft:MicroKnightPlus for Powerline-${1}"
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" \
-rv -tr -sb -sr -g 80x24 +is -tn "xterm-256color" $@
echo urxvtc -fn \"${TP}\" -fi "${PN}" -fb \"${MS}\" -fbi \"${MK}\" \
-tint \"${TINTCOLOR}\" -fade \"${FADEPERCENT}\" \
-fadecolor \"${FADECOLOR}\" -cr \"${CURSORCOLOR}\" \
-rv -tr -sb -sr -g 80x24 +is -tn \"xterm-256color\" $@
urxvtc -fn "$TP" -fi "$PN" -fb "$MS" -fbi "$MK" \
-tint "$TINTCOLOR" -fade "$FADEPERCENT" \
-fadecolor "$FADECOLOR" -cr "$CURSORCOLOR" \
urxvtc -fn "${TP}" -fi "${PN}" -fb "${MS}" -fbi "${MK}" \
-tint "${TINTCOLOR}" -fade "${FADEPERCENT}" \
-fadecolor "${FADECOLOR}" -cr "${CURSORCOLOR}" \
-rv -tr -sb -sr -g 80x24 +is -tn "xterm-256color" $@
if [[ $? != 0 ]]; then
urxvtd -f -o
urxvtc -fn "$TP" -fi "$PN" -fb "$MS" -fbi "$MK" \
-tint "$TINTCOLOR" -fade "$FADEPERCENT" \
-fadecolor "$FADECOLOR" -cr "$CURSORCOLOR" \
urxvtc -fn "${TP}" -fi "${PN}" -fb "${MS}" -fbi "${MK}" \
-tint "${TINTCOLOR}" -fade "${FADEPERCENT}" \
-fadecolor "${FADECOLOR}" -cr "${CURSORCOLOR}" \
-rv -tr -sb -sr -g 80x24 +is -tn "xterm-256color" $@
fi
fi