mirror of
https://github.com/HerrCraziDev/dotfiles.git
synced 2025-12-15 18:46:15 +01:00
33 lines
523 B
Bash
Executable File
33 lines
523 B
Bash
Executable File
#!/bin/bash
|
|
|
|
cnormal='colour255'
|
|
cprefix='colour238'
|
|
|
|
bnormal='colour24'
|
|
bprefix='colour172'
|
|
normal='●'
|
|
prefix='▲'
|
|
|
|
if [ $1 -eq 1 ]; then
|
|
fore=$cprefix
|
|
back=$bprefix
|
|
sym=$prefix
|
|
text="#[bold]⌥#[unbold]"
|
|
else
|
|
fore=$cnormal
|
|
back=$bnormal
|
|
sym=$normal
|
|
text="#S"
|
|
|
|
fi
|
|
|
|
if [ $(($(date +%s) % 2)) -eq 0 ]; then
|
|
printf "#[fg=$fore,bg=$back] $sym #[fg=$fore]$text #[fg=$back]"
|
|
else
|
|
printf "#[fg=$back,bg=$back] $sym #[fg=$fore]$text #[fg=$back]"
|
|
fi
|
|
|
|
|
|
#printf "#[fg=white,bg=red] $(date +%N) $@"
|
|
#printf "#[fg=white]"
|