all repos — dotfiles-extra @ d8e4339a351e8556ffe76d3c79be8c8fafa9cd66

extra configs that may be extraneous and/or may be platform specific

bin/x1phosura

 1
 2
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
#!/bin/sh

x1phosura="
                                    
             ##########             
           ##          ##           
         ##  ##      ##  ##         
         ##              ##         
         ##  ##      ##  ##         
         ##  ##########  ##         
         ####          ####         
         ##  ##  ##  ##  ##         
               ##  ##               
                 ##                 
                 ##                 
                 ##                 
                 ##                 
                 ##                 
                 ##                 
                                    
"

exists_truecolor='true'                 # TODO: detect if have truecolor support

# vvv- original:
#fg_purple_true="\x1b[38;2;156;39;176m"  # foreground is RGB 156,39,176 (#9C27B0)
fg_purple_true="\x1b[38;2;187;34;187m"  # foreground is RGB 187,34,187 (#bb22bb)
bg_black_true="\x1b[48;2;0;0;0m"        # background is black
fg_purple_16="\033[01;35m"              # foreground is boring bold purple
ansi_bold="\033[1m"
ansi_end="\x1b[0m\n"                    # resets/clears ANSI colors to default

if [ "$exists_truecolor" = "true" ]; then
    #output="$ansi_bold$fg_purple_true$bg_black_true$x1phosura$ansi_end"
    output="$ansi_bold$fg_purple_true$x1phosura$ansi_end"
else
    # If '24-bit' true color not supported, revert to classic '4-bit' 16 colors
    # I'm too lazy to figure out what this would be in 256 colors
    output="$fg_purple_16$x1phosura$ansi_end"
fi

printf "$output"