2018-07-09 16:20:40 +02:00
|
|
|
#!/usr/bin/env bash
|
2022-10-07 13:55:35 +02:00
|
|
|
# Nerd Fonts Version: 2.3.0-RC
|
2018-03-03 21:14:22 +02:00
|
|
|
# Script Version: 1.0.0
|
2017-04-08 23:33:10 +02:00
|
|
|
|
|
|
|
text1='Testing'
|
|
|
|
text2='Nerd Fonts'
|
|
|
|
|
|
|
|
leftSymbolsCodes=('E0B0' 'E0B4' 'E0B8' 'E0BC' 'E0C0' 'E0C4' 'E0C6' 'E0C8' 'E0CC' 'E0CE' 'E0CF' 'E0CF' 'E0D1' 'E0D2')
|
|
|
|
rightSymbolsCodes=('E0B2' 'E0B6' 'E0BA' 'E0BE' 'E0C2' 'E0C5' 'E0C7' 'E0C8' 'E0CC' 'E0CE' 'E0CF' 'E0CF' 'E0D1' 'E0D4')
|
|
|
|
|
2018-01-13 05:20:52 +02:00
|
|
|
# shellcheck disable=SC2034
|
|
|
|
# don't check unused vars we might want to use them later on
|
2017-04-08 23:33:10 +02:00
|
|
|
colorReset='\033[0m'
|
|
|
|
colorBgWhite='\033[107m'
|
2018-01-13 05:20:52 +02:00
|
|
|
# shellcheck disable=SC2034
|
|
|
|
# don't check unused vars we might want to use them later on
|
2017-04-08 23:33:10 +02:00
|
|
|
colorBgLightBlue='\033[104m' # light blue, bright green is 102
|
|
|
|
colorBgBlack='\033[40m'
|
|
|
|
colorBg1='\033[100m'
|
|
|
|
colorBg2=$colorBgBlack
|
2018-01-13 05:20:52 +02:00
|
|
|
# shellcheck disable=SC2034
|
|
|
|
# don't check unused vars we might want to use them later on
|
2017-04-08 23:33:10 +02:00
|
|
|
colorFgLightBlue='\033[94m'
|
|
|
|
colorFgLightGray='\033[90m'
|
2018-01-13 05:20:52 +02:00
|
|
|
# shellcheck disable=SC2034
|
|
|
|
# don't check unused vars we might want to use them later on
|
2017-04-08 23:33:10 +02:00
|
|
|
colorFgLightYellow='\033[93m'
|
|
|
|
colorFgBlack='\033[30m'
|
|
|
|
colorFg1=$colorFgBlack
|
|
|
|
colorFg2=$colorFgLightGray
|
|
|
|
colorBgDefault='\033[49m'
|
|
|
|
|
|
|
|
echo -e "$colorReset Nerd Fonts :: Testing Powerline Symbol size and alignment"
|
|
|
|
|
|
|
|
for i in "${!leftSymbolsCodes[@]}"; do
|
2018-01-13 05:20:52 +02:00
|
|
|
symbol="\\u${leftSymbolsCodes[$i]}"
|
|
|
|
symbol2="\\u${rightSymbolsCodes[$i]}"
|
2017-04-08 23:33:10 +02:00
|
|
|
code="${leftSymbolsCodes[$i]}"
|
|
|
|
code2="${rightSymbolsCodes[$i]}"
|
|
|
|
|
|
|
|
if [ "$code" = "$code2" ]; then
|
2018-01-13 05:20:52 +02:00
|
|
|
symbol2="\\u${rightSymbolsCodes[0]}"
|
2017-04-08 23:33:10 +02:00
|
|
|
code2='None'
|
|
|
|
fi
|
|
|
|
|
2018-01-13 05:20:52 +02:00
|
|
|
echo -e "$colorBg1$colorFg1$text1 $code $colorFg2$colorBg2$symbol $text2 $colorFg1$colorBgDefault$symbol -- $colorFg1$colorBgDefault$symbol2$colorFg2$colorBg2 $text2 $symbol2$colorBg1$colorFg1 $code2 $colorReset$colorBgWhite\\n$colorReset"
|
2017-04-08 23:33:10 +02:00
|
|
|
|
|
|
|
done
|
|
|
|
|
2018-01-13 05:20:52 +02:00
|
|
|
printf "\\n"
|