mahbinstuff/amigaterm2.sh

35 lines
1.3 KiB
Bash
Raw Normal View History

#!/bin/sh
2012-11-18 18:49:48 +02:00
# help shit
if [ "$1" = '-h' ]; then
echo Help: "$0" fontsize tintcolor fadepercent fadecolor cursorcolor extrashit
2012-11-18 18:49:48 +02:00
else
#TP="TopazPlus a600a1200a4000 for Powerline-$1"
2017-05-27 08:29:47 +03:00
TP="xft:Topaza500a1000a2000 NF-${1}:antialias=false,xft:Symbola-${1}:antialias=false"
2016-07-12 14:33:09 +03: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}"\" \
-rv -tr -sb -sr -g 80x24 +is -tn \""xterm-256color"\" "$@"
2012-11-18 18:49:48 +02:00
2016-07-12 14:33:09 +03:00
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
2012-11-18 18:49:48 +02:00
urxvtd -f -o
2016-07-12 14:33:09 +03:00
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" "$@"
2012-11-18 18:49:48 +02:00
fi
fi