bourneify; patch quotes up for echo; fix an unquoted bit.
- now is copy/pasteable for repetition
This commit is contained in:
parent
a7b3cb17ac
commit
31d3300f45
1 changed files with 11 additions and 11 deletions
|
|
@ -1,7 +1,7 @@
|
|||
#!/bin/zsh
|
||||
#!/bin/sh
|
||||
# help shit
|
||||
if [[ $1 == '-h' ]]; then
|
||||
echo Help: $0 fontsize tintcolor fadepercent fadecolor cursorcolor extrashit
|
||||
if [ "$1" = '-h' ]; then
|
||||
echo Help: "$0" fontsize tintcolor fadepercent fadecolor cursorcolor extrashit
|
||||
else
|
||||
#TP="TopazPlus a600a1200a4000 for Powerline-$1"
|
||||
TP="xft:Topaza500a1000a2000 NF-${1}:antialias=false,xft:Symbola-${1}:antialias=false"
|
||||
|
|
@ -14,21 +14,21 @@ else
|
|||
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}" \
|
||||
-rv -tr -sb -sr -g 80x24 +is -tn "xterm-256color" $@
|
||||
|
||||
if [[ $? != 0 ]]; then
|
||||
-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}" \
|
||||
-rv -tr -sb -sr -g 80x24 +is -tn "xterm-256color" $@
|
||||
-rv -tr -sb -sr -g 80x24 +is -tn "xterm-256color" "$@"
|
||||
fi
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue