LCARS theme

stolen from a Federation Shuttle which had gotten it's time coordinates wrong.

As you can see Federational technology in the 23rd century is pretty advanced:

#!/bin/sh

## Information about the Author

THEME_AUTHOR="Lt Commander Montgomery Scott''

THEME_NAME=''Constitution Mainframe LCARS''

## load dynamic modules

## color translates color names to ansi escape codes

needmod color

## themecompat eliminates the need to rewrite the prompt for different shells

needmod themecompat

## fillx creates an array $FILLX with specified characters

needmod fillx

TITLE=LCARS

## Produce a random colorset

case "$RANDOM" in

*3|*4|*5)

## original

ANSICOLOR_YELLOW=bd7835

ANSICOLOR_BLUE=7f80cf

ANSICOLOR_RED=a15353

ANSICOLOR_CYAN=a27ea2

;;

*0|*1|*2)

ANSICOLOR_BLUE=bd7835

ANSICOLOR_YELLOW=a27ea2

ANSICOLOR_RED=a15353

ANSICOLOR_CYAN=7f80cf

;;

*6|*7)

ANSICOLOR_YELLOW=bd7835

ANSICOLOR_BLUE=a15353

ANSICOLOR_RED=a27ea2

ANSICOLOR_CYAN=7f80cf

;;

*8|*9)

ANSICOLOR_YELLOW=7f80cf

ANSICOLOR_BLUE=a27ea2

ANSICOLOR_RED=a15353

ANSICOLOR_CYAN=bd7835

esac

## save colors as variables so the theme loads faster

FGBLUE="`color fgblue`"

FGYELLOW="`color fgyellow`"

FGCYAN="`color fgcyan`"

NORMAL="`color`"

FGRED="`color fgred`"

## creates $FILLX

fillx ß 31

## the prompt

PS1="\

$FGBLUE"ÜÛÛÛÛÛ"$FILLX$NORMAL $FGYELLOW"ßßßßßßßßßßßßßßßßßßßßßßßß"

$FGCYAN\

"ÜÜÜÜÜÜ"$NORMAL        Logged in: $u

$FGYELLOW"ÜÜÜÜÜÜ"$NORMAL        Stardate:   "'`date +%s`'"

$FGBLUE\

"ÜÜÜÜÜÜ"

 ß$FGBLUE"ßßßßßßßßßß" "$FGRED"ßßßßßßßßßßß$NORMAL "

## predefined size

SIZE_X=110

SIZE_Y=30

## yellow text

FGCOLOR=bd7835

## and black background

BGCOLOR=000000

## no cursor

CURSORCOLOR=000000

## a nice font

XFONT=scrub.pcf.gz

## no transparency

BGTRANSPARENCY=0

## a matching icon

EICON=lcars-2.jpg



Thomas Eriksson 2004-06-23