├── README.md ├── color-scripts ├── alpha ├── arch ├── bars ├── blocks1 ├── blocks2 ├── bloks ├── colorbars ├── colortest ├── colortest-slim ├── colorview ├── colorwheel ├── crowns ├── crunch ├── crunchbang ├── crunchbang-mini ├── darthvader ├── dna ├── dotx ├── elfman ├── faces ├── fade ├── ghosts ├── guns ├── hex ├── hex-block ├── illumina ├── jangofett ├── monster ├── mouseface ├── mouseface2 ├── pacman ├── panes ├── pinguco ├── pipes1 ├── pipes2 ├── pipes2-slim ├── pukeskull ├── rails ├── rally-x ├── rupees ├── space-invaders ├── spectrum ├── square ├── tanks ├── thebat ├── thebat2 ├── tiefighter1 ├── tiefighter1-no-invo ├── tiefighter1row ├── tiefighter2 ├── unowns.py └── zwaves ├── preview ├── color-scripts-preview │ ├── alpha.png │ ├── arch.png │ ├── bars.png │ ├── blocks1.png │ ├── blocks2.png │ ├── bloks.png │ ├── colorbars.png │ ├── colortest-slim.png │ ├── colortest.png │ ├── colorview.png │ ├── colorwheel.png │ ├── crowns.png │ ├── crunch.png │ ├── crunchbang-mini.png │ ├── crunchbang.png │ ├── darthvader.png │ ├── dna.png │ ├── dotx.png │ ├── elfman.png │ ├── faces.png │ ├── fade.png │ ├── ghosts.png │ ├── guns.png │ ├── hex-block.png │ ├── hex.png │ ├── illumina.png │ ├── jangofett.png │ ├── monster.png │ ├── mouseface.png │ ├── mouseface2.png │ ├── pacman.png │ ├── panes.png │ ├── pinguco.png │ ├── pipes1.png │ ├── pipes2-slim.png │ ├── pipes2.png │ ├── pukeskull.png │ ├── rails.png │ ├── rally-X.png │ ├── rupees.png │ ├── space-invaders.png │ ├── spectrum.png │ ├── square.png │ ├── tanks.png │ ├── thebat.png │ ├── thebat2.png │ ├── tiefighter1-no-invo.png │ ├── tiefighter1.png │ ├── tiefighter1row.png │ ├── tiefighter2.png │ ├── unowns.png │ └── zwaves.png └── test-color-support-preview │ ├── ansi.png │ ├── color-support1.png │ ├── color-support2.png │ └── print-colors.png └── test-color-support ├── README.md ├── ansi ├── color-support1.pl ├── color-support2 └── print-colors.py /README.md: -------------------------------------------------------------------------------- 1 | # Color-Scripts 2 | 3 | Color scripts created by various people that was scattered around the web now in one place. 4 | 5 | You will find screenshots in the directory named `preview` 6 | 7 | All the scripts have been baptized with `chmod +x` 8 | 9 | ![Screenshot](http://i.imgur.com/tyA72c7.png) 10 | 11 | ## Dependencies 12 | 13 | - `bash` 14 | - `python 2 or 3` (required for `print-colors.py` and `unowns.py`) 15 | - `perl` (required for `color-support1.pl`) 16 | 17 | ## Download 18 | 19 | ### Using Git 20 | 21 | Clone this repository: 22 | ```sh 23 | git clone https://github.com/stark/color-scripts 24 | ``` 25 | 26 | ### Without Git 27 | 28 | [Download tarball](https://git.io/colr.tar.gz) 29 | ``` 30 | wget git.io/colr.tar.gz 31 | ``` 32 | 33 | [Download zipball](https://git.io/colr.zip) 34 | ``` 35 | wget git.io/colr.zip 36 | ``` 37 | 38 | ## Contributions 39 | 40 | If you have created or found a color script which is not present in this repository then **Feel Free** to make a [Pull Request](https://github.com/stark/Color-Scripts/pulls) :-) 41 | 42 | You can also share your script via a pastebin of your choice and pasting the link in a [New Issue](https://github.com/stark/Color-Scripts/issues). 43 | -------------------------------------------------------------------------------- /color-scripts/alpha: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # ANSI Color -- use these variables to easily have different color 4 | # and format output. Make sure to output the reset sequence after 5 | # colors (f = foreground, b = background), and use the 'off' 6 | # feature for anything you turn on. 7 | # Author: Ivo 8 | # Source: http://crunchbang.org/forums/viewtopic.php?pid=134749#p134749 9 | 10 | initializeANSI() 11 | { 12 | esc="" 13 | 14 | blackf="${esc}[30m"; redf="${esc}[31m"; greenf="${esc}[32m" 15 | yellowf="${esc}[33m" bluef="${esc}[34m"; purplef="${esc}[35m" 16 | cyanf="${esc}[36m"; whitef="${esc}[37m" whitef="${esc}[37m" 17 | 18 | blackb="${esc}[40m"; redb="${esc}[41m"; greenb="${esc}[42m" 19 | yellowb="${esc}[43m" blueb="${esc}[44m"; purpleb="${esc}[45m" 20 | cyanb="${esc}[46m"; whiteb="${esc}[47m" 21 | 22 | boldon="${esc}[1m"; boldoff="${esc}[22m" 23 | italicson="${esc}[3m"; italicsoff="${esc}[23m" 24 | ulon="${esc}[4m"; uloff="${esc}[24m" 25 | invon="${esc}[7m"; invoff="${esc}[27m" 26 | 27 | reset="${esc}[0m" 28 | } 29 | 30 | # note in this first use that switching colors doesn't require a reset 31 | # first - the new color overrides the old one. 32 | 33 | initializeANSI 34 | 35 | cat << EOF 36 | 37 | ${boldon}${redf} ██████ ${reset} ${boldon}${greenf}██████ ${reset}${boldon}${yellowf} ██████${reset} ${boldon}${bluef}██████ ${reset} ${boldon}${purplef} ██████${reset} ${boldon}${cyanf} ███████${reset} 38 | ${boldon}${redf} ████████${reset} ${boldon}${greenf}██ ██ ${reset}${boldon}${yellowf}██ ${reset} ${boldon}${bluef}██ ██${reset} ${boldon}${purplef}██████ ${reset} ${boldon}${cyanf}█████████${reset} 39 | ${redf} ██ ████${reset} ${greenf}██ ████ ${reset}${yellowf}████ ${reset} ${bluef}████ ██${reset} ${purplef}████ ${reset} ${cyanf}█████ ${reset} 40 | ${redf} ██ ██${reset} ${greenf}██████ ${reset}${yellowf}████████${reset} ${bluef}██████ ${reset} ${purplef}████████${reset} ${cyanf}██ ${reset} 41 | 42 | EOF 43 | -------------------------------------------------------------------------------- /color-scripts/arch: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # Author: Ivo 4 | # Source: http://crunchbang.org/forums/viewtopic.php?pid=237794#p237794 5 | # ANSI Color -- use these variables to easily have different color 6 | # and format output. Make sure to output the reset sequence after 7 | # colors (f = foreground, b = background), and use the 'off' 8 | # feature for anything you turn on. 9 | 10 | initializeANSI() 11 | { 12 | esc="" 13 | 14 | redf="${esc}[31m"; greenf="${esc}[32m" 15 | yellowf="${esc}[33m" bluef="${esc}[34m"; 16 | cyanf="${esc}[36m"; purplef="${esc}[35m" 17 | 18 | boldon="${esc}[1m"; 19 | reset="${esc}[0m" 20 | } 21 | 22 | # note in this first use that switching colors doesn't require a reset 23 | # first - the new color overrides the old one. 24 | 25 | initializeANSI 26 | 27 | cat << EOF 28 | 29 | ${boldon}${redf} ■ ${boldon}${greenf} ■ ${boldon}${yellowf} ■ ${boldon}${bluef} ■ ${boldon}${purplef} ■ ${boldon}${cyanf} ■ ${reset} 30 | ${boldon}${redf} ■■■ ${boldon}${greenf} ■■■ ${boldon}${yellowf} ■■■ ${boldon}${bluef} ■■■ ${boldon}${purplef} ■■■ ${boldon}${cyanf} ■■■ ${reset} 31 | ${boldon}${redf} ■■■■■ ${boldon}${greenf} ■■■■■ ${boldon}${yellowf} ■■■■■ ${boldon}${bluef} ■■■■■ ${boldon}${purplef} ■■■■■ ${boldon}${cyanf} ■■■■■ ${reset} 32 | ${redf} ■( )■ ${greenf} ■( )■ ${yellowf} ■( )■ ${bluef} ■( )■ ${purplef} ■( )■ ${cyanf} ■( )■ ${reset} 33 | ${redf} ■■■■ ■■■■ ${greenf} ■■■■ ■■■■ ${yellowf} ■■■■ ■■■■ ${bluef} ■■■■ ■■■■ ${purplef} ■■■■ ■■■■ ${cyanf} ■■■■ ■■■■ ${reset} 34 | ${redf} ■■ ■■ ${greenf} ■■ ■■ ${yellowf} ■■ ■■ ${bluef} ■■ ■■ ${purplef} ■■ ■■ ${cyanf} ■■ ■■ ${reset} 35 | 36 | EOF 37 | -------------------------------------------------------------------------------- /color-scripts/bars: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | # ANSI color scheme script by pfh 4 | # Source: http://crunchbang.org/forums/viewtopic.php?pid=139126#p139126 5 | # Initializing mod by lolilolicon from Archlinux 6 | # 7 | 8 | f=3 b=4 9 | for j in f b; do 10 | for i in {0..7}; do 11 | printf -v $j$i %b "\e[${!j}${i}m" 12 | done 13 | done 14 | bld=$'\e[1m' 15 | rst=$'\e[0m' 16 | inv=$'\e[7m' 17 | 18 | cat << EOF 19 | 20 | $f1▬▬▬▬▬ $f2▬▬▬▬▬ $f3▬▬▬▬▬ $f4▬▬▬▬▬ $f5▬▬▬▬▬ $f6▬▬▬▬▬ 21 | $bld$f1▬▬▬▬▬ $f2▬▬▬▬▬ $f3▬▬▬▬▬ $f4▬▬▬▬▬ $f5▬▬▬▬▬ $f6▬▬▬▬▬ 22 | $rst 23 | EOF 24 | -------------------------------------------------------------------------------- /color-scripts/blocks1: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | pcs() { for i in {0..7}; do echo -en "\e[${1}$((30+$i))m \u2588\u2588 \e[0m"; done; } 3 | printf "\n%s\n%s\n\n" "$(pcs)" "$(pcs '1;')" 4 | -------------------------------------------------------------------------------- /color-scripts/blocks2: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # ANSI Color -- use these variables to easily have different color 4 | # and format output. Make sure to output the reset sequence after 5 | # colors (f = foreground, b = background), and use the 'off' 6 | # feature for anything you turn on. 7 | # Author: ed209 8 | # Source: http://crunchbang.org/forums/viewtopic.php?pid=295676#p295676 9 | initializeANSI() 10 | { 11 | esc="" 12 | 13 | blackf="${esc}[30m"; redf="${esc}[31m"; greenf="${esc}[32m" 14 | yellowf="${esc}[33m" bluef="${esc}[34m"; purplef="${esc}[35m" 15 | cyanf="${esc}[36m"; whitef="${esc}[37m" 16 | 17 | blackb="${esc}[40m"; redb="${esc}[41m"; greenb="${esc}[42m" 18 | yellowb="${esc}[43m" blueb="${esc}[44m"; purpleb="${esc}[45m" 19 | cyanb="${esc}[46m"; whiteb="${esc}[47m" 20 | 21 | boldon="${esc}[1m"; boldoff="${esc}[22m" 22 | italicson="${esc}[3m"; italicsoff="${esc}[23m" 23 | ulon="${esc}[4m"; uloff="${esc}[24m" 24 | invon="${esc}[7m"; invoff="${esc}[27m" 25 | 26 | reset="${esc}[0m" 27 | } 28 | 29 | # note in this first use that switching colors doesn't require a reset 30 | # first - the new color overrides the old one. ■ ■ ▓ ■ ■ ■ ■ ■ 31 | 32 | 33 | initializeANSI 34 | 35 | cat << EOF 36 | 37 | ${redf}■■■■${reset}${boldon}${redf}■■${reset} ${greenf}■■■■${reset}${boldon}${greenf}■■${reset} ${yellowf}■■■■${reset}${boldon}${yellowf}■■${reset} ${bluef}■■■■${reset}${boldon}${purplef}■■${reset} ${purplef}■■■■${reset}${boldon}${bluef}■■${reset} ${cyanf}■■■■${reset}${boldon}${cyanf}■■${reset} 38 | ${redf}■■${reset}${boldon}${greenf}■■${reset}${boldon}${redf}■■${reset} ${greenf}■■${reset}${boldon}${yellowf}■■${reset}${boldon}${greenf}■■${reset} ${yellowf}■■${reset}${boldon}${bluef}■■${reset}${boldon}${yellowf}■■${reset} ${bluef}■■${reset}${purplef}■■${reset}${boldon}${purplef}■■${reset} ${purplef}■■${reset}${boldon}${cyanf}■■${reset}${boldon}${bluef}■■${reset} ${cyanf}■■${reset}${boldon}${purplef}■■${reset}${boldon}${cyanf}■■${reset} 39 | ${greenf}■■${reset}${boldon}${greenf}■■${reset}${boldon}${redf}■■${reset} ${yellowf}■■${reset}${boldon}${yellowf}■■${reset}${boldon}${greenf}■■${reset} ${bluef}■■${reset}${boldon}${bluef}■■${reset}${boldon}${yellowf}■■${reset} ${boldon}${cyanf}■■${reset}${purplef}■■${reset}${boldon}${purplef}■■${reset} ${boldon}${purplef}■■${reset}${boldon}${cyanf}■■${reset}${boldon}${bluef}■■${reset} ${bluef}■■${reset}${boldon}${purplef}■■${reset}${boldon}${cyanf}■■${reset} 40 | ${greenf}■■${reset}${boldon}${greenf}■■${reset}${boldon}${redf}■■${reset} ${yellowf}■■${reset}${boldon}${yellowf}■■${reset}${boldon}${greenf}■■${reset} ${bluef}■■${reset}${boldon}${bluef}■■${reset}${boldon}${yellowf}■■${reset} ${boldon}${cyanf}■■${reset}${purplef}■■${reset}${boldon}${purplef}■■${reset} ${boldon}${purplef}■■${reset}${boldon}${cyanf}■■${reset}${boldon}${bluef}■■${reset} ${bluef}■■${reset}${boldon}${purplef}■■${reset}${boldon}${cyanf}■■${reset} 41 | ${redf}■■■■${reset}${boldon}${redf}■■${reset} ${greenf}■■■■${reset}${boldon}${greenf}■■${reset} ${yellowf}■■■■${reset}${boldon}${yellowf}■■${reset} ${bluef}■■■■${reset}${boldon}${purplef}■■${reset} ${purplef}■■■■${reset}${boldon}${bluef}■■${reset} ${cyanf}■■■■${reset}${boldon}${cyanf}■■${reset} 42 | ${redf}■■${reset}${boldon}${greenf}■■${reset}${boldon}${redf}■■${reset} ${greenf}■■${reset}${boldon}${yellowf}■■${reset}${boldon}${greenf}■■${reset} ${yellowf}■■${reset}${boldon}${bluef}■■${reset}${boldon}${yellowf}■■${reset} ${bluef}■■${reset}${purplef}■■${reset}${boldon}${purplef}■■${reset} ${purplef}■■${reset}${boldon}${cyanf}■■${reset}${boldon}${bluef}■■${reset} ${cyanf}■■${reset}${boldon}${purplef}■■${reset}${boldon}${cyanf}■■${reset} 43 | ${greenf}■■${reset}${boldon}${greenf}■■${reset}${boldon}${redf}■■${reset} ${yellowf}■■${reset}${boldon}${yellowf}■■${reset}${boldon}${greenf}■■${reset} ${bluef}■■${reset}${boldon}${bluef}■■${reset}${boldon}${yellowf}■■${reset} ${boldon}${cyanf}■■${reset}${purplef}■■${reset}${boldon}${purplef}■■${reset} ${boldon}${purplef}■■${reset}${boldon}${cyanf}■■${reset}${boldon}${bluef}■■${reset} ${bluef}■■${reset}${boldon}${purplef}■■${reset}${boldon}${cyanf}■■${reset} 44 | ${greenf}■■${reset}${boldon}${greenf}■■${reset}${boldon}${redf}■■${reset} ${yellowf}■■${reset}${boldon}${yellowf}■■${reset}${boldon}${greenf}■■${reset} ${bluef}■■${reset}${boldon}${bluef}■■${reset}${boldon}${yellowf}■■${reset} ${boldon}${cyanf}■■${reset}${purplef}■■${reset}${boldon}${purplef}■■${reset} ${boldon}${purplef}■■${reset}${boldon}${cyanf}■■${reset}${boldon}${bluef}■■${reset} ${bluef}■■${reset}${boldon}${purplef}■■${reset}${boldon}${cyanf}■■${reset} 45 | ${redf}■■■■${reset}${boldon}${redf}■■${reset} ${greenf}■■■■${reset}${boldon}${greenf}■■${reset} ${yellowf}■■■■${reset}${boldon}${yellowf}■■${reset} ${bluef}■■■■${reset}${boldon}${purplef}■■${reset} ${purplef}■■■■${reset}${boldon}${bluef}■■${reset} ${cyanf}■■■■${reset}${boldon}${cyanf}■■${reset} 46 | ${redf}■■${reset}${boldon}${greenf}■■${reset}${boldon}${redf}■■${reset} ${greenf}■■${reset}${boldon}${yellowf}■■${reset}${boldon}${greenf}■■${reset} ${yellowf}■■${reset}${boldon}${bluef}■■${reset}${boldon}${yellowf}■■${reset} ${bluef}■■${reset}${purplef}■■${reset}${boldon}${purplef}■■${reset} ${purplef}■■${reset}${boldon}${cyanf}■■${reset}${boldon}${bluef}■■${reset} ${cyanf}■■${reset}${boldon}${purplef}■■${reset}${boldon}${cyanf}■■${reset} 47 | ${greenf}■■${reset}${boldon}${greenf}■■${reset}${boldon}${redf}■■${reset} ${yellowf}■■${reset}${boldon}${yellowf}■■${reset}${boldon}${greenf}■■${reset} ${bluef}■■${reset}${boldon}${bluef}■■${reset}${boldon}${yellowf}■■${reset} ${boldon}${cyanf}■■${reset}${purplef}■■${reset}${boldon}${purplef}■■${reset} ${boldon}${purplef}■■${reset}${boldon}${cyanf}■■${reset}${boldon}${bluef}■■${reset} ${bluef}■■${reset}${boldon}${purplef}■■${reset}${boldon}${cyanf}■■${reset} 48 | ${greenf}■■${reset}${boldon}${greenf}■■${reset}${boldon}${redf}■■${reset} ${yellowf}■■${reset}${boldon}${yellowf}■■${reset}${boldon}${greenf}■■${reset} ${bluef}■■${reset}${boldon}${bluef}■■${reset}${boldon}${yellowf}■■${reset} ${boldon}${cyanf}■■${reset}${purplef}■■${reset}${boldon}${purplef}■■${reset} ${boldon}${purplef}■■${reset}${boldon}${cyanf}■■${reset}${boldon}${bluef}■■${reset} ${bluef}■■${reset}${boldon}${purplef}■■${reset}${boldon}${cyanf}■■${reset} 49 | 50 | EOF 51 | -------------------------------------------------------------------------------- /color-scripts/bloks: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | # ANSI Color -- use these variables to easily have different color 4 | # and format output. Make sure to output the reset sequence after 5 | # colors (f = foreground, b = background), and use the 'off' 6 | # feature for anything you turn on. 7 | 8 | initializeANSI() 9 | { 10 | esc="" 11 | 12 | blackf="${esc}[30m"; redf="${esc}[31m"; greenf="${esc}[32m" 13 | yellowf="${esc}[33m" bluef="${esc}[34m"; purplef="${esc}[35m" 14 | cyanf="${esc}[36m"; whitef="${esc}[37m" 15 | 16 | blackb="${esc}[1;30m"; redb="${esc}[1;31m"; greenb="${esc}[1;32m" 17 | yellowb="${esc}[1;33m" blueb="${esc}[1;34m"; purpleb="${esc}[1;35m" 18 | cyanb="${esc}[1;36m"; whiteb="${esc}[1;37m" 19 | 20 | boldon="${esc}[1m"; boldoff="${esc}[22m" 21 | italicson="${esc}[3m"; italicsoff="${esc}[23m" 22 | ulon="${esc}[4m"; uloff="${esc}[24m" 23 | invon="${esc}[7m"; invoff="${esc}[27m" 24 | 25 | reset="${esc}[0m" 26 | } 27 | 28 | # note in this first use that switching colors doesn't require a reset 29 | # first - the new color overrides the old one. 30 | 31 | numbers (){ 32 | 33 | initializeANSI 34 | 35 | cat << EOF 36 | 37 | ${blackf}11111111${reset} ${redf}22222222${reset} ${greenf}33333333${reset} ${yellowf}44444444${reset} ${bluef}55555555${reset} ${purplef}66666666${reset} ${cyanf}77777777${reset} ${whitef}88888888${reset} 38 | ${blackb}11111111${reset} ${redb}22222222${reset} ${greenb}33333333${reset} ${yellowb}44444444${reset} ${blueb}55555555${reset} ${purpleb}66666666${reset} ${cyanb}77777777${reset} ${whiteb}88888888${reset} 39 | 40 | EOF 41 | 42 | } 43 | 44 | blocks (){ 45 | 46 | initializeANSI 47 | 48 | cat << EOF 49 | 50 | ${blackf}████${reset}${blackb}████${reset} ${redf}████${reset}${redb}████${reset} ${greenf}████${reset}${greenb}████${reset} ${yellowf}████${reset}${yellowb}████${reset} ${bluef}████${reset}${blueb}████${reset} ${purplef}████${reset}${purpleb}████${reset} ${cyanf}████${reset}${cyanb}████${reset} ${whitef}████${reset}${whiteb}████${reset} 51 | ${blackf}████${reset}${blackb}████${reset} ${redf}████${reset}${redb}████${reset} ${greenf}████${reset}${greenb}████${reset} ${yellowf}████${reset}${yellowb}████${reset} ${bluef}████${reset}${blueb}████${reset} ${purplef}████${reset}${purpleb}████${reset} ${cyanf}████${reset}${cyanb}████${reset} ${whitef}████${reset}${whiteb}████${reset} 52 | ${blackf}████${reset}${blackb}████${reset} ${redf}████${reset}${redb}████${reset} ${greenf}████${reset}${greenb}████${reset} ${yellowf}████${reset}${yellowb}████${reset} ${bluef}████${reset}${blueb}████${reset} ${purplef}████${reset}${purpleb}████${reset} ${cyanf}████${reset}${cyanb}████${reset} ${whitef}████${reset}${whiteb}████${reset} 53 | 54 | EOF 55 | 56 | } 57 | 58 | case $1 in 59 | b) blocks;; 60 | n) numbers;; 61 | a) blocks && numbers;; 62 | *) blocks && numbers;; 63 | esac 64 | -------------------------------------------------------------------------------- /color-scripts/colorbars: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # colorbars - smpte color bars in sh 4 | # http://git.io/colorbars 5 | 6 | echo 7 | 8 | for y in $(seq 0 13); do 9 | printf %s ' ' 10 | for color in 7 3 6 2 5 1 4; do 11 | tput setab ${color} 12 | printf %s ' ' 13 | done 14 | tput sgr0 15 | echo 16 | done 17 | 18 | for y in 0 1; do 19 | printf %s ' ' 20 | for color in 4 0 5 0 6 0 7; do 21 | tput setab ${color} 22 | printf %s ' ' 23 | done 24 | tput sgr0 25 | echo 26 | done 27 | 28 | for y in $(seq 0 4); do 29 | printf %s ' ' 30 | for color in 4 4 4 4 4 7 7 7 7 7 5 5 5 5 5 0 0 0 0 0 0 0 0 0 0 0 0 0; do 31 | tput setab ${color} 32 | printf %s ' ' 33 | done 34 | tput sgr0 35 | echo 36 | done 37 | 38 | echo 39 | -------------------------------------------------------------------------------- /color-scripts/colortest: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | # Daniel Crisman's ANSI color chart script from 4 | # The Bash Prompt HOWTO: 6.1. Colours 5 | # http://www.tldp.org/HOWTO/Bash-Prompt-HOWTO/x329.html 6 | # 7 | # This function echoes a bunch of color codes to the 8 | # terminal to demonstrate what's available. Each 9 | # line is the color code of one forground color, 10 | # out of 17 (default + 16 escapes), followed by a 11 | # test use of that color on all nine background 12 | # colors (default + 8 escapes). 13 | 14 | T='•••' # The text for the color test 15 | 16 | echo -e "\n def 40m 41m 42m 43m 44m 45m 46m 47m"; 17 | 18 | for FGs in ' m' ' 1m' ' 30m' '1;30m' ' 31m' '1;31m' ' 32m' \ 19 | '1;32m' ' 33m' '1;33m' ' 34m' '1;34m' ' 35m' '1;35m' \ 20 | ' 36m' '1;36m' ' 37m' '1;37m'; 21 | 22 | do FG=${FGs// /} 23 | echo -en " $FGs \033[$FG $T " 24 | 25 | for BG in 40m 41m 42m 43m 44m 45m 46m 47m; 26 | do echo -en "$EINS \033[$FG\033[$BG $T \033[0m"; 27 | done 28 | echo; 29 | done 30 | echo 31 | -------------------------------------------------------------------------------- /color-scripts/colortest-slim: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | # Author: machinebacon 4 | # Source: http://linuxbbq.org/bbs/viewtopic.php?f=4&t=1656#p33237 5 | 6 | T='*' # The test text 7 | 8 | echo -e "\n 40m 41m 42m 43m\ 9 | 44m 45m 46m 47m"; 10 | 11 | for FGs in ' m' ' 1m' ' 30m' '1;30m' ' 31m' '1;31m' ' 32m' \ 12 | '1;32m' ' 33m' '1;33m' ' 34m' '1;34m' ' 35m' '1;35m' \ 13 | ' 36m' '1;36m' ' 37m' '1;37m'; 14 | do FG=${FGs// /} 15 | echo -en " $FGs \033[$FG $T " 16 | for BG in 40m 41m 42m 43m 44m 45m 46m 47m; 17 | do echo -en "$EINS \033[$FG\033[$BG $T \033[0m"; 18 | done 19 | echo; 20 | done 21 | echo 22 | -------------------------------------------------------------------------------- /color-scripts/colorview: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | # Original: http://frexx.de/xterm-256-notes/ 4 | # http://frexx.de/xterm-256-notes/data/colortable16.sh 5 | # Modified by Aaron Griffin 6 | # and further by Kazuo Teramoto 7 | 8 | FGNAMES=(' black ' ' red ' ' green ' ' yellow' ' blue ' 'magenta' ' cyan ' ' white ') 9 | BGNAMES=('DFT' 'BLK' 'RED' 'GRN' 'YEL' 'BLU' 'MAG' 'CYN' 'WHT') 10 | 11 | echo " ┌──────────────────────────────────────────────────────────────────────────┐" 12 | for b in {0..8}; do 13 | ((b>0)) && bg=$((b+39)) 14 | 15 | echo -en "\033[0m ${BGNAMES[b]} │ " 16 | 17 | for f in {0..7}; do 18 | echo -en "\033[${bg}m\033[$((f+30))m ${FGNAMES[f]} " 19 | done 20 | 21 | echo -en "\033[0m │" 22 | echo -en "\033[0m\n\033[0m │ " 23 | 24 | for f in {0..7}; do 25 | echo -en "\033[${bg}m\033[1;$((f+30))m ${FGNAMES[f]} " 26 | done 27 | 28 | echo -en "\033[0m │" 29 | echo -e "\033[0m" 30 | 31 | ((b<8)) && 32 | echo " ├──────────────────────────────────────────────────────────────────────────┤" 33 | done 34 | echo " └──────────────────────────────────────────────────────────────────────────┘" 35 | -------------------------------------------------------------------------------- /color-scripts/colorwheel: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # Author: baskerville 4 | # Source: http://crunchbang.org/forums/viewtopic.php?pid=288344#p288344 5 | 6 | printf "\033[0m 7 | \033[49;35m|\033[49;31m|\033[101;31m|\033[41;97m|\033[49;91m|\033[49;93m|\033[0m 8 | \033[105;35m|\033[45;97m|\033[49;97m||\033[100;97m||\033[49;37m||\033[103;33m|\033[43;97m|\033[0m 9 | \033[49;95m|\033[49;94m|\033[100;37m||\033[40;97m||\033[40;37m||\033[49;33m|\033[49;32m|\033[0m 10 | \033[104;34m|\033[44;97m|\033[49;90m||\033[40;39m||\033[49;39m||\033[102;32m|\033[42;97m|\033[0m 11 | \033[49;34m|\033[49;36m|\033[106;36m|\033[46;97m|\033[49;96m|\033[49;92m|\033[0m 12 | 13 | " 14 | -------------------------------------------------------------------------------- /color-scripts/crowns: -------------------------------------------------------------------------------- 1 |              2 |                                  3 |              4 |                                                          5 |                                                  6 |                                                  7 |                                                          8 |                      9 |                      10 |   11 |   12 | -------------------------------------------------------------------------------- /color-scripts/crunch: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # ANSI Color -- use these variables to easily have different color 4 | # and format output. Make sure to output the reset sequence after 5 | # colors (f = foreground, b = background), and use the 'off' 6 | # feature for anything you turn on. 7 | # Author: gutterslob 8 | # Source: http://crunchbang.org/forums/viewtopic.php?pid=148022#p148022 9 | 10 | initializeANSI() 11 | { 12 | esc="" 13 | 14 | blackf="${esc}[30m"; redf="${esc}[31m"; greenf="${esc}[32m" 15 | yellowf="${esc}[33m" bluef="${esc}[34m"; purplef="${esc}[35m" 16 | cyanf="${esc}[36m"; whitef="${esc}[37m" 17 | 18 | blackb="${esc}[40m"; redb="${esc}[41m"; greenb="${esc}[42m" 19 | yellowb="${esc}[43m" blueb="${esc}[44m"; purpleb="${esc}[45m" 20 | cyanb="${esc}[46m"; whiteb="${esc}[47m" 21 | 22 | boldon="${esc}[1m"; boldoff="${esc}[22m" 23 | italicson="${esc}[3m"; italicsoff="${esc}[23m" 24 | ulon="${esc}[4m"; uloff="${esc}[24m" 25 | invon="${esc}[7m"; invoff="${esc}[27m" 26 | 27 | reset="${esc}[0m" 28 | } 29 | 30 | # note in this first use that switching colors doesn't require a reset 31 | # first - the new color overrides the old one. 32 | 33 | initializeANSI 34 | 35 | cat << EOF 36 | 37 | ${reset}${redf} ██ ██ ${reset}${greenf} ██ ██ ${reset}${yellowf} ██ ██ ${reset}${bluef} ██ ██ ${reset}${purplef} ██ ██ ${reset}${cyanf} ██ ██ ${reset} 38 | ${reset}${redf}██████████ ${reset}${greenf} ██████████ ${reset}${yellowf} ██████████ ${reset}${bluef} ██████████ ${reset}${purplef} ██████████ ${reset} ${cyanf}██████████ ${reset} 39 | ${reset}${redf} ██${boldon}██${boldoff}██ ${reset}${greenf} ██${boldon}██${boldoff}██ ${reset}${yellowf} ██${boldon}██${boldoff}██ ${reset}${bluef} ██${boldon}██${boldoff}██ ${reset}${purplef} ██${boldon}██${boldoff}██ ${reset}${cyanf} ██${boldon}██${boldoff}██ ${reset} 40 | ${reset}${redf}██████████ ${reset}${greenf} ██████████ ${reset}${yellowf} ██████████ ${bluef} ██████████ ${purplef} ██████████ ${reset}${cyanf} ██████████${reset} 41 | ${reset}${redf} ██ ██ ${reset}${greenf} ██ ██ ${reset}${yellowf} ██ ██ ${reset}${bluef} ██ ██ ${reset}${purplef} ██ ██ ${reset}${cyanf} ██ ██ ${reset} 42 | ${reset} 43 | EOF 44 | -------------------------------------------------------------------------------- /color-scripts/crunchbang: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # ANSI Color -- use these variables to easily have different color 4 | # and format output. Make sure to output the reset sequence after 5 | # colors (f = foreground, b = background), and use the 'off' 6 | # feature for anything you turn on. 7 | # Author: steampunknyanja 8 | # Source: http://crunchbang.org/forums/viewtopic.php?pid=146715#p146715 9 | initializeANSI() 10 | { 11 | esc="" 12 | 13 | blackf="${esc}[30m"; redf="${esc}[31m"; greenf="${esc}[32m" 14 | yellowf="${esc}[33m" bluef="${esc}[34m"; purplef="${esc}[35m" 15 | cyanf="${esc}[36m"; whitef="${esc}[37m" 16 | 17 | blackb="${esc}[40m"; redb="${esc}[41m"; greenb="${esc}[42m" 18 | yellowb="${esc}[43m" blueb="${esc}[44m"; purpleb="${esc}[45m" 19 | cyanb="${esc}[46m"; whiteb="${esc}[47m" 20 | 21 | boldon="${esc}[1m"; boldoff="${esc}[22m" 22 | italicson="${esc}[3m"; italicsoff="${esc}[23m" 23 | ulon="${esc}[4m"; uloff="${esc}[24m" 24 | invon="${esc}[7m"; invoff="${esc}[27m" 25 | 26 | reset="${esc}[0m" 27 | } 28 | 29 | # note in this first use that switching colors doesn't require a reset 30 | # first - the new color overrides the old one. 31 | 32 | initializeANSI 33 | 34 | cat << EOF 35 | 36 | ${reset}${redf} ██ ██ ${reset}${boldon}${redf}██ ${reset}${greenf} ██ ██ ${reset}${boldon}${greenf}██ ${reset}${yellowf} ██ ██ ${reset}${boldon}${yellowf}██ ${reset}${bluef} ██ ██ ${reset}${boldon}${bluef}██ ${reset}${purplef} ██ ██ ${reset}${boldon}${purplef}██ ${reset}${cyanf} ██ ██ ${reset}${boldon}${cyanf}██ 37 | ${reset}${redf}██████████ ${reset}${boldon}${redf}██ ${reset}${greenf}██████████ ${reset}${boldon}${greenf}██ ${reset}${yellowf}██████████ ${reset}${boldon}${yellowf}██ ${reset}${bluef}██████████ ${reset}${boldon}${bluef}██ ${reset}${purplef}██████████ ${reset}${boldon}${purplef}██ ${reset}${cyanf}██████████ ${reset}${boldon}${cyanf}██ 38 | ${reset}${redf} ██ ██ ${reset}${boldon}${redf}██ ${reset}${greenf} ██ ██ ${reset}${boldon}${greenf}██ ${reset}${yellowf} ██ ██ ${reset}${boldon}${yellowf}██ ${reset}${bluef} ██ ██ ${reset}${boldon}${bluef}██ ${reset}${purplef} ██ ██ ${reset}${boldon}${purplef}██ ${reset}${cyanf} ██ ██ ${reset}${boldon}${cyanf}██ 39 | ${reset}${redf}██████████ ${reset}${greenf}██████████ ${reset}${yellowf}██████████ ${reset}${bluef}██████████ ${reset}${purplef}██████████ ${reset}${cyanf}██████████ 40 | ${reset}${redf} ██ ██ ${reset}${boldon}${redf}██ ${reset}${greenf} ██ ██ ${reset}${boldon}${greenf}██ ${reset}${yellowf} ██ ██ ${reset}${boldon}${yellowf}██ ${reset}${bluef} ██ ██ ${reset}${boldon}${bluef}██ ${reset}${purplef} ██ ██ ${reset}${boldon}${purplef}██ ${reset}${cyanf} ██ ██ ${reset}${boldon}${cyanf}██ 41 | ${reset} 42 | EOF 43 | -------------------------------------------------------------------------------- /color-scripts/crunchbang-mini: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # ANSI Color -- use these variables to easily have different color 4 | # and format output. Make sure to output the reset sequence after 5 | # colors (f = foreground, b = background), and use the 'off' 6 | # feature for anything you turn on. 7 | # Author: thevdude 8 | # Source: http://crunchbang.org/forums/viewtopic.php?pid=147530#p147530 9 | 10 | initializeANSI() 11 | { 12 | esc="" 13 | 14 | blackf="${esc}[30m"; redf="${esc}[31m"; greenf="${esc}[32m" 15 | yellowf="${esc}[33m" bluef="${esc}[34m"; purplef="${esc}[35m" 16 | cyanf="${esc}[36m"; whitef="${esc}[37m" 17 | 18 | blackb="${esc}[40m"; redb="${esc}[41m"; greenb="${esc}[42m" 19 | yellowb="${esc}[43m" blueb="${esc}[44m"; purpleb="${esc}[45m" 20 | cyanb="${esc}[46m"; whiteb="${esc}[47m" 21 | 22 | boldon="${esc}[1m"; boldoff="${esc}[22m" 23 | italicson="${esc}[3m"; italicsoff="${esc}[23m" 24 | ulon="${esc}[4m"; uloff="${esc}[24m" 25 | invon="${esc}[7m"; invoff="${esc}[27m" 26 | 27 | reset="${esc}[0m" 28 | } 29 | 30 | # note in this first use that switching colors doesn't require a reset 31 | # first - the new color overrides the old one. 32 | 33 | clear 34 | 35 | initializeANSI 36 | 37 | cat << EOF 38 | 39 | ${reset}${redf}▄█▄█▄ ${reset}${boldon}${redf}█ ${reset}${greenf}▄█▄█▄ ${reset}${boldon}${greenf}█ ${reset}${yellowf}▄█▄█▄ ${reset}${boldon}${yellowf}█ ${reset}${bluef}▄█▄█▄ ${reset}${boldon}${bluef}█ ${reset}${purplef}▄█▄█▄ ${reset}${boldon}${purplef}█ ${reset}${cyanf}▄█▄█▄ ${reset}${boldon}${cyanf}█${reset} 40 | ${reset}${redf}▄█▄█▄ ${reset}${boldon}${redf}▀ ${reset}${greenf}▄█▄█▄ ${reset}${boldon}${greenf}▀ ${reset}${yellowf}▄█▄█▄ ${reset}${boldon}${yellowf}▀ ${reset}${bluef}▄█▄█▄ ${reset}${boldon}${bluef}▀ ${reset}${purplef}▄█▄█▄ ${reset}${boldon}${purplef}▀ ${reset}${cyanf}▄█▄█▄ ${reset}${boldon}${cyanf}▀${reset} 41 | ${reset}${redf} ▀ ▀ ${reset}${boldon}${redf}▀ ${reset}${greenf} ▀ ▀ ${reset}${boldon}${greenf}▀ ${reset}${yellowf} ▀ ▀ ${reset}${boldon}${yellowf}▀ ${reset}${bluef} ▀ ▀ ${reset}${boldon}${bluef}▀ ${reset}${purplef} ▀ ▀ ${reset}${boldon}${purplef}▀ ${reset}${cyanf} ▀ ▀ ${reset}${boldon}${cyanf}▀${reset} 42 | EOF 43 | -------------------------------------------------------------------------------- /color-scripts/darthvader: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # ANSI Color -- use these variables to easily have different color 4 | # and format output. Make sure to output the reset sequence after 5 | # colors (f = foreground, b = background), and use the 'off' 6 | # feature for anything you turn on. 7 | # Author: pfh 8 | # Source: http://crunchbang.org/forums/viewtopic.php?pid=129265#p129265 9 | 10 | initializeANSI() 11 | { 12 | esc="" 13 | 14 | blackf="${esc}[30m"; redf="${esc}[31m"; greenf="${esc}[32m" 15 | yellowf="${esc}[33m" bluef="${esc}[34m"; purplef="${esc}[35m" 16 | cyanf="${esc}[36m"; whitef="${esc}[37m" 17 | 18 | blackb="${esc}[40m"; redb="${esc}[41m"; greenb="${esc}[42m" 19 | yellowb="${esc}[43m" blueb="${esc}[44m"; purpleb="${esc}[45m" 20 | cyanb="${esc}[46m"; whiteb="${esc}[47m" 21 | 22 | boldon="${esc}[1m"; boldoff="${esc}[22m" 23 | italicson="${esc}[3m"; italicsoff="${esc}[23m" 24 | ulon="${esc}[4m"; uloff="${esc}[24m" 25 | invon="${esc}[7m"; invoff="${esc}[27m" 26 | 27 | reset="${esc}[0m" 28 | } 29 | 30 | # note in this first use that switching colors doesn't require a reset 31 | # first - the new color overrides the old one. 32 | # ****************************** Building blocks: █ ▓ ▒ ░ ▄ ▀ ▐ ▌ ● ═ ║ ╔ ╦ ╗ ╚ ╩ ╝ ■ ▬ ▲ ▼ ◄ ► 33 | 34 | initializeANSI 35 | 36 | cat << EOF 37 | 38 | ${redf} ▄████▄ ${greenf} ▄████▄ ${yellowf} ▄████▄ ${bluef} ▄████▄ ${purplef} ▄████▄ ${cyanf} ▄████▄ 39 | ${redf} ██▀▀▀▀██ ${greenf} ██▀▀▀▀██ ${yellowf} ██▀▀▀▀██ ${bluef} ██▀▀▀▀██ ${purplef} ██▀▀▀▀██ ${cyanf} ██▀▀▀▀██ 40 | ${redf} █ █ ${greenf} █ █ ${yellowf} █ █ ${bluef} █ █ ${purplef} █ █ ${cyanf} █ █ 41 | ${redf} █ ▄▀▀▄ █ ${greenf} █ ▄▀▀▄ █ ${yellowf} █ ▄▀▀▄ █ ${bluef} █ ▄▀▀▄ █ ${purplef} █ ▄▀▀▄ █ ${cyanf} █ ▄▀▀▄ █ 42 | ${redf} █ ▄█▬▄▄▬█▄ █ ${greenf}█ ▄█▬▄▄▬█▄ █ ${yellowf}█ ▄█▬▄▄▬█▄ █ ${bluef}█ ▄█▬▄▄▬█▄ █ ${purplef}█ ▄█▬▄▄▬█▄ █ ${cyanf}█ ▄█▬▄▄▬█▄ █ 43 | 44 | ${boldon} 45 | ${redf} ▄████▄ ${greenf} ▄████▄ ${yellowf} ▄████▄ ${bluef} ▄████▄ ${purplef} ▄████▄ ${cyanf} ▄████▄ 46 | ${redf} ██▀▀▀▀██ ${greenf} ██▀▀▀▀██ ${yellowf} ██▀▀▀▀██ ${bluef} ██▀▀▀▀██ ${purplef} ██▀▀▀▀██ ${cyanf} ██▀▀▀▀██ 47 | ${redf} █ █ ${greenf} █ █ ${yellowf} █ █ ${bluef} █ █ ${purplef} █ █ ${cyanf} █ █ 48 | ${redf} █ ▄▀▀▄ █ ${greenf} █ ▄▀▀▄ █ ${yellowf} █ ▄▀▀▄ █ ${bluef} █ ▄▀▀▄ █ ${purplef} █ ▄▀▀▄ █ ${cyanf} █ ▄▀▀▄ █ 49 | ${redf} █ ▄█▬▄▄▬█▄ █ ${greenf}█ ▄█▬▄▄▬█▄ █ ${yellowf}█ ▄█▬▄▄▬█▄ █ ${bluef}█ ▄█▬▄▄▬█▄ █ ${purplef}█ ▄█▬▄▄▬█▄ █ ${cyanf}█ ▄█▬▄▄▬█▄ █ 50 | ${reset} 51 | 52 | EOF 53 | -------------------------------------------------------------------------------- /color-scripts/dna: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | # ANSI color scheme script by pfh 4 | # Source: http://crunchbang.org/forums/viewtopic.php?pid=144011#p144011 5 | # Initializing mod by lolilolicon from Archlinux 6 | 7 | f=3 b=4 8 | for j in f b; do 9 | for i in {0..7}; do 10 | printf -v $j$i %b "\e[${!j}${i}m" 11 | done 12 | done 13 | bld=$'\e[1m' 14 | rst=$'\e[0m' 15 | inv=$'\e[7m' 16 | 17 | cat << EOF 18 | 19 | $f1█-----$bld█ $rst$f2█-----$bld█$rst $f3█-----$bld█$rst $f4█-----$bld█$rst $f5█-----$bld█$rst $f6█-----$bld█$rst 20 | $f1█---$bld█$rst $f2█---$bld█$rst $f3█---$bld█$rst $f4█---$bld█$rst $f5█---$bld█$rst $f6█---$bld█$rst 21 | $f1 █-$bld█$rst $f2 █-$bld█$rst $f3 █-$bld█$rst $f4 █-$bld█$rst $f5 █-$bld█$rst $f6 █-$bld█$rst 22 | $f1█$rst $f2█$rst $f3█$rst $f4█$rst $f5█$rst $f6█$rst 23 | $f1$bld█-$rst$f1█$rst $f2$bld█_$rst$f2█$rst $f3$bld█-$rst$f3█$rst $f4$bld█-$rst$f4█$rst $f5$bld█-$rst$f5█$rst $f6$bld█-$rst$f6█$rst 24 | $f1$bld█---$rst$f1█$rst $f2$bld█---$rst$f2█$rst $f3$bld█---$rst$f3█$rst $f4$bld█---$rst$f4█$rst $f5$bld█---$rst$f5█$rst $f6$bld█---$rst$f6█$rst 25 | $f1$bld█-----$rst$f1█$rst $f2$bld█-----$rst$f2█$rst $f3$bld█-----$rst$f3█$rst $f4$bld█-----$rst$f4█$rst $f5$bld█-----$rst$f5█$rst $f6$bld█-----$rst$f6█$rst 26 | $f1$bld█---$rst$f1█$rst $f2$bld█---$rst$f2█$rst $f3$bld█---$rst$f3█$rst $f4$bld█---$rst$f4█$rst $f5$bld█---$rst$f5█$rst $f6$bld█---$rst$f6█$rst 27 | $f1$bld█-$rst$f1█$rst $f2$bld█-$rst$f2█$rst $f3$bld█-$rst$f3█$rst $f4$bld█-$rst$f4█$rst $f5$bld█-$rst$f5█$rst $f6$bld█-$rst$f6█$rst 28 | $f1$bld█$rst $f2$bld█$rst $f3$bld█$rst $f4$bld█$rst $f5$bld█$rst $f6$bld█$rst 29 | $f1█-$bld█$rst $f2█-$bld█$rst $f3█-$bld█$rst $f4█-$bld█$rst $f5█-$bld█$rst $f6█-$bld█$rst 30 | $f1█---$bld█$rst $f2█---$bld█$rst $f3█---$bld█$rst $f4█---$bld█$rst $f5█---$bld█$rst $f6█---$bld█$rst 31 | $f1█-----$bld█ $rst$f2█-----$bld█$rst $f3█-----$bld█$rst $f4█-----$bld█$rst $f5█-----$bld█$rst $f6█-----$bld█$rst 32 | $f1█---$bld█$rst $f2█---$bld█$rst $f3█---$bld█$rst $f4█---$bld█$rst $f5█---$bld█$rst $f6█---$bld█$rst 33 | $f1 █-$bld█$rst $f2 █-$bld█$rst $f3 █-$bld█$rst $f4 █-$bld█$rst $f5 █-$bld█$rst $f6 █-$bld█$rst 34 | $f1█$rst $f2█$rst $f3█$rst $f4█$rst $f5█$rst $f6█$rst 35 | $f1$bld█-$rst$f1█$rst $f2$bld█_$rst$f2█$rst $f3$bld█-$rst$f3█$rst $f4$bld█-$rst$f4█$rst $f5$bld█-$rst$f5█$rst $f6$bld█-$rst$f6█$rst 36 | $f1$bld█---$rst$f1█$rst $f2$bld█---$rst$f2█$rst $f3$bld█---$rst$f3█$rst $f4$bld█---$rst$f4█$rst $f5$bld█---$rst$f5█$rst $f6$bld█---$rst$f6█$rst 37 | $f1$bld█-----$rst$f1█$rst $f2$bld█-----$rst$f2█$rst $f3$bld█-----$rst$f3█$rst $f4$bld█-----$rst$f4█$rst $f5$bld█-----$rst$f5█$rst $f6$bld█-----$rst$f6█$rst 38 | $f1$bld█---$rst$f1█$rst $f2$bld█---$rst$f2█$rst $f3$bld█---$rst$f3█$rst $f4$bld█---$rst$f4█$rst $f5$bld█---$rst$f5█$rst $f6$bld█---$rst$f6█$rst 39 | $f1$bld█-$rst$f1█$rst $f2$bld█-$rst$f2█$rst $f3$bld█-$rst$f3█$rst $f4$bld█-$rst$f4█$rst $f5$bld█-$rst$f5█$rst $f6$bld█-$rst$f6█$rst 40 | $f1$bld█$rst $f2$bld█$rst $f3$bld█$rst $f4$bld█$rst $f5$bld█$rst $f6$bld█$rst 41 | $f1█-$bld█$rst $f2█-$bld█$rst $f3█-$bld█$rst $f4█-$bld█$rst $f5█-$bld█$rst $f6█-$bld█$rst 42 | $f1█---$bld█$rst $f2█---$bld█$rst $f3█---$bld█$rst $f4█---$bld█$rst $f5█---$bld█$rst $f6█---$bld█$rst 43 | $f1█-----$bld█ $rst$f2█-----$bld█$rst $f3█-----$bld█$rst $f4█-----$bld█$rst $f5█-----$bld█$rst $f6█-----$bld█$rst 44 | 45 | EOF 46 | -------------------------------------------------------------------------------- /color-scripts/dotx: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | echo -e '\n\e[01;30m ▚ \e[0;30m ▞ \e[01;31m ▚ \e[0;31m ▞ \e[01;32m ▚ \e[0;32m ▞ \e[01;33m ▚ \e[0;33m ▞ \e[01;34m ▚ \e[0;34m ▞ \e[01;35m ▚ \e[0;35m ▞ \e[01;36m ▚ \e[0;36m ▞ \e[01;37m ▚ \e[0;37m ▞ ' 3 | echo -e '\n\e[01;30m ▞ \e[0;30m ▚ \e[01;31m ▞\e[0;31m ▚ \e[01;32m ▞ \e[0;32m ▚ \e[01;33m ▞ \e[0;33m ▚ \e[01;34m ▞ \e[0;34m ▚ \e[01;35m ▞ \e[0;35m ▚ \e[01;36m ▞ \e[0;36m ▚ \e[01;37m ▞ \e[0;37m ▚ \n' 4 | exit 5 | -------------------------------------------------------------------------------- /color-scripts/elfman: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # ANSI Color -- use these variables to easily have different color 4 | # and format output. Make sure to output the reset sequence after 5 | # colors (f = foreground, b = background), and use the 'off' 6 | # feature for anything you turn on. 7 | # Author: thevdude 8 | # Source: http://crunchbang.org/forums/viewtopic.php?pid=144700#p144700 9 | 10 | initializeANSI() 11 | { 12 | esc="" 13 | 14 | blackf="${esc}[30m"; redf="${esc}[31m"; greenf="${esc}[32m" 15 | yellowf="${esc}[33m" bluef="${esc}[34m"; purplef="${esc}[35m" 16 | cyanf="${esc}[36m"; whitef="${esc}[37m" 17 | 18 | blackb="${esc}[40m"; redb="${esc}[41m"; greenb="${esc}[42m" 19 | yellowb="${esc}[43m" blueb="${esc}[44m"; purpleb="${esc}[45m" 20 | cyanb="${esc}[46m"; whiteb="${esc}[47m" 21 | 22 | boldon="${esc}[1m"; boldoff="${esc}[22m" 23 | italicson="${esc}[3m"; italicsoff="${esc}[23m" 24 | ulon="${esc}[4m"; uloff="${esc}[24m" 25 | invon="${esc}[7m"; invoff="${esc}[27m" 26 | 27 | reset="${esc}[0m" 28 | } 29 | 30 | # note in this first use that switching colors doesn't require a reset 31 | # first - the new color overrides the old one. 32 | 33 | clear 34 | 35 | initializeANSI 36 | 37 | cat << EOF 38 | 39 | ${boldon}${whitef} ▄▄▄${reset} 40 | ${boldon}${whitef} ▄█████▄▄ ${reset} 41 | ${boldon}${whitef}███${cyanb}▀▀▀▀${blackb}▀${cyanb}▀${blackb}▀${cyanb}▀${reset} 42 | ${boldon}${whitef}███${cyanb}▄ ${boldoff}${blackf}▀ ▀${reset}${cyanf}▀${reset} 43 | ${boldon}${whitef} ▄${cyanb} ${reset}${boldon}${whitef}█████▄ ${boldoff}${redf}█▄${reset} 44 | ${boldoff}${redf}▀▀${reset}${boldon}${redb}${whitef}▄${cyanb}▄ ${redb}▄▄▄${reset}${boldoff}${redf}▀██▀${reset} 45 | ${boldon}${whitef} ██▀▀▀██▀ ${boldoff}${redf}▀${reset} 46 | ${boldon}${whitef} ▀▀▀▀ ▀▀▀▀${reset} 47 | 48 | EOF 49 | -------------------------------------------------------------------------------- /color-scripts/faces: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # ANSI Color -- use these variables to easily have different color 4 | # and format output. Make sure to output the reset sequence after 5 | # colors (f = foreground, b = background), and use the 'off' 6 | # feature for anything you turn on. 7 | # Author: pfh 8 | # Source: http://crunchbang.org/forums/viewtopic.php?pid=127737#p127737 9 | 10 | initializeANSI() 11 | { 12 | esc="" 13 | 14 | blackf="${esc}[30m"; redf="${esc}[31m"; greenf="${esc}[32m" 15 | yellowf="${esc}[33m" bluef="${esc}[34m"; purplef="${esc}[35m" 16 | cyanf="${esc}[36m"; whitef="${esc}[37m" 17 | 18 | blackb="${esc}[40m"; redb="${esc}[41m"; greenb="${esc}[42m" 19 | yellowb="${esc}[43m" blueb="${esc}[44m"; purpleb="${esc}[45m" 20 | cyanb="${esc}[46m"; whiteb="${esc}[47m" 21 | 22 | boldon="${esc}[1m"; boldoff="${esc}[22m" 23 | italicson="${esc}[3m"; italicsoff="${esc}[23m" 24 | ulon="${esc}[4m"; uloff="${esc}[24m" 25 | invon="${esc}[7m"; invoff="${esc}[27m" 26 | 27 | reset="${esc}[0m" 28 | } 29 | 30 | # note in this first use that switching colors doesn't require a reset 31 | # first - the new color overrides the old one. 32 | 33 | clear 34 | initializeANSI 35 | 36 | cat << EOF 37 | 38 | ${white}╔══════════════════════════════════════════════════════════════════╗ 39 | ${white}║ ${redf} ▄█ █▄${reset} ${greenf} ▄█ █▄${reset} ${yellowf} ▄█ █▄${reset} ${bluef} ▄█ █▄${reset} ${purplef} ▄█ █▄${reset} ${cyanf} ▄█ █▄${reset} ${white}║ 40 | ${white}║ ${boldon}${redf}▄█◄► ◄►█▄${reset} ${boldon}${greenf}▄█◄► ◄►█▄${reset} ${boldon}${yellowf}▄█◄► ◄►█▄${reset} ${boldon}${bluef}▄█◄► ◄►█▄${reset} ${boldon}${purplef}▄█◄► ◄►█▄${reset} ${boldon}${cyanf}▄█◄► ◄►█▄${reset} ${white}║ 41 | ${white}║ ${boldon}${redf}▀█  █▀${reset} ${boldon}${greenf}▀█  █▀${reset} ${boldon}${yellowf}▀█  █▀${reset} ${boldon}${bluef}▀█  █▀${reset} ${boldon}${purplef}▀█  █▀${reset} ${boldon}${cyanf}▀█  █▀${reset} ${white}║ 42 | ${white}║ ${redf} ▀█ █▀${reset} ${greenf} ▀█ █▀${reset} ${yellowf} ▀█ █▀${reset} ${bluef} ▀█ █▀${reset} ${purplef} ▀█ █▀${reset} ${cyanf} ▀█ █▀${reset} ${white}║ 43 | ${white}╚══════════════════════════════════════════════════════════════════╝ 44 | 45 | EOF 46 | 47 | -------------------------------------------------------------------------------- /color-scripts/fade: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # ANSI Color -- use these variables to easily have different color 4 | # and format output. Make sure to output the reset sequence after 5 | # colors (f = foreground, b = background), and use the 'off' 6 | # feature for anything you turn on. 7 | # Author: pfh 8 | # Source: http://crunchbang.org/forums/viewtopic.php?pid=127737#p127737 9 | 10 | initializeANSI() 11 | { 12 | esc="" 13 | 14 | blackf="${esc}[30m"; redf="${esc}[31m"; greenf="${esc}[32m" 15 | yellowf="${esc}[33m" bluef="${esc}[34m"; purplef="${esc}[35m" 16 | cyanf="${esc}[36m"; whitef="${esc}[37m" 17 | 18 | blackb="${esc}[40m"; redb="${esc}[41m"; greenb="${esc}[42m" 19 | yellowb="${esc}[43m" blueb="${esc}[44m"; purpleb="${esc}[45m" 20 | cyanb="${esc}[46m"; whiteb="${esc}[47m" 21 | 22 | boldon="${esc}[1m"; boldoff="${esc}[22m" 23 | italicson="${esc}[3m"; italicsoff="${esc}[23m" 24 | ulon="${esc}[4m"; uloff="${esc}[24m" 25 | invon="${esc}[7m"; invoff="${esc}[27m" 26 | 27 | reset="${esc}[0m" 28 | } 29 | 30 | # note in this first use that switching colors doesn't require a reset 31 | # first - the new color overrides the old one. 32 | 33 | initializeANSI 34 | 35 | cat << EOF 36 | 37 | ${redf}▒▒▒▒${reset} ${boldon}${redf}▒▒${reset} ${greenf}▒▒▒▒${reset} ${boldon}${greenf}▒▒${reset} ${yellowf}▒▒▒▒${reset} ${boldon}${yellowf}▒▒${reset} ${bluef}▒▒▒▒${reset} ${boldon}${bluef}▒▒${reset} ${purplef}▒▒▒▒${reset} ${boldon}${purplef}▒▒${reset} ${cyanf}▒▒▒▒${reset} ${boldon}${cyanf}▒▒${reset} 38 | ${redf}▒▒ ■${reset} ${boldon}${redf}▒▒${reset} ${greenf}▒▒ ■${reset} ${boldon}${greenf}▒▒${reset} ${yellowf}▒▒ ■${reset} ${boldon}${yellowf}▒▒${reset} ${bluef}▒▒ ■${reset} ${boldon}${bluef}▒▒${reset} ${purplef}▒▒ ■${reset} ${boldon}${purplef}▒▒${reset} ${cyanf}▒▒ ■${reset} ${boldon}${cyanf}▒▒${reset} 39 | ${redf}▒▒ ${reset}${boldon}${redf}▒▒▒▒${reset} ${greenf}▒▒ ${reset}${boldon}${greenf}▒▒▒▒${reset} ${yellowf}▒▒ ${reset}${boldon}${yellowf}▒▒▒▒${reset} ${bluef}▒▒ ${reset}${boldon}${bluef}▒▒▒▒${reset} ${purplef}▒▒ ${reset}${boldon}${purplef}▒▒▒▒${reset} ${cyanf}▒▒ ${reset}${boldon}${cyanf}▒▒▒▒${reset} 40 | 41 | EOF 42 | -------------------------------------------------------------------------------- /color-scripts/ghosts: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | # ANSI color scheme script by pfh 4 | # Source: http://crunchbang.org/forums/viewtopic.php?pid=157979#p157979 5 | # Initializing mod by lolilolicon from Archlinux 6 | 7 | f=3 b=4 8 | for j in f b; do 9 | for i in {0..7}; do 10 | printf -v $j$i %b "\e[${!j}${i}m" 11 | done 12 | done 13 | bld=$'\e[1m' 14 | rst=$'\e[0m' 15 | inv=$'\e[7m' 16 | cat << EOF 17 | 18 | $f1 ▄▄▄ $f2 ▄▄▄ $f3 ▄▄▄ $f4 ▄▄▄ $f5 ▄▄▄ $f6 ▄▄▄ 19 | $f1 ▀█▀██ ▄ $f2 ▀█▀██ ▄ $f3 ▀█▀██ ▄ $f4 ▀█▀██ ▄ $f5 ▀█▀██ ▄ $f6 ▀█▀██ ▄ 20 | $f1 ▀▄██████▀ $f2 ▀▄██████▀ $f3 ▀▄██████▀ $f4 ▀▄██████▀ $f5 ▀▄██████▀ $f6 ▀▄██████▀ 21 | $f1 ▀█████ $f2 ▀█████ $f3 ▀█████ $f4 ▀█████ $f5 ▀█████ $f6 ▀█████ 22 | $f1 ▀▀▀▀▄ $f2 ▀▀▀▀▄ $f3 ▀▀▀▀▄ $f4 ▀▀▀▀▄ $f5 ▀▀▀▀▄ $f6 ▀▀▀▀▄ 23 | $bld 24 | $f1 ▄▄▄ $f2 ▄▄▄ $f3 ▄▄▄ $f4 ▄▄▄ $f5 ▄▄▄ $f6 ▄▄▄ 25 | $f1 ▀█▀██ ▄ $f2 ▀█▀██ ▄ $f3 ▀█▀██ ▄ $f4 ▀█▀██ ▄ $f5 ▀█▀██ ▄ $f6 ▀█▀██ ▄ 26 | $f1 ▀▄██████▀ $f2 ▀▄██████▀ $f3 ▀▄██████▀ $f4 ▀▄██████▀ $f5 ▀▄██████▀ $f6 ▀▄██████▀ 27 | $f1 ▀█████ $f2 ▀█████ $f3 ▀█████ $f4 ▀█████ $f5 ▀█████ $f6 ▀█████ 28 | $f1 ▀▀▀▀▄ $f2 ▀▀▀▀▄ $f3 ▀▀▀▀▄ $f4 ▀▀▀▀▄ $f5 ▀▀▀▀▄ $f6 ▀▀▀▀▄ 29 | $rst 30 | EOF 31 | -------------------------------------------------------------------------------- /color-scripts/guns: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | # ANSI color scheme script by pfh 4 | # Source: http://crunchbang.org/forums/viewtopic.php?pid=151602#p151602 5 | # Initializing mod by lolilolicon from Archlinux 6 | 7 | 8 | f=3 b=4 9 | for j in f b; do 10 | for i in {0..7}; do 11 | printf -v $j$i %b "\e[${!j}${i}m" 12 | done 13 | done 14 | bld=$'\e[1m' 15 | rst=$'\e[0m' 16 | inv=$'\e[7m' 17 | cat << EOF 18 | 19 | $f1 ▀▄▄███████████ $f2 ▀▄▄███████████ $f3 ▀▄▄███████████ $f4 ▀▄▄███████████ $f5 ▀▄▄███████████ $f6 ▀▄▄███████████ 20 | $f1 ▄███▀█▀▀▀ $f2 ▄███▀█▀▀▀ $f3 ▄███▀█▀▀▀ $f4 ▄███▀█▀▀▀ $f5 ▄███▀█▀▀▀ $f6 ▄███▀█▀▀▀ 21 | $f1 ▐███▄▀ $f2▐███▄▀ $f3▐███▄▀ $f4▐███▄▀ $f5▐███▄▀ $f6▐███▄▀ 22 | $f1 ▐███ $f2▐███ $f3▐███ $f4▐███ $f5▐███ $f6▐███ 23 | $f1 ▀▀▀ $f2 ▀▀▀ $f3 ▀▀▀ $f4 ▀▀▀ $f5 ▀▀▀ $f6 ▀▀▀ 24 | $bld 25 | $f1 ▀▄▄███████████ $f2 ▀▄▄███████████ $f3 ▀▄▄███████████ $f4 ▀▄▄███████████ $f5 ▀▄▄███████████ $f6 ▀▄▄███████████ 26 | $f1 ▄███▀█▀▀▀ $f2 ▄███▀█▀▀▀ $f3 ▄███▀█▀▀▀ $f4 ▄███▀█▀▀▀ $f5 ▄███▀█▀▀▀ $f6 ▄███▀█▀▀▀ 27 | $f1 ▐███▄▀ $f2▐███▄▀ $f3▐███▄▀ $f4▐███▄▀ $f5▐███▄▀ $f6▐███▄▀ 28 | $f1 ▐███ $f2▐███ $f3▐███ $f4▐███ $f5▐███ $f6▐███ 29 | $f1 ▀▀▀ $f2 ▀▀▀ $f3 ▀▀▀ $f4 ▀▀▀ $f5 ▀▀▀ $f6 ▀▀▀ 30 | $rst 31 | EOF 32 | -------------------------------------------------------------------------------- /color-scripts/hex: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | # Author: SuNjACk 4 | # Source: http://crunchbang.org/forums/viewtopic.php?pid=135226#p135226 5 | 6 | xdef="$HOME/.Xresources" 7 | colors=( $( sed -re '/^!/d; /^$/d; /^#/d; s/(\*color)([0-9]):/\10\2:/g;' $xdef | grep 'color[01][0-9]:' | sort | sed 's/^.*: *//g' ) ) 8 | 9 | echo -e "\e[1;37m 10 | Black Red Green Yellow Blue Magenta Cyan White 11 | ──────────────────────────────────────────────────────────────────────\e[0m" 12 | for i in {0..7}; do echo -en "\e[$((30+$i))m ${colors[i]} \e[0m"; done 13 | echo 14 | for i in {8..15}; do echo -en "\e[1;$((22+$i))m ${colors[i]} \e[0m"; done 15 | echo -e "\n" 16 | -------------------------------------------------------------------------------- /color-scripts/hex-block: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # source: Meyithi, https://bbs.archlinux.org/viewtopic.php?pid=1010829#p1010829 3 | 4 | xdef="$HOME/.Xresources" 5 | 6 | colors=( $( sed -re '/^!/d; /^$/d; /^#/d; s/(\*color)([0-9]):/\10\2:/g;' $xdef | grep 'color[01][0-9]:' | sort | sed 's/^.*: *//g' ) 7 | ) 8 | 9 | echo 10 | for i in {0..7}; do echo -en "\e[$((30+$i))m ${colors[i]} \u2588\u2588 \e[0m"; done 11 | echo 12 | for i in {8..15}; do echo -en "\e[1;$((22+$i))m ${colors[i]} \u2588\u2588 \e[0m"; done 13 | echo -e "\n" 14 | -------------------------------------------------------------------------------- /color-scripts/illumina: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # Author: venam 4 | # Source: https://nixers.net/showthread.php?tid=1921 5 | 6 | cat << EOF 7 | ._________________________________.  8 | |       |  9 | |   _   |  10 | |  //\  |  11 | |  //-- // \ ========,  |  12 | |  // // \ /  |  13 | |  // // \ /  |  14 | |  __________ ___  __ _________ |  15 | |  / \    // //  |  16 | |  / \ // //  |  17 | |  /__________________//  |  18 | |  \ //  |  19 | |  \//  |  20 | |   "   |  21 | |        |  22 | '---------------------------------'  23 | EOF 24 | -------------------------------------------------------------------------------- /color-scripts/jangofett: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # ANSI Color -- use these variables to easily have different color 4 | # and format output. Make sure to output the reset sequence after 5 | # colors (f = foreground, b = background), and use the 'off' 6 | # feature for anything you turn on. 7 | # Author: pfh 8 | # Source: http://crunchbang.org/forums/viewtopic.php?pid=129265#p129265 9 | 10 | initializeANSI() 11 | { 12 | esc="" 13 | 14 | blackf="${esc}[30m"; redf="${esc}[31m"; greenf="${esc}[32m" 15 | yellowf="${esc}[33m" bluef="${esc}[34m"; purplef="${esc}[35m" 16 | cyanf="${esc}[36m"; whitef="${esc}[37m" 17 | 18 | blackb="${esc}[40m"; redb="${esc}[41m"; greenb="${esc}[42m" 19 | yellowb="${esc}[43m" blueb="${esc}[44m"; purpleb="${esc}[45m" 20 | cyanb="${esc}[46m"; whiteb="${esc}[47m" 21 | 22 | boldon="${esc}[1m"; boldoff="${esc}[22m" 23 | italicson="${esc}[3m"; italicsoff="${esc}[23m" 24 | ulon="${esc}[4m"; uloff="${esc}[24m" 25 | invon="${esc}[7m"; invoff="${esc}[27m" 26 | 27 | reset="${esc}[0m" 28 | } 29 | 30 | # note in this first use that switching colors doesn't require a reset 31 | # first - the new color overrides the old one. 32 | # ****************************** Building blocks: █ ▓ ▒ ░ ▄ ▀ ▐ ▌ ● ═ ║ ╔ ╦ ╗ ╚ ╩ ╝ ■ ▬ ▲ ▼ ◄ ► 33 | 34 | initializeANSI 35 | 36 | cat << EOF 37 | 38 | ${redf} ▄█████▄ ${greenf} ▄█████▄ ${yellowf} ▄█████▄ ${bluef} ▄█████▄ ${purplef} ▄█████▄ ${cyanf} ▄█████▄ 39 | ${redf} █▄▄ ▄▄█ ${greenf} █▄▄ ▄▄█ ${yellowf} █▄▄ ▄▄█ ${bluef} █▄▄ ▄▄█ ${purplef} █▄▄ ▄▄█ ${cyanf} █▄▄ ▄▄█ 40 | ${redf} ███ ███ ${greenf} ███ ███ ${yellowf} ███ ███ ${bluef} ███ ███ ${purplef} ███ ███ ${cyanf} ███ ███ 41 | ${redf} ▀██ ██▀ ${greenf} ▀██ ██▀ ${yellowf} ▀██ ██▀ ${bluef} ▀██ ██▀ ${purplef} ▀██ ██▀ ${cyanf} ▀██ ██▀ 42 | ${redf} ▀ ▀ ${greenf} ▀ ▀ ${yellowf} ▀ ▀ ${bluef} ▀ ▀ ${purplef} ▀ ▀ ${cyanf} ▀ ▀ 43 | ${boldon} 44 | ${redf} ▄█████▄ ${greenf} ▄█████▄ ${yellowf} ▄█████▄ ${bluef} ▄█████▄ ${purplef} ▄█████▄ ${cyanf} ▄█████▄ 45 | ${redf} █▄▄ ▄▄█ ${greenf} █▄▄ ▄▄█ ${yellowf} █▄▄ ▄▄█ ${bluef} █▄▄ ▄▄█ ${purplef} █▄▄ ▄▄█ ${cyanf} █▄▄ ▄▄█ 46 | ${redf} ███ ███ ${greenf} ███ ███ ${yellowf} ███ ███ ${bluef} ███ ███ ${purplef} ███ ███ ${cyanf} ███ ███ 47 | ${redf} ▀██ ██▀ ${greenf} ▀██ ██▀ ${yellowf} ▀██ ██▀ ${bluef} ▀██ ██▀ ${purplef} ▀██ ██▀ ${cyanf} ▀██ ██▀ 48 | ${redf} ▀ ▀ ${greenf} ▀ ▀ ${yellowf} ▀ ▀ ${bluef} ▀ ▀ ${purplef} ▀ ▀ ${cyanf} ▀ ▀ 49 | ${reset} 50 | 51 | EOF 52 | -------------------------------------------------------------------------------- /color-scripts/monster: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # Author: gutterslob 4 | # Source: http://crunchbang.org/forums/viewtopic.php?pid=130590#p130590 5 | 6 | initializeANSI() 7 | { 8 | esc="" 9 | 10 | blackf="${esc}[30m"; redf="${esc}[31m"; greenf="${esc}[32m" 11 | yellowf="${esc}[33m" bluef="${esc}[34m"; purplef="${esc}[35m" 12 | cyanf="${esc}[36m"; whitef="${esc}[37m" 13 | 14 | blackb="${esc}[40m"; redb="${esc}[41m"; greenb="${esc}[42m" 15 | yellowb="${esc}[43m" blueb="${esc}[44m"; purpleb="${esc}[45m" 16 | cyanb="${esc}[46m"; whiteb="${esc}[47m" 17 | 18 | boldon="${esc}[1m"; boldoff="${esc}[22m" 19 | italicson="${esc}[3m"; italicsoff="${esc}[23m" 20 | ulon="${esc}[4m"; uloff="${esc}[24m" 21 | invon="${esc}[7m"; invoff="${esc}[27m" 22 | 23 | reset="${esc}[0m" 24 | } 25 | 26 | initializeANSI 27 | 28 | cat << EOF 29 | 30 | ${reset}${blackf}| | | | |${reset} 31 | ${redf}█ █${reset} ${blackf}|${reset} ${greenf}█ █${reset} ${blackf}|${reset} ${yellowf}█ █${reset} ${blackf}|${reset} ${bluef}█ █${reset} ${blackf}|${reset} ${purplef}█ █${reset} ${blackf}|${reset} ${cyanf}█ █${reset} 32 | ${redf}███████${reset} ${blackf}|${reset} ${greenf}███████${reset} ${blackf}|${reset} ${yellowf}███████${reset} ${blackf}|${reset} ${bluef}███████${reset} ${blackf}|${reset} ${purplef}███████${reset} ${blackf}|${reset} ${cyanf}███████${reset} 33 | ${redf}███${boldon}${redb}██${reset}${redf}█${boldon}${redb}██${reset}${redf}███${reset} ${blackf}|${reset} ${greenf}███${boldon}${greenb}██${reset}${greenf}█${boldon}${greenb}██${reset}${greenf}███${reset} ${blackf}|${reset} ${yellowf}███${boldon}${yellowb}██${reset}${yellowf}█${boldon}${yellowb}██${reset}${yellowf}███${reset} ${blackf}|${reset} ${bluef}███${boldon}${blueb}██${reset}${bluef}█${boldon}${blueb}██${reset}${bluef}███${reset} ${blackf}|${reset} ${purplef}███${boldon}${purpleb}██${reset}${purplef}█${boldon}${purpleb}██${reset}${purplef}███${reset} ${blackf}|${reset} ${cyanf}███${boldon}${cyanb}██${reset}${cyanf}█${boldon}${cyanb}██${reset}${cyanf}███${reset} 34 | ${redf}████${boldon}${redb}█${reset}${redf}████${reset} ${blackf}|${reset} ${greenf}████${boldon}${greenb}█${reset}${greenf}████${reset} ${blackf}|${reset} ${yellowf}████${boldon}${yellowb}█${reset}${yellowf}████${reset} ${blackf}|${reset} ${bluef}████${boldon}${blueb}█${reset}${bluef}████${reset} ${blackf}|${reset} ${purplef}████${boldon}${purpleb}█${reset}${purplef}████${reset} ${blackf}|${reset} ${cyanf}████${boldon}${cyanb}█${reset}${cyanf}████${reset} 35 | ${redf}█ █ ${boldon}█${reset} ${redf}█ █${reset} ${blackf}|${reset} ${greenf}█ █ ${boldon}█${reset} ${greenf}█ █${reset} ${blackf}|${reset} ${yellowf}█ █ ${boldon}█${reset} ${yellowf}█ █${reset} ${blackf}|${reset} ${bluef}█ █ ${boldon}█${reset} ${bluef}█ █${reset} ${blackf}|${reset} ${purplef}█ █ ${boldon}█${reset} ${purplef}█ █${reset} ${blackf}|${reset} ${cyanf}█ █ ${boldon}█${reset} ${cyanf}█ █${reset} 36 | ${redf}█ █${reset} ${blackf}|${reset} ${greenf}█ █${reset} ${blackf}|${reset} ${yellowf}█ █${reset} ${blackf}|${reset} ${bluef}█ █${reset} ${blackf}|${reset} ${purplef}█ █${reset} ${blackf}|${reset} ${cyanf}█ █${reset} 37 | ${blackf}| | | | |${reset} 38 | EOF 39 | -------------------------------------------------------------------------------- /color-scripts/mouseface: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # ANSI Color -- use these variables to easily have different color 4 | # and format output. Make sure to output the reset sequence after 5 | # colors (f = foreground, b = background), and use the 'off' 6 | # feature for anything you turn on. 7 | 8 | # Author: ivo 9 | # Source: http://crunchbang.org/forums/viewtopic.php?pid=130522#p130522 10 | 11 | initializeANSI() 12 | { 13 | esc="" 14 | 15 | blackf="${esc}[30m"; redf="${esc}[31m"; greenf="${esc}[32m" 16 | yellowf="${esc}[33m" bluef="${esc}[34m"; purplef="${esc}[35m" 17 | cyanf="${esc}[36m"; whitef="${esc}[37m" 18 | 19 | blackb="${esc}[40m"; redb="${esc}[41m"; greenb="${esc}[42m" 20 | yellowb="${esc}[43m" blueb="${esc}[44m"; purpleb="${esc}[45m" 21 | cyanb="${esc}[46m"; whiteb="${esc}[47m" 22 | 23 | boldon="${esc}[1m"; boldoff="${esc}[22m" 24 | italicson="${esc}[3m"; italicsoff="${esc}[23m" 25 | ulon="${esc}[4m"; uloff="${esc}[24m" 26 | invon="${esc}[7m"; invoff="${esc}[27m" 27 | 28 | reset="${esc}[0m" 29 | } 30 | 31 | # note in this first use that switching colors doesn't require a reset 32 | # first - the new color overrides the old one. 33 | 34 | initializeANSI 35 | 36 | cat << EOF 37 | 38 | ${boldon}${redf} █ █ ${reset} ${boldon}${greenf}█ █ ${reset} ${boldon}${yellowf}█ █ ${reset} ${boldon}${bluef}█ █ ${reset} ${boldon}${purplef}█ █ ${reset} ${boldon}${cyanf}█ █ ${reset} 39 | ${boldon}${redf} ■ ■ ${reset} ${boldon}${greenf} ■ ■ ${reset} ${boldon}${yellowf} ■ ■ ${reset} ${boldon}${bluef} ■ ■ ${reset} ${boldon}${purplef} ■ ■ ${reset} ${boldon}${cyanf} ■ ■ ${reset} 40 | ${boldon}${redf} =■= ${reset} ${boldon}${greenf} =■= ${reset} ${boldon}${yellowf} =■= ${reset} ${boldon}${bluef} =■= ${reset} ${boldon}${purplef} =■= ${reset} ${boldon}${cyanf} =■= ${reset} 41 | 42 | ${redf} █=@=█ ${reset} ${greenf}█=@=█ ${reset} ${yellowf}█=@=█ ${reset} ${bluef}█=@=█ ${reset} ${purplef}█=@=█ ${reset} ${cyanf}█=@=█ ${reset} 43 | ${redf} ■ ■ ${reset} ${greenf} ■ ■ ${reset} ${yellowf} ■ ■ ${reset} ${bluef} ■ ■ ${reset} ${purplef} ■ ■ ${reset} ${cyanf} ■ ■ ${reset} 44 | ${redf} =■= ${reset} ${greenf} =■= ${reset} ${yellowf} =■= ${reset} ${bluef} =■= ${reset} ${purplef} =■= ${reset} ${cyanf} =■= ${reset} 45 | 46 | EOF 47 | -------------------------------------------------------------------------------- /color-scripts/mouseface2: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # Author: Ivo 4 | # Source: http://crunchbang.org/forums/viewtopic.php?pid=150114#p150114 5 | # ANSI Color -- use these variables to easily have different color 6 | # and format output. Make sure to output the reset sequence after 7 | # colors (f = foreground, b = background), and use the 'off' 8 | # feature for anything you turn on. 9 | 10 | initializeANSI() 11 | { 12 | esc="" 13 | 14 | blackf="${esc}[30m"; redf="${esc}[31m"; greenf="${esc}[32m" 15 | yellowf="${esc}[33m" bluef="${esc}[34m"; purplef="${esc}[35m" 16 | cyanf="${esc}[36m"; whitef="${esc}[37m" whitef="${esc}[37m" 17 | 18 | blackb="${esc}[40m"; redb="${esc}[41m"; greenb="${esc}[42m" 19 | yellowb="${esc}[43m" blueb="${esc}[44m"; purpleb="${esc}[45m" 20 | cyanb="${esc}[46m"; whiteb="${esc}[47m" 21 | 22 | boldon="${esc}[1m"; boldoff="${esc}[22m" 23 | italicson="${esc}[3m"; italicsoff="${esc}[23m" 24 | ulon="${esc}[4m"; uloff="${esc}[24m" 25 | invon="${esc}[7m"; invoff="${esc}[27m" 26 | 27 | reset="${esc}[0m" 28 | } 29 | 30 | # note in this first use that switching colors doesn't require a reset 31 | # first - the new color overrides the old one. 32 | 33 | initializeANSI 34 | 35 | cat << EOF 36 | 37 | ${boldon}${redf} ██ ██ ${reset} ${boldon}${greenf} ██ ██ ${reset} ${boldon}${yellowf} ██ ██ ${reset} ${boldon}${bluef} ██ ██ ${reset} ${boldon}${purplef} ██ ██ ${reset} ${boldon}${cyanf} ██ ██ ${reset} 38 | ${boldon}${redf} █${whitef} ■${reset}${boldon}${redf}█ █${whitef}■${reset}${boldon}${redf} █${reset} ${boldon}${greenf} █${whitef} ■${reset}${boldon}${greenf}█ █${whitef}■${reset}${boldon}${greenf} █${reset} ${boldon}${yellowf} █${whitef} ■${reset}${boldon}${yellowf}█ █${whitef}■${reset}${boldon}${yellowf} █${reset} ${boldon}${bluef} █${whitef} ■${reset}${boldon}${bluef}█ █${whitef}■${reset}${boldon}${bluef} █${reset} ${boldon}${purplef} █${whitef} ■${reset}${boldon}${purplef}█ █${whitef}■${reset}${boldon}${purplef} █${reset} ${boldon}${cyanf} █${whitef} ■${reset}${boldon}${cyanf}█ █${whitef}■${reset}${boldon}${cyanf} █${reset} 39 | ${redf} █ █ █ █ ${reset} ${greenf} █ █ █ █ ${reset} ${yellowf} █ █ █ █ ${reset} ${bluef} █ █ █ █ ${reset} ${purplef} █ █ █ █ ${reset} ${cyanf} █ █ █ █ ${reset} 40 | ${redf} █ █ █ ${reset} ${greenf} █ █ █ ${reset} ${yellowf} █ █ █ ${reset} ${bluef} █ █ █ ${reset} ${purplef} █ █ █ ${reset} ${cyanf} █ █ █ ${reset} 41 | ${redf} =■= ${reset} ${greenf} =■= ${reset} ${yellowf} =■= ${reset} ${bluef} =■= ${reset} ${purplef} =■= ${reset} ${cyanf} =■= ${reset} 42 | 43 | 44 | 45 | EOF 46 | -------------------------------------------------------------------------------- /color-scripts/pacman: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | # ANSI color scheme script featuring PACMAN 4 | # Author: pfh 5 | # Source: http://crunchbang.org/forums/viewtopic.php?pid=144481#p144481 6 | # Initializing procedure by lolilolicon 7 | 8 | f=3 b=4 9 | for j in f b; do 10 | for i in {0..7}; do 11 | printf -v $j$i %b "\e[${!j}${i}m" 12 | done 13 | done 14 | bld=$'\e[1m' 15 | rst=$'\e[0m' 16 | inv=$'\e[7m' 17 | 18 | cat << EOF 19 | 20 | $rst 21 | $f3 ▄███████▄ $f1 ▄██████▄ $f2 ▄██████▄ $f4 ▄██████▄ $f5 ▄██████▄ $f6 ▄██████▄ 22 | $f3▄█████████▀▀ $f1▄$f7█▀█$f1██$f7█▀█$f1██▄ $f2▄█$f7███$f2██$f7███$f2█▄ $f4▄█$f7███$f4██$f7███$f4█▄ $f5▄█$f7███$f5██$f7███$f5█▄ $f6▄██$f7█▀█$f6██$f7█▀█$f6▄ 23 | $f3███████▀ $f7▄▄ ▄▄ ▄▄ $f1█$f7▄▄█$f1██$f7▄▄█$f1███ $f2██$f7█ █$f2██$f7█ █$f2██ $f4██$f7█ █$f4██$f7█ █$f4██ $f5██$f7█ █$f5██$f7█ █$f5██ $f6███$f7█▄▄$f6██$f7█▄▄$f6█ 24 | $f3███████▄ $f7▀▀ ▀▀ ▀▀ $f1████████████ $f2████████████ $f4████████████ $f5████████████ $f6████████████ 25 | $f3▀█████████▄▄ $f1██▀██▀▀██▀██ $f2██▀██▀▀██▀██ $f4██▀██▀▀██▀██ $f5██▀██▀▀██▀██ $f6██▀██▀▀██▀██ 26 | $f3 ▀███████▀ $f1▀ ▀ ▀ ▀ $f2▀ ▀ ▀ ▀ $f4▀ ▀ ▀ ▀ $f5▀ ▀ ▀ ▀ $f6▀ ▀ ▀ ▀ 27 | $bld 28 | $f3 ▄███████▄ $f1 ▄██████▄ $f2 ▄██████▄ $f4 ▄██████▄ $f5 ▄██████▄ $f6 ▄██████▄ 29 | $f3▄█████████▀▀ $f1▄$f7█▀█$f1██$f7█▀█$f1██▄ $f2▄█$f7█ █$f2██$f7█ █$f2█▄ $f4▄█$f7█ █$f4██$f7█ █$f4█▄ $f5▄█$f7█ █$f5██$f7█ █$f5█▄ $f6▄██$f7█▀█$f6██$f7█▀█$f6▄ 30 | $f3███████▀ $f7▄▄ ▄▄ ▄▄ $f1█$f7▄▄█$f1██$f7▄▄█$f1███ $f2██$f7███$f2██$f7███$f2██ $f4██$f7███$f4██$f7███$f4██ $f5██$f7███$f5██$f7███$f5██ $f6███$f7█▄▄$f6██$f7█▄▄$f6█ 31 | $f3███████▄ $f7▀▀ ▀▀ ▀▀ $f1████████████ $f2████████████ $f4████████████ $f5████████████ $f6████████████ 32 | $f3▀█████████▄▄ $f1██▀██▀▀██▀██ $f2██▀██▀▀██▀██ $f4██▀██▀▀██▀██ $f5██▀██▀▀██▀██ $f6██▀██▀▀██▀██ 33 | $f3 ▀███████▀ $f1▀ ▀ ▀ ▀ $f2▀ ▀ ▀ ▀ $f4▀ ▀ ▀ ▀ $f5▀ ▀ ▀ ▀ $f6▀ ▀ ▀ ▀ 34 | $rst 35 | 36 | EOF 37 | -------------------------------------------------------------------------------- /color-scripts/panes: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | # Author: GekkoP 4 | # Source: http://linuxbbq.org/bbs/viewtopic.php?f=4&t=1656#p33189 5 | 6 | f=3 b=4 7 | for j in f b; do 8 | for i in {0..7}; do 9 | printf -v $j$i %b "\e[${!j}${i}m" 10 | done 11 | done 12 | d=$'\e[1m' 13 | t=$'\e[0m' 14 | v=$'\e[7m' 15 | 16 | 17 | cat << EOF 18 | 19 | $f1███$d▄$t $f2███$d▄$t $f3███$d▄$t $f4███$d▄$t $f5███$d▄$t $f6███$d▄$t $f7███$d▄$t 20 | $f1███$d█$t $f2███$d█$t $f3███$d█$t $f4███$d█$t $f5███$d█$t $f6███$d█$t $f7███$d█$t 21 | $f1███$d█$t $f2███$d█$t $f3███$d█$t $f4███$d█$t $f5███$d█$t $f6███$d█$t $f7███$d█$t 22 | $d$f1 ▀▀▀ $f2▀▀▀ $f3▀▀▀ $f4▀▀▀ $f5▀▀▀ $f6▀▀▀ $f7▀▀▀ 23 | EOF 24 | -------------------------------------------------------------------------------- /color-scripts/pinguco: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # Author: lantlos 3 | 4 | initializeANSI() 5 | { 6 | esc="" 7 | 8 | blackf="${esc}[31m"; redf="${esc}[31m"; greenf="${esc}[32m" 9 | yellowf="${esc}[33m" bluef="${esc}[34m"; purplef="${esc}[35m" 10 | cyanf="${esc}[36m"; whitef="${esc}[37m" 11 | 12 | blackb="${esc}[40m"; redb="${esc}[41m"; greenb="${esc}[42m" 13 | yellowb="${esc}[43m" blueb="${esc}[44m"; purpleb="${esc}[45m" 14 | cyanb="${esc}[46m"; whiteb="${esc}[47m" 15 | 16 | boldon="${esc}[1m"; boldoff="${esc}[22m" 17 | italicson="${esc}[3m"; italicsoff="${esc}[23m" 18 | ulon="${esc}[4m"; uloff="${esc}[24m" 19 | invon="${esc}[7m"; invoff="${esc}[27m" 20 | 21 | reset="${esc}[0m" 22 | } 23 | 24 | clear 25 | 26 | initializeANSI 27 | 28 | cat << EOF 29 | 30 | ${boldon}${blackf} ██████${reset} 31 | ${boldon}${blackf}██${reset}██${reset}${bluef}██${reset}${boldon}${blackf}██${reset}${bluef}██${reset} 32 | ${boldon}${blackf}██${reset}██${bluef}██${reset}${boldon}${blackf}██${reset}${bluef}██${reset} 33 | ${boldon}${blackf}██████${reset}${purplef}██████${reset} 34 | ${boldon}${blackf}████${reset}████${boldon}${blackf}██${reset} 35 | ${boldon}${blackf}████${reset}████████${boldon}${blackf}██${reset} 36 | ${boldon}${blackf}████${reset}████████${boldon}${blackf}██${reset} 37 | ${boldon}${blackf}████${reset}████████${boldon}${blackf}██${reset} 38 | ${boldon}${blackf}████${reset}████${boldon}${blackf}██${reset} 39 | ${boldon}${blackf}███${reset}${purplef}███ ████${reset} 40 | 41 | EOF 42 | -------------------------------------------------------------------------------- /color-scripts/pipes1: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # Animated pipes.sh terminal screensaver at an angle. 3 | # Copyright (C) 2013 by Yu-Jie Lin 4 | # 5 | # Permission is hereby granted, free of charge, to any person obtaining a copy 6 | # of this software and associated documentation files (the "Software"), to deal 7 | # in the Software without restriction, including without limitation the rights 8 | # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | # copies of the Software, and to permit persons to whom the Software is 10 | # furnished to do so, subject to the following conditions: 11 | # 12 | # The above copyright notice and this permission notice shall be included in 13 | # all copies or substantial portions of the Software. 14 | # 15 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | # THE SOFTWARE. 22 | # 23 | # Blog: http://blog.yjl.im/2013/07/pipesxsh-animated-pipessh-terminal.html 24 | # Gist: https://gist.github.com/livibetter/5974905 25 | # Screenshot: https://lh3.googleusercontent.com/-UaCta_DtgrQ/Ud6dqIgcfmI/AAAAAAAAE_8/VXPac0OpULU/s800/pipesX.sh.gif 26 | # Screenshot: https://lh6.googleusercontent.com/-yBety-A8J_c/Ud6dk10sjBI/AAAAAAAAE_0/S98aRRV8t0s/s800/pipesX.sh%25202013-07-11--19%253A51%253A05.png 27 | # Screencast: http://youtu.be/dITTlFPYVPA 28 | 29 | W=$(tput cols) H=$(tput lines) 30 | # maximal random value + 1 31 | M=32768 32 | 33 | SETS=('╱╲' '/\') 34 | COLORS=(31 32 33 34 35 36 37) 35 | 36 | # default values 37 | N=1 38 | T=0 39 | I=0.05 40 | P=25 41 | R=$((W * H / 4)) 42 | 43 | HELP="Usage: $(basename $0) [OPTIONS] 44 | Animated pipes.sh terminal screensaver at an angle. 45 | 46 | Options: 47 | 48 | -n [1-] number of pipes. (Default: $N) 49 | -t [0-$((${#SETS[@]} - 1))] type of pipes. (Default: $T) 50 | -i [float] piping interval or maze generation interval. (Default: $I) 51 | -P [0-100] probability of a turning pipe or of \\ in maze generation. (Default: $P) 52 | -r [LIMIT] reset after x characters, 0 if no limit. (Default: $R) 53 | -R random starting point. 54 | -C no color. 55 | -X maze generation. 56 | -h this help message. 57 | " 58 | 59 | while getopts "n:t:i:P:r:RCXh" arg; do 60 | case $arg in 61 | n) 62 | ((N = OPTARG > 0 ? OPTARG : N)) 63 | ;; 64 | t) 65 | ((T = (OPTARG >= 0 && OPTARG < ${#SETS[@]}) ? OPTARG : T)) 66 | ;; 67 | i) 68 | I=$OPTARG 69 | ;; 70 | P) 71 | ((P = (OPTARG >= 0 && OPTARG <= 100) ? OPTARG : P)) 72 | ;; 73 | r) 74 | ((R = OPTARG >= 0 ? OPTARG : R)) 75 | ;; 76 | R) 77 | RNDSTART=1 78 | ;; 79 | C) 80 | NOCOLOR=1 81 | ;; 82 | X) 83 | MAZE=1 84 | ;; 85 | h) 86 | echo -e "$HELP" 87 | exit 0 88 | ;; 89 | esac 90 | done 91 | 92 | do_exit() { 93 | # Show cursor and echo stdin 94 | echo -ne "\e[?25h" 95 | stty echo 96 | clear 97 | exit 0 98 | } 99 | trap do_exit INT TERM 100 | 101 | # No echo stdin and hide the cursor 102 | stty -echo 103 | echo -ne "\e[?25l" 104 | 105 | # maze geneartion 106 | while [[ $MAZE ]] && clear; do 107 | [[ $NOCOLOR ]] || echo -ne "\e[1;${COLORS[${#COLORS[@]} * RANDOM / M]}m" 108 | for ((i = 0; i < W * H; i++ )); do 109 | echo -ne ${SETS[T]:100 * RANDOM / M < P:1} 110 | done 111 | read -t $I -n 1 && [[ $REPLY =~ q|Q ]] && do_exit 112 | done 113 | 114 | # initialze values 115 | for ((n = 0; n < N; n++)); do 116 | ((X[n] = RNDSTART ? (W + 2) * RANDOM / M : W / 2)) 117 | ((Y[n] = RNDSTART ? (H + 2) * RANDOM / M : H / 2)) 118 | D[n]=$((4 * RANDOM / M)) 119 | C[n]=${COLORS[${#COLORS[@]} * RANDOM / M]} 120 | done 121 | 122 | clear 123 | while :; do 124 | for ((n = 0; n < N; n++, CC = 0)); do 125 | x=${X[n]} y=${Y[n]} 126 | d=${D[n]} c=${C[n]} 127 | 128 | # calculate new direction `d` 129 | # 1 0 130 | # \/ 4 directions 0 to 3 131 | # /\ 132 | # 2 3 133 | # valid directions: d: dd', d' is the new direction 134 | # d 135 | # 0: / 00 \ 01 03 136 | # / / /\ 137 | # 1: / 10 \ 11 12 138 | # \ \ /\ 139 | # 2: \/ 21 / 22 / 23 140 | # / \ 141 | # 3: \/ 30 \ 32 \ 33 142 | # / \ 143 | ((d = (100 * RANDOM / M) < P ? ((d + 1) + 2 * (RANDOM % 2)) % 4 : d)) 144 | ((e = (d + 1) % 4)) 145 | 146 | # calculate new position 147 | # d' x' y' 148 | # 0: x+1 y-1 149 | # 1: x-1 y-1 150 | # 2: x-1 y+1 151 | # 3: x+1 y+1 152 | ((xn = e < 2 ? x + 1 : x - 1)) 153 | ((yn = d < 2 ? y - 1 : y + 1)) 154 | 155 | # adjust position and change color? 156 | ((d < 2 && y == 0)) && ((yn--, CC=1)) 157 | ((e > 1 && x == 0)) && ((xn--, CC=1)) 158 | ((d > 1 && y == H)) && ((yn++, CC=1)) 159 | ((e < 2 && x == W)) && ((xn++, CC=1)) 160 | ((CC)) && c=${COLORS[${#COLORS[@]} * RANDOM / M]} 161 | 162 | # warp pipe 163 | ((xn = (xn + W + 1) % (W + 1))) 164 | ((yn = (yn + H + 1) % (H + 1))) 165 | 166 | # calculate position in terminal 167 | # d' xt yt 168 | # 0: x' y'+1 169 | # 1: x'+1 y'+1 170 | # 2: x'+1 y' 171 | # 3: x' y' 172 | ((xt = e < 2 ? xn : xn + 1)) 173 | ((yt = d < 2 ? yn + 1 : yn)) 174 | 175 | echo -ne "\e[${yt};${xt}H" 176 | [[ $NOCOLOR ]] || echo -ne "\e[1;${c}m" 177 | echo -n "${SETS[T]:d%2:1}" 178 | 179 | X[n]=$xn Y[n]=$yn 180 | D[n]=$d C[n]=$c 181 | done 182 | read -t $I -n 1 && [[ $REPLY =~ q|Q ]] && do_exit 183 | ((R)) && ((r += N, r >= R)) && r=0 && clear 184 | done 185 | 186 | do_exit 187 | 188 | -------------------------------------------------------------------------------- /color-scripts/pipes2: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | declare -i f=75 s=13 r=2000 t=0 c=1 n=0 l=0 4 | declare -ir w=$(tput cols) h=$(tput lines) 5 | declare -i x=$((w/2)) y=$((h/2)) 6 | declare -ar v=( [00]="\x83" [01]="\x8f" [03]="\x93" 7 | [10]="\x9b" [11]="\x81" [12]="\x93" 8 | [21]="\x97" [22]="\x83" [23]="\x9b" 9 | [30]="\x97" [32]="\x8f" [33]="\x81" ) 10 | 11 | OPTIND=1 12 | while getopts "f:s:r:h" arg; do 13 | case $arg in 14 | f) ((f=($OPTARG>19 && $OPTARG<101)?$OPTARG:$f));; 15 | s) ((s=($OPTARG>4 && $OPTARG<16 )?$OPTARG:$s));; 16 | r) ((r=($OPTARG>0)?$OPTARG:$r));; 17 | h) echo -e "Usage: pipes [OPTION]..." 18 | echo -e "Animated pipes terminal screensaver.\n" 19 | echo -e " -f [20-100]\tframerate (D=75)." 20 | echo -e " -s [5-15]\tprobability of a straight fitting (D=13)." 21 | echo -e " -r LIMIT\treset after x characters (D=2000)." 22 | echo -e " -h\t\thelp (this screen).\n" 23 | exit 0;; 24 | esac 25 | done 26 | 27 | tput smcup 28 | tput reset 29 | tput civis 30 | while ! read -t0.0$((1000/$f)) -n1; do 31 | # New position: 32 | (($l%2)) && ((x+=($l==1)?1:-1)) 33 | ((!($l%2))) && ((y+=($l==2)?1:-1)) 34 | 35 | # Loop on edges (change color on loop): 36 | ((c=($x>$w || $x<0 || $y>$h || $y<0)?($RANDOM%7-1):$c)) 37 | ((x=($x>$w)?0:(($x<0)?$w:$x))) 38 | ((y=($y>$h)?0:(($y<0)?$h:$y))) 39 | 40 | # New random direction: 41 | ((n=$RANDOM%$s-1)) 42 | ((n=($n>1||$n==0)?$l:$l+$n)) 43 | ((n=($n<0)?3:$n%4)) 44 | 45 | # Print: 46 | tput cup $y $x 47 | echo -ne "\033[1;3${c}m\xe2\x94${v[$l$n]}" 48 | (($t>$r)) && tput reset && tput civis && t=0 || ((t++)) 49 | l=$n 50 | done 51 | tput rmcup 52 | 53 | -------------------------------------------------------------------------------- /color-scripts/pipes2-slim: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | declare -i f=75 s=13 r=2000 t=0 c=1 n=0 l=0 4 | declare -ir w=$(tput cols) h=$(tput lines) 5 | declare -i x=$((w/2)) y=$((h/2)) 6 | 7 | declare -ar v=( [00]="\x82" [01]="\x8c" [03]="\x90" #### 8 | [10]="\x98" [11]="\x80" [12]="\x90" # Normal UTF-8 box characters. 9 | [21]="\x94" [22]="\x82" [23]="\x98" # (These are the default for they are supported almost everywhere.) 10 | [30]="\x94" [32]="\x8c" [33]="\x80" ) #### 11 | 12 | # declare -ar v=( [00]="\x83" [01]="\x8f" [03]="\x93" #### 13 | # [10]="\x9b" [11]="\x81" [12]="\x93" # Heavy UTF-8 box characters. 14 | # [21]="\x97" [22]="\x83" [23]="\x9b" # (Uncomment only if your terminal supports it) 15 | # [30]="\x97" [32]="\x8f" [33]="\x81" ) #### 16 | 17 | OPTIND=1 18 | while getopts "f:s:r:h" arg; do 19 | case $arg in 20 | f) ((f=($OPTARG>19 && $OPTARG<101)?$OPTARG:$f));; 21 | s) ((s=($OPTARG>4 && $OPTARG<16 )?$OPTARG:$s));; 22 | r) ((r=($OPTARG>0)?$OPTARG:$r));; 23 | h) echo -e "Usage: pipes [OPTION]..." 24 | echo -e "Animated pipes terminal screensaver.\n" 25 | echo -e " -f [20-100]\tframerate (D=75)." 26 | echo -e " -s [5-15]\tprobability of a straight fitting (D=13)." 27 | echo -e " -r LIMIT\treset after x characters (D=2000)." 28 | echo -e " -h\t\thelp (this screen).\n" 29 | exit 0;; 30 | esac 31 | done 32 | 33 | tput smcup 34 | tput reset 35 | tput civis 36 | 37 | trap "tput rmcup; tput reset; exit" SIGINT 38 | 39 | while true; do 40 | # New position: 41 | (($l%2)) && ((x+=($l==1)?1:-1)) 42 | ((!($l%2))) && ((y+=($l==2)?1:-1)) 43 | 44 | # Loop on edges (change color on loop): 45 | ((c=($x>$w || $x<0 || $y>$h || $y<0)?($RANDOM%7):$c)) 46 | ((x=($x>$w)?0:(($x<0)?$w:$x))) 47 | ((y=($y>$h)?0:(($y<0)?$h:$y))) 48 | 49 | # New random direction: 50 | ((n=$RANDOM%$s-1)) 51 | ((n=($n>1||$n==0)?$l:$l+$n)) 52 | ((n=($n<0)?3:$n%4)) 53 | 54 | # Print: 55 | tput cup $y $x 56 | printf "\033[1;3${c}m\xe2\x94${v[$l$n]}" 57 | (($t>$r)) && tput reset && tput civis && t=0 || ((t++)) 58 | l=$n 59 | sleep $(echo "scale=5;1/$f"|bc) 60 | done 61 | -------------------------------------------------------------------------------- /color-scripts/pukeskull: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # ┳━┓┳━┓0┏┓┓┳━┓┏━┓┓ ┳ 4 | # ┃┳┛┃━┫┃┃┃┃┃━┃┃ ┃┃┃┃ 5 | # ┃┗┛┛ ┃┃┃┗┛┻━┛┛━┛┗┻┛ 6 | # ┳━┓┳ ┓┳┏ ┳━┓ 7 | # ┃━┛┃ ┃┣┻┓┣━ 8 | # ┇ ┗━┛┃ ┛┻━┛ 9 | # ┓━┓┳┏ ┳ ┓┳ ┳ 10 | # ┗━┓┣┻┓┃ ┃┃ ┃ 11 | # ━━┛┇ ┛┗━┛┗━┛┗━┛ 12 | # 13 | # the worst color script 14 | # by xero 15 | 16 | cat << 'EOF' 17 |  ................. 18 |  .syhhso++++++++/++osyyhys+. 19 |  -oddyo+o+++++++++++++++o+oo+osdms: 20 |  :dmyo++oosssssssssssssssooooooo+/+ymm+` 21 |  hmyo++ossyyhhddddddddddddhyyyssss+//+ymd- 22 |  -mho+oosyhhhddmmmmmmmmmmmmmmddhhyyyso+//+hN+ 23 |  my+++syhhhhdmmNNNNNNNNNNNNmmmmmdhhyyyyo//+sd: 24 |  hs//+oyhhhhdmNNNNNNNNNNNNNNNNNNmmdhyhhhyo//++y 25 |  s+++shddhhdmmNNNNNNNNNNNNNNNNNNNNmdhhhdhyo/++/ 26 |  'hs+shmmmddmNNNNNNNNNNNNNNNNNNNNNmddddddhs+oh/ 27 |  shsshdmmmmmNNMMMMMMMMMMMNNNNNNNNmmmmmmdhssdh- 28 |  +ssohdmmmmNNNNNMMMMMMMMNNNNNNmmmmmNNmdhhhs:` 29 |  -+oo++////++sydmNNNNNNNNNNNNNNNNNNNdyyys/--://+//: 30 |  d/+hmNNNmmdddhhhdmNNNNNNNNNNNNNNNmdhyyyhhhddmmNmdyd- 31 |  ++--+ymNMMNNNNNNmmmmNNNNNNNNNNNmdhddmNNMMMMMMNmhyss 32 |  /d+` -+ydmNMMMMMMNNmNMMMMMMMmmmmNNMMMMMNNmh- :sdo 33 |  sNo ` /ohdmNNMMMMNNMMMMMNNNMMMMMNmdyo/ ` hNh 34 |  M+' ``-/oyhmNNMNhNMNhNMMMMNmho/ ` 'MN/ 35 |  d+' `-+osydh0w.nzmNNmho: 'mN: 36 |  +o/ ` :oo+:s :+o/-` -dds 37 |  :hdo x `-/ooss:':+ooo: ` 0 :sdm+ 38 |  +dNNNh+ :ydmNNm' `sddmyo +hmNmds 39 |  dhNMMNNNNmddhsyhdmmNNNM: NNmNmhyo+oyyyhmNMMNmysd 40 |  ydNNNNNh+/++ohmMMMMNMNh oNNNNNNNmho++++yddhyssy 41 |  `:sNMMMMN' `mNMNNNd/` 42 | XXXXXXXXX y/hMMNm/ .dXb. -hdmdy: ` XXXXXXX 43 | XXXXXXXX `o+hNNds. -ymNNy- .yhys+/`` XXXXXX 44 | XXXXXXXX +-+//o/+odMNMMMNdmh++////-/s XXXXXX 45 | XXXXXXX mhNd -+d/+myo++ysy/hs -mNsdh/ XXXXXX 46 | XXXXXXXX mhMN+ dMm-/-smy-::dMN/sMMmdo XXXXXX 47 | XXXXXXXXXX NMy+NMMh oMMMs yMMMyNMMs+ XXXXXXX 48 | XXXXXXXXXXX dy-hMMm+dMMMdoNMMh ydo XXXXXXXXX 49 | XXXXXXXXXXXXX  smm 'NMMy dms sm XXXXXXXXXX 50 | XXXXXXXXXXXXXX XXXXXXXXXXX 51 | XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX 52 | XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX 53 | XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX 54 | XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX 55 | XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX 56 | XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX 57 | XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX 58 | XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX 59 | XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX 60 | XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX 61 | XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX 62 | XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX 63 | XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX 64 | XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX 65 | XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX 66 | XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX 67 | XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX 68 | XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX 69 | XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX 70 | XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX 71 | XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX 72 | XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXER0 73 | EOF 74 | -------------------------------------------------------------------------------- /color-scripts/rails: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # ANSI Color -- use these variables to easily have different color 4 | # and format output. Make sure to output the reset sequence after 5 | # colors (f = foreground, b = background), and use the 'off' 6 | # feature for anything you turn on. 7 | # Author: pfh 8 | # Source: http://crunchbang.org/forums/viewtopic.php?pid=127064#p127064 9 | 10 | initializeANSI() 11 | { 12 | esc="" 13 | 14 | blackf="${esc}[30m"; redf="${esc}[31m"; greenf="${esc}[32m" 15 | yellowf="${esc}[33m" bluef="${esc}[34m"; purplef="${esc}[35m" 16 | cyanf="${esc}[36m"; whitef="${esc}[37m" 17 | 18 | blackb="${esc}[40m"; redb="${esc}[41m"; greenb="${esc}[42m" 19 | yellowb="${esc}[43m" blueb="${esc}[44m"; purpleb="${esc}[45m" 20 | cyanb="${esc}[46m"; whiteb="${esc}[47m" 21 | 22 | boldon="${esc}[1m"; boldoff="${esc}[22m" 23 | italicson="${esc}[3m"; italicsoff="${esc}[23m" 24 | ulon="${esc}[4m"; uloff="${esc}[24m" 25 | invon="${esc}[7m"; invoff="${esc}[27m" 26 | 27 | reset="${esc}[0m" 28 | } 29 | 30 | # note in this first use that switching colors doesn't require a reset 31 | # first - the new color overrides the old one. 32 | 33 | clear 34 | initializeANSI 35 | 36 | cat << EOF 37 | 38 | ${redf}╔╦╦╦╦╦╦╦╦╦╦╦╦╦╦╦╦╗ ${greenf}╔╦╦╦╦╦╦╦╦╦╦╦╦╦╦╦╦╗ ${yellowf}╔╦╦╦╦╦╦╦╦╦╦╦╦╦╦╦╦╗ 39 | ${boldon}${redf}╚╩╩╩╩╩╩╩╩╩╩╩╩╩╩╩╩╝ ${greenf}╚╩╩╩╩╩╩╩╩╩╩╩╩╩╩╩╩╝ ${yellowf}╚╩╩╩╩╩╩╩╩╩╩╩╩╩╩╩╩╝${reset} 40 | ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ 41 | ${bluef}╔╦╦╦╦╦╦╦╦╦╦╦╦╦╦╦╦╗ ${purplef}╔╦╦╦╦╦╦╦╦╦╦╦╦╦╦╦╦╗ ${cyanf}╔╦╦╦╦╦╦╦╦╦╦╦╦╦╦╦╦╗ 42 | ${boldon}${bluef}╚╩╩╩╩╩╩╩╩╩╩╩╩╩╩╩╩╝ ${purplef}╚╩╩╩╩╩╩╩╩╩╩╩╩╩╩╩╩╝ ${cyanf}╚╩╩╩╩╩╩╩╩╩╩╩╩╩╩╩╩╝${reset} 43 | 44 | 45 | EOF 46 | -------------------------------------------------------------------------------- /color-scripts/rally-x: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | # ANSI color scheme script by pfh 4 | # Source: http://crunchbang.org/forums/viewtopic.php?pid=143700#p143700 5 | # Initializing mod by lolilolicon from Archlinux 6 | 7 | f=3 b=4 8 | for j in f b; do 9 | for i in {0..7}; do 10 | printf -v $j$i %b "\e[${!j}${i}m" 11 | done 12 | done 13 | bld=$'\e[1m' 14 | rst=$'\e[0m' 15 | inv=$'\e[7m' 16 | 17 | cat << EOF 18 | 19 | $f3 ▄ $f1 ▄▄ $f2 ▄▄ $f4 ▄▄ $f5 ▄▄ $f6 ▄▄ 20 | $f3 ███▄▄ $f1 ██▬██▬██ $f2 ██▬██▬██ $f4 ██▬██▬██ $f5 ██▬██▬██ $f6 ██▬██▬██ 21 | $f3 █████▀▀$f1 ████ $f2 ████ $f4 ████ $f5 ████ $f6 ████ 22 | $f3 █▀▀ $f1 ▄██ ██▄ $f2 ▄██ ██▄ $f4 ▄██ ██▄ $f5 ▄██ ██▄ $f6 ▄██ ██▄ 23 | $f3 █ $f1 ▄▄▄▀█ █▀▄▄▄ $f2 ▄▄▄▀█ █▀▄▄▄ $f4 ▄▄▄▀█ █▀▄▄▄ $f5 ▄▄▄▀█ █▀▄▄▄ $f6 ▄▄▄▀█ █▀▄▄▄ 24 | $f3▄█▄ $f1 ███▀████▀███ $f2 ███▀████▀███ $f4 ███▀████▀███ $f5 ███▀████▀███ $f6 ███▀████▀███ 25 | $f1 ▀ ▀ $f2 ▀ ▀ $f4 ▀ ▀ $f5 ▀ ▀ $f6 ▀ ▀ 26 | $bld 27 | $f3 ▄ $f1 ▄▄ $f2 ▄▄ $f4 ▄▄ $f5 ▄▄ $f6 ▄▄ 28 | $f3 ███▄▄ $f1 ██▬██▬██ $f2 ██▬██▬██ $f4 ██▬██▬██ $f5 ██▬██▬██ $f6 ██▬██▬██ 29 | $f3 █████▀▀$f1 ████ $f2 ████ $f4 ████ $f5 ████ $f6 ████ 30 | $f3 █▀▀ $f1 ▄██ ██▄ $f2 ▄██ ██▄ $f4 ▄██ ██▄ $f5 ▄██ ██▄ $f6 ▄██ ██▄ 31 | $f3 █ $f1 ▄▄▄▀█ █▀▄▄▄ $f2 ▄▄▄▀█ █▀▄▄▄ $f4 ▄▄▄▀█ █▀▄▄▄ $f5 ▄▄▄▀█ █▀▄▄▄ $f6 ▄▄▄▀█ █▀▄▄▄ 32 | $f3▄█▄ $f1 ███▀████▀███ $f2 ███▀████▀███ $f4 ███▀████▀███ $f5 ███▀████▀███ $f6 ███▀████▀███ 33 | $f1 ▀ ▀ $f2 ▀ ▀ $f4 ▀ ▀ $f5 ▀ ▀ $f6 ▀ ▀ 34 | $rst 35 | EOF 36 | -------------------------------------------------------------------------------- /color-scripts/rupees: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | initializeANSI() 4 | { 5 | esc="" 6 | 7 | Bf="${esc}[30m"; rf="${esc}[31m"; gf="${esc}[32m" 8 | yf="${esc}[33m" bf="${esc}[34m"; pf="${esc}[35m" 9 | cf="${esc}[36m"; wf="${esc}[37m" 10 | 11 | Bb="${esc}[40m"; rb="${esc}[41m"; gb="${esc}[42m" 12 | yb="${esc}[43m" bb="${esc}[44m"; pb="${esc}[45m" 13 | cb="${esc}[46m"; wb="${esc}[47m" 14 | 15 | ON="${esc}[1m"; OFF="${esc}[22m" 16 | italicson="${esc}[3m"; italicsoff="${esc}[23m" 17 | ulon="${esc}[4m"; uloff="${esc}[24m" 18 | invon="${esc}[7m"; invoff="${esc}[27m" 19 | 20 | reset="${esc}[0m" 21 | } 22 | 23 | initializeANSI 24 | 25 | cat << EOF 26 | 27 | ${Bf}██ ${Bf}████ ${Bf}████ ${Bf}████ ${Bf}████ ${Bf}████ 28 | ${Bf}██${yf}██${Bf}██ ${Bf}██${gf}${ON}██${OFF}██${Bf}██ ${Bf}██${bf}${ON}██${OFF}██${Bf}██ ${Bf}██${rf}${ON}██${OFF}██${Bf}██ ${Bf}██${pf}${ON}██${OFF}██${Bf}██ ${Bf}██${cf}${ON}██${OFF}██${Bf}██ 29 | ${Bf}██${yf}██████${Bf}██ ${Bf}██${gf}${ON}████${OFF}████${Bf}██ ${Bf}██${bf}${ON}████${OFF}████${Bf}██ ${Bf}██${rf}${ON}████${OFF}████${Bf}██ ${Bf}██${pf}${ON}████${OFF}████${Bf}██ ${Bf}██${cf}${ON}████${OFF}████${Bf}██ 30 | ${Bf}██${yf}${ON}██${OFF}████${Bf}██ ${Bf}██${gf}${ON}██████${OFF}██████${Bf}██ ${Bf}██${bf}${ON}██████${OFF}██████${Bf}██ ${Bf}██${rf}${ON}██████${OFF}██████${Bf}██ ${Bf}██${pf}${ON}██████${OFF}██████${Bf}██ ${Bf}██${cf}${ON}██████${OFF}██████${Bf}██ 31 | ${Bf}██${yf}██${ON}████${OFF}████${Bf}██ ${Bf}██${gf}${ON}██${OFF}██${ON}██${OFF}██${Bf}██${gf}██${Bf}██${gf}██${Bf}██ ${Bf}██${bf}${ON}██${OFF}██${ON}██${OFF}██${Bf}██${bf}██${Bf}██${bf}██${Bf}██ ${Bf}██${rf}${ON}██${OFF}██${ON}██${OFF}██${Bf}██${rf}██${Bf}██${rf}██${Bf}██ ${Bf}██${pf}${ON}██${OFF}██${ON}██${OFF}██${Bf}██${pf}██${Bf}██${pf}██${Bf}██ ${Bf}██${cf}${ON}██${OFF}██${ON}██${OFF}██${Bf}██${cf}██${Bf}██${cf}██${Bf}██ 32 | ${Bf}██${yf}████${ON}██${OFF}████${Bf}██ ${Bf}██${gf}${ON}████${OFF}██████${Bf}██${gf}████${Bf}██ ${Bf}██${bf}${ON}████${OFF}██████${Bf}██${bf}████${Bf}██ ${Bf}██${rf}${ON}████${OFF}██████${Bf}██${rf}████${Bf}██ ${Bf}██${pf}${ON}████${OFF}██████${Bf}██${pf}████${Bf}██ ${Bf}██${cf}${ON}████${OFF}██████${Bf}██${cf}████${Bf}██ 33 | ${Bf}██${yf}██████${ON}████${OFF}████${Bf}██ ${Bf}██${gf}${ON}████${OFF}██████${Bf}██${gf}████${Bf}██ ${Bf}██${bf}${ON}████${OFF}██████${Bf}██${bf}████${Bf}██ ${Bf}██${rf}${ON}████${OFF}██████${Bf}██${rf}████${Bf}██ ${Bf}██${pf}${ON}████${OFF}██████${Bf}██${pf}████${Bf}██ ${Bf}██${cf}${ON}████${OFF}██████${Bf}██${cf}████${Bf}██ 34 | ${Bf}██${yf}████████${ON}██${OFF}████${Bf}██ ${Bf}██${gf}${ON}████${OFF}██████${Bf}██${gf}████${Bf}██ ${Bf}██${bf}${ON}████${OFF}██████${Bf}██${bf}████${Bf}██ ${Bf}██${rf}${ON}████${OFF}██████${Bf}██${rf}████${Bf}██ ${Bf}██${pf}${ON}████${OFF}██████${Bf}██${pf}████${Bf}██ ${Bf}██${cf}${ON}████${OFF}██████${Bf}██${cf}████${Bf}██ 35 | ${Bf}██████████████████████ ${Bf}██${gf}${ON}████${OFF}██████${Bf}██${gf}████${Bf}██ ${Bf}██${bf}${ON}████${OFF}██████${Bf}██${bf}████${Bf}██ ${Bf}██${rf}${ON}████${OFF}██████${Bf}██${rf}████${Bf}██ ${Bf}██${pf}${ON}████${OFF}██████${Bf}██${pf}████${Bf}██ ${Bf}██${cf}${ON}████${OFF}██████${Bf}██${cf}████${Bf}██ 36 | ${Bf}██${yf}██${Bf}██ ██${yf}██${Bf}██ ${Bf}██${gf}${ON}████${OFF}██████${Bf}██${gf}████${Bf}██ ${Bf}██${bf}${ON}████${OFF}██████${Bf}██${bf}████${Bf}██ ${Bf}██${rf}${ON}████${OFF}██████${Bf}██${rf}████${Bf}██ ${Bf}██${pf}${ON}████${OFF}██████${Bf}██${pf}████${Bf}██ ${Bf}██${cf}${ON}████${OFF}██████${Bf}██${cf}████${Bf}██ 37 | ${Bf}██${yf}██████${Bf}██ ██${yf}██████${Bf}██ ${Bf}██${gf}${ON}████${OFF}██████${Bf}██${gf}████${Bf}██ ${Bf}██${bf}${ON}████${OFF}██████${Bf}██${bf}████${Bf}██ ${Bf}██${rf}${ON}████${OFF}██████${Bf}██${rf}████${Bf}██ ${Bf}██${pf}${ON}████${OFF}██████${Bf}██${pf}████${Bf}██ ${Bf}██${cf}${ON}████${OFF}██████${Bf}██${cf}████${Bf}██ 38 | ${Bf}██${yf}██████${Bf}██ ██${yf}${ON}██${OFF}████${Bf}██ ${Bf}██${gf}${ON}██${OFF}██${ON}██${OFF}████${Bf}██${gf}████${Bf}██ ${Bf}██${bf}${ON}██${OFF}██${ON}██${OFF}████${Bf}██${bf}████${Bf}██ ${Bf}██${rf}${ON}██${OFF}██${ON}██${OFF}████${Bf}██${rf}████${Bf}██ ${Bf}██${pf}${ON}██${OFF}██${ON}██${OFF}████${Bf}██${pf}████${Bf}██ ${Bf}██${cf}${ON}██${OFF}██${ON}██${OFF}████${Bf}██${cf}████${Bf}██ 39 | ${Bf}██${yf}██████████${Bf}██ ██${yf}██${ON}████${OFF}████${Bf}██ ${Bf}██${gf}██████${ON}██${OFF}${Bf}██${gf}██${Bf}██${gf}██${Bf}██ ${Bf}██${bf}██████${ON}██${OFF}${Bf}██${bf}██${Bf}██${bf}██${Bf}██ ${Bf}██${rf}██████${ON}██${OFF}${Bf}██${rf}██${Bf}██${rf}██${Bf}██ ${Bf}██${pf}██████${ON}██${OFF}${Bf}██${pf}██${Bf}██${pf}██${Bf}██ ${Bf}██${cf}██████${ON}██${OFF}${Bf}██${cf}██${Bf}██${cf}██${Bf}██ 40 | ${Bf}██${yf}${ON}██${OFF}████████${Bf}██ ██${yf}████${ON}██${OFF}████${Bf}██ ${Bf}██${gf}████████████${Bf}██ ${Bf}██${bf}████████████${Bf}██ ${Bf}██${rf}████████████${Bf}██ ${Bf}██${pf}████████████${Bf}██ ${Bf}██${cf}████████████${Bf}██ 41 | ${Bf}██${yf}██${ON}████${OFF}████████${Bf}██ ██${yf}██████${ON}████${OFF}████${Bf}██ ${Bf}██${gf}████████${Bf}██ ${Bf}██${bf}████████${Bf}██ ${Bf}██${rf}████████${Bf}██ ${Bf}██${pf}████████${Bf}██ ${Bf}██${cf}████████${Bf}██ 42 | ${Bf}██${yf}████${ON}██${OFF}████████${Bf}██ ██${yf}████████${ON}██${OFF}████${Bf}██ ${Bf}██${gf}████${Bf}██ ${Bf}██${bf}████${Bf}██ ${Bf}██${rf}████${Bf}██ ${Bf}██${pf}████${Bf}██ ${Bf}██${cf}████${Bf}██ 43 | ${Bf}██████████████████████████████████████ ${Bf}████ ${Bf}████ ${Bf}████ ${Bf}████ ${Bf}████${reset} 44 | 45 | EOF 46 | 47 | 48 | 49 | -------------------------------------------------------------------------------- /color-scripts/space-invaders: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | # ANSI color scheme script featuring Space Invaders 4 | 5 | # Original: http://crunchbanglinux.org/forums/post/126921/#p126921 6 | # Modified by lolilolicon 7 | 8 | f=3 b=4 9 | for j in f b; do 10 | for i in {0..7}; do 11 | printf -v $j$i %b "\e[${!j}${i}m" 12 | done 13 | done 14 | bld=$'\e[1m' 15 | rst=$'\e[0m' 16 | 17 | cat << EOF 18 | 19 | $f1 ▀▄ ▄▀ $f2 ▄▄▄████▄▄▄ $f3 ▄██▄ $f4 ▀▄ ▄▀ $f5 ▄▄▄████▄▄▄ $f6 ▄██▄ $rst 20 | $f1 ▄█▀███▀█▄ $f2███▀▀██▀▀███ $f3▄█▀██▀█▄ $f4 ▄█▀███▀█▄ $f5███▀▀██▀▀███ $f6▄█▀██▀█▄$rst 21 | $f1█▀███████▀█ $f2▀▀███▀▀███▀▀ $f3▀█▀██▀█▀ $f4█▀███████▀█ $f5▀▀███▀▀███▀▀ $f6▀█▀██▀█▀$rst 22 | $f1▀ ▀▄▄ ▄▄▀ ▀ $f2 ▀█▄ ▀▀ ▄█▀ $f3▀▄ ▄▀ $f4▀ ▀▄▄ ▄▄▀ ▀ $f5 ▀█▄ ▀▀ ▄█▀ $f6▀▄ ▄▀$rst 23 | 24 | $bld$f1▄ ▀▄ ▄▀ ▄ $f2 ▄▄▄████▄▄▄ $f3 ▄██▄ $f4▄ ▀▄ ▄▀ ▄ $f5 ▄▄▄████▄▄▄ $f6 ▄██▄ $rst 25 | $bld$f1█▄█▀███▀█▄█ $f2███▀▀██▀▀███ $f3▄█▀██▀█▄ $f4█▄█▀███▀█▄█ $f5███▀▀██▀▀███ $f6▄█▀██▀█▄$rst 26 | $bld$f1▀█████████▀ $f2▀▀▀██▀▀██▀▀▀ $f3▀▀█▀▀█▀▀ $f4▀█████████▀ $f5▀▀▀██▀▀██▀▀▀ $f6▀▀█▀▀█▀▀$rst 27 | $bld$f1 ▄▀ ▀▄ $f2▄▄▀▀ ▀▀ ▀▀▄▄ $f3▄▀▄▀▀▄▀▄ $f4 ▄▀ ▀▄ $f5▄▄▀▀ ▀▀ ▀▀▄▄ $f6▄▀▄▀▀▄▀▄$rst 28 | 29 | 30 | $f7▌$rst 31 | 32 | $f7▌$rst 33 | 34 | $f7 ▄█▄ $rst 35 | $f7▄█████████▄$rst 36 | $f7▀▀▀▀▀▀▀▀▀▀▀$rst 37 | 38 | EOF 39 | -------------------------------------------------------------------------------- /color-scripts/spectrum: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | # Author: crshd 4 | # Source: http://crunchbang.org/forums/viewtopic.php?pid=128584#p128584 5 | 6 | echo 7 | 8 | for f in {0..6}; do 9 | echo -en "\033[$((f+41))m\033[$((f+30))m██▓▒░" 10 | done 11 | echo -en "\033[37m██\n" 12 | 13 | echo 14 | 15 | for f in {0..6}; do 16 | echo -en "\033[$((f+41))m\033[1;$((f+30))m██▓▒░" 17 | done 18 | echo -en "\033[1;37m██" 19 | 20 | echo -e "\033[0m" 21 | echo 22 | -------------------------------------------------------------------------------- /color-scripts/square: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # ANSI Color -- use these variables to easily have different color 4 | # and format output. Make sure to output the reset sequence after 5 | # colors (f = foreground, b = background), and use the 'off' 6 | # feature for anything you turn on. 7 | # Author: muzieca 8 | # Source: http://crunchbang.org/forums/viewtopic.php?pid=127509#p127509 9 | initializeANSI() 10 | { 11 | esc="" 12 | 13 | blackf="${esc}[30m"; redf="${esc}[31m"; greenf="${esc}[32m" 14 | yellowf="${esc}[33m" bluef="${esc}[34m"; purplef="${esc}[35m" 15 | cyanf="${esc}[36m"; whitef="${esc}[37m" 16 | 17 | blackb="${esc}[40m"; redb="${esc}[41m"; greenb="${esc}[42m" 18 | yellowb="${esc}[43m" blueb="${esc}[44m"; purpleb="${esc}[45m" 19 | cyanb="${esc}[46m"; whiteb="${esc}[47m" 20 | 21 | boldon="${esc}[1m"; boldoff="${esc}[22m" 22 | italicson="${esc}[3m"; italicsoff="${esc}[23m" 23 | ulon="${esc}[4m"; uloff="${esc}[24m" 24 | invon="${esc}[7m"; invoff="${esc}[27m" 25 | 26 | reset="${esc}[0m" 27 | } 28 | 29 | # note in this first use that switching colors doesn't require a reset 30 | # first - the new color overrides the old one. 31 | 32 | initializeANSI 33 | 34 | cat << EOF 35 | 36 | ${redf}▀ █${reset} ${boldon}${redf}█ ▀${reset} ${greenf}▀ █${reset} ${boldon}${greenf}█ ▀${reset} ${yellowf}▀ █${reset} ${boldon}${yellowf}█ ▀${reset} ${bluef}▀ █${reset} ${boldon}${bluef}█ ▀${reset} ${purplef}▀ █${reset} ${boldon}${purplef}█ ▀${reset} ${cyanf}▀ █${reset} ${boldon}${cyanf}█ ▀${reset} 37 | ${redf}██${reset} ${boldon}${redf} ██${reset} ${greenf}██${reset} ${boldon}${greenf}██${reset} ${yellowf}██${reset} ${boldon}${yellowf}██${reset} ${bluef}██${reset} ${boldon}${bluef}██${reset} ${purplef}██${reset} ${boldon}${purplef}██${reset} ${cyanf}██${reset} ${boldon}${cyanf}██${reset} 38 | ${redf}▄ █${reset}${boldon}${redf} █ ▄ ${reset} ${greenf}▄ █ ${reset}${boldon}${greenf}█ ▄${reset} ${yellowf}▄ █ ${reset}${boldon}${yellowf}█ ▄${reset} ${bluef}▄ █ ${reset}${boldon}${bluef}█ ▄${reset} ${purplef}▄ █ ${reset}${boldon}${purplef}█ ▄${reset} ${cyanf}▄ █ ${reset}${boldon}${cyanf}█ ▄${reset} 39 | 40 | EOF 41 | -------------------------------------------------------------------------------- /color-scripts/tanks: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # ANSI Color -- use these variables to easily have different color 4 | # and format output. Make sure to output the reset sequence after 5 | # colors (f = foreground, b = background), and use the 'off' 6 | # feature for anything you turn on. 7 | 8 | # Nintendo's Battle Tank 9 | # Author: muzieca 10 | # Source: http://crunchbang.org/forums/viewtopic.php?pid=127023#p127023 11 | 12 | initializeANSI() 13 | { 14 | esc="" 15 | 16 | blackf="${esc}[30m"; redf="${esc}[31m"; greenf="${esc}[32m" 17 | yellowf="${esc}[33m" bluef="${esc}[34m"; purplef="${esc}[35m" 18 | cyanf="${esc}[36m"; whitef="${esc}[37m" 19 | 20 | blackb="${esc}[40m"; redb="${esc}[41m"; greenb="${esc}[42m" 21 | yellowb="${esc}[43m" blueb="${esc}[44m"; purpleb="${esc}[45m" 22 | cyanb="${esc}[46m"; whiteb="${esc}[47m" 23 | 24 | boldon="${esc}[1m"; boldoff="${esc}[22m" 25 | italicson="${esc}[3m"; italicsoff="${esc}[23m" 26 | ulon="${esc}[4m"; uloff="${esc}[24m" 27 | invon="${esc}[7m"; invoff="${esc}[27m" 28 | 29 | reset="${esc}[0m" 30 | } 31 | 32 | # note in this first use that switching colors doesn't require a reset 33 | # first - the new color overrides the old one. 34 | 35 | initializeANSI 36 | 37 | cat << EOF 38 | 39 | ${boldon}${redf} █ ${reset} ${boldon}${greenf} █ ${reset} ${boldon}${yellowf} █ ${reset} ${boldon}${bluef} █ ${reset} ${boldon}${purplef} █ ${reset} ${boldon}${cyanf} █ ${reset} 40 | ${boldon}${redf}▄▄ █ ▄▄${reset} ${boldon}${greenf}▄▄ █ ▄▄${reset} ${boldon}${yellowf}▄▄ █ ▄▄${reset} ${boldon}${bluef}▄▄ █ ▄▄${reset} ${boldon}${purplef}▄▄ █ ▄▄${reset} ${boldon}${cyanf}▄▄ █ ▄▄${reset} 41 | ${boldon}${redf}███▀▀▀███${reset} ${boldon}${greenf}███▀▀▀███${reset} ${boldon}${yellowf}███▀▀▀███${reset} ${boldon}${bluef}███▀▀▀███${reset} ${boldon}${purplef}███▀▀▀███${reset} ${boldon}${cyanf}███▀▀▀███${reset} 42 | ${boldon}${redf}███ █ ███${reset} ${boldon}${greenf}███ █ ███${reset} ${boldon}${yellowf}███ █ ███${reset} ${boldon}${bluef}███ █ ███${reset} ${boldon}${purplef}███ █ ███${reset} ${boldon}${cyanf}███ █ ███${reset} 43 | ${boldon}${redf}██ ▀▀▀ ██${reset} ${boldon}${greenf}██ ▀▀▀ ██${reset} ${boldon}${yellowf}██ ▀▀▀ ██${reset} ${boldon}${bluef}██ ▀▀▀ ██${reset} ${boldon}${purplef}██ ▀▀▀ ██${reset} ${boldon}${cyanf}██ ▀▀▀ ██${reset} 44 | 45 | ${redf} █ ${reset} ${greenf} █ ${reset} ${yellowf} █ ${reset} ${bluef} █ ${reset} ${purplef} █ ${reset} ${cyanf} █ ${reset} 46 | ${redf}▄▄ █ ▄▄${reset} ${greenf}▄▄ █ ▄▄${reset} ${yellowf}▄▄ █ ▄▄${reset} ${bluef}▄▄ █ ▄▄${reset} ${purplef}▄▄ █ ▄▄${reset} ${cyanf}▄▄ █ ▄▄${reset} 47 | ${redf}███▀▀▀███${reset} ${greenf}███▀▀▀███${reset} ${yellowf}███▀▀▀███${reset} ${bluef}███▀▀▀███${reset} ${purplef}███▀▀▀███${reset} ${cyanf}███▀▀▀███${reset} 48 | ${redf}███ █ ███${reset} ${greenf}███ █ ███${reset} ${yellowf}███ █ ███${reset} ${bluef}███ █ ███${reset} ${purplef}███ █ ███${reset} ${cyanf}███ █ ███${reset} 49 | ${redf}██ ▀▀▀ ██${reset} ${greenf}██ ▀▀▀ ██${reset} ${yellowf}██ ▀▀▀ ██${reset} ${bluef}██ ▀▀▀ ██${reset} ${purplef}██ ▀▀▀ ██${reset} ${cyanf}██ ▀▀▀ ██${reset} 50 | EOF 51 | echo "" 52 | -------------------------------------------------------------------------------- /color-scripts/thebat: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | # ANSI color scheme script by pfh 4 | # Source: http://crunchbang.org/forums/viewtopic.php?pid=151601#p151601 5 | # Initializing mod by lolilolicon from Archlinux 6 | 7 | f=3 b=4 8 | for j in f b; do 9 | for i in {0..7}; do 10 | printf -v $j$i %b "\e[${!j}${i}m" 11 | done 12 | done 13 | bld=$'\e[1m' 14 | rst=$'\e[0m' 15 | inv=$'\e[7m' 16 | 17 | cat << EOF 18 | 19 | $f3 ██████████████████████████████████████ 20 | $f3 ██████████████████████████████████████████ 21 | $f3 ██████ ████████████████████████████ ██████ 22 | $f3 █████ ████████████ ████ ████████████ █████ 23 | $f3 ███ ████████████ ████████████ ███ 24 | $f3 ███ ███ 25 | $f3 ███ ███ 26 | $f3 ███ █████████ ████ ████ █████████ ███ 27 | $f3 █████ ███████████████ ███████████████ █████ 28 | $f3 ██████ ████████████████████████████ ██████ 29 | $f3 ██████████████████████████████████████████ 30 | $f3 ██████████████████████████████████████ 31 | $rst 32 | EOF 33 | -------------------------------------------------------------------------------- /color-scripts/thebat2: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # ANSI Color -- use these variables to easily have different color 4 | # and format output. Make sure to output the reset sequence after 5 | # colors (f = foreground, b = background), and use the 'off' 6 | # feature for anything you turn on. 7 | # Author: pfh 8 | # Source: http://crunchbang.org/forums/viewtopic.php?pid=151601#p151601 9 | 10 | initializeANSI() 11 | { 12 | esc="" 13 | 14 | blackf="${esc}[30m"; redf="${esc}[31m"; greenf="${esc}[32m" 15 | yellowf="${esc}[33m" bluef="${esc}[34m"; purplef="${esc}[35m" 16 | cyanf="${esc}[36m"; whitef="${esc}[37m" 17 | 18 | blackb="${esc}[40m"; redb="${esc}[41m"; greenb="${esc}[42m" 19 | yellowb="${esc}[43m" blueb="${esc}[44m"; purpleb="${esc}[45m" 20 | cyanb="${esc}[46m"; whiteb="${esc}[47m" 21 | 22 | boldon="${esc}[1m"; boldoff="${esc}[22m" 23 | italicson="${esc}[3m"; italicsoff="${esc}[23m" 24 | ulon="${esc}[4m"; uloff="${esc}[24m" 25 | invon="${esc}[7m"; invoff="${esc}[27m" 26 | 27 | reset="${esc}[0m" 28 | } 29 | 30 | # note in this first use that switching colors doesn't require a reset 31 | # first - the new color overrides the old one. 32 | 33 | clear 34 | initializeANSI 35 | 36 | cat << EOF 37 | 38 | ${redf} ▄█▀ █ █ ▀█▄ ${greenf} ▄█▀ █ █ ▀█▄ ${yellowf} ▄█▀ █ █ ▀█▄ ${bluef} ▄█▀ █ █ ▀█▄ ${purplef} ▄█▀ █ █ ▀█▄ ${cyanf} ▄█▀ █ █ ▀█▄ 39 | ${redf}███ ███ ███ ${greenf}███ ███ ███ ${yellowf}███ ███ ███ ${bluef}███ ███ ███ ${purplef}███ ███ ███ ${cyanf}███ ███ ███ 40 | ${redf}█████████████ ${greenf}█████████████ ${yellowf}█████████████ ${bluef}█████████████ ${purplef}█████████████ ${cyanf}█████████████ 41 | ${redf} ▀██▄ ▄██▀ ${greenf} ▀██▄ ▄██▀ ${yellowf} ▀██▄ ▄██▀ ${bluef} ▀██▄ ▄██▀ ${purplef} ▀██▄ ▄██▀ ${cyanf} ▀██▄ ▄██▀ 42 | 43 | ${boldon} 44 | ${redf} ▄█▀ █ █ ▀█▄ ${greenf} ▄█▀ █ █ ▀█▄ ${yellowf} ▄█▀ █ █ ▀█▄ ${bluef} ▄█▀ █ █ ▀█▄ ${purplef} ▄█▀ █ █ ▀█▄ ${cyanf} ▄█▀ █ █ ▀█▄ 45 | ${redf}███ ███ ███ ${greenf}███ ███ ███ ${yellowf}███ ███ ███ ${bluef}███ ███ ███ ${purplef}███ ███ ███ ${cyanf}███ ███ ███ 46 | ${redf}█████████████ ${greenf}█████████████ ${yellowf}█████████████ ${bluef}█████████████ ${purplef}█████████████ ${cyanf}█████████████ 47 | ${redf} ▀██▄ ▄██▀ ${greenf} ▀██▄ ▄██▀ ${yellowf} ▀██▄ ▄██▀ ${bluef} ▀██▄ ▄██▀ ${purplef} ▀██▄ ▄██▀ ${cyanf} ▀██▄ ▄██▀ 48 | ${reset} 49 | EOF 50 | -------------------------------------------------------------------------------- /color-scripts/tiefighter1: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # ANSI Color -- use these variables to easily have different color 4 | # and format output. Make sure to output the reset sequence after 5 | # colors (f = foreground, b = background), and use the 'off' 6 | # feature for anything you turn on. 7 | # Author: pfh 8 | # Source: http://crunchbang.org/forums/viewtopic.php?pid=129265#p129265 9 | 10 | initializeANSI() 11 | { 12 | esc="" 13 | 14 | blackf="${esc}[30m"; redf="${esc}[31m"; greenf="${esc}[32m" 15 | yellowf="${esc}[33m" bluef="${esc}[34m"; purplef="${esc}[35m" 16 | cyanf="${esc}[36m"; whitef="${esc}[37m" 17 | 18 | blackb="${esc}[40m"; redb="${esc}[41m"; greenb="${esc}[42m" 19 | yellowb="${esc}[43m" blueb="${esc}[44m"; purpleb="${esc}[45m" 20 | cyanb="${esc}[46m"; whiteb="${esc}[47m" 21 | 22 | boldon="${esc}[1m"; boldoff="${esc}[22m" 23 | italicson="${esc}[3m"; italicsoff="${esc}[23m" 24 | ulon="${esc}[4m"; uloff="${esc}[24m" 25 | invon="${esc}[7m"; invoff="${esc}[27m" 26 | 27 | reset="${esc}[0m" 28 | } 29 | 30 | # note in this first use that switching colors doesn't require a reset 31 | # first - the new color overrides the old one. 32 | # ****************************** Building blocks: █ ▓ ▒ ░ ▄ ▀ ▐ ▌ ● ═ ║ ╔ ╦ ╗ ╚ ╩ ╝ ■ ▬ ▲ ▼ ◄ ► 33 | 34 | initializeANSI 35 | 36 | cat << EOF 37 | 38 | ${invon} 39 | ${redf} ▄█ █▄ ${greenf} ▄▄ ▄▄ ${yellowf} ▄▄ ▄▄ ${bluef} ▄▄ ▄▄ ${purplef} ▄▄ ▄▄ ${cyanf} ▄█ █▄ 40 | ${redf} ▄█▀ ▄▄▄ ▀█▄ ${greenf} ▄█▀ ▄▄▄ ▀█▄ ${yellowf} ▄█▀ ▄▄▄ ▀█▄ ${bluef} ▄█▀ ▄▄▄ ▀█▄ ${purplef} ▄█▀ ▄▄▄ ▀█▄ ${cyanf} ▄█▀ ▄▄▄ ▀█▄ 41 | ${redf} ██▄▄██▀██▄▄██ ${greenf} ██▄▄██▀██▄▄██ ${yellowf} ██▄▄██▀██▄▄██ ${bluef} ██▄▄██▀██▄▄██ ${purplef} ██▄▄██▀██▄▄██ ${cyanf} ██▄▄██▀██▄▄██ 42 | ${redf} ██▀▀█████▀▀██ ${greenf} ██▀▀█████▀▀██ ${yellowf} ██▀▀█████▀▀██ ${bluef} ██▀▀█████▀▀██ ${purplef} ██▀▀█████▀▀██ ${cyanf} ██▀▀█████▀▀██ 43 | ${redf} ▀█▄ ▀▀▀ ▄█▀ ${greenf} ▀█▄ ▀▀▀ ▄█▀ ${yellowf} ▀█▄ ▀▀▀ ▄█▀ ${bluef} ▀█▄ ▀▀▀ ▄█▀ ${purplef} ▀█▄ ▀▀▀ ▄█▀ ${cyanf} ▀█▄ ▀▀▀ ▄█▀ 44 | ${redf} ▀█ █▀ ${greenf} ▀▀ ▀▀ ${yellowf} ▀▀ ▀▀ ${bluef} ▀▀ ▀▀ ${purplef} ▀▀ ▀▀ ${cyanf} ▀█ █▀ 45 | ${boldon}${invon} 46 | ${redf} ▄█ █▄ ${greenf} ▄▄ ▄▄ ${yellowf} ▄▄ ▄▄ ${bluef} ▄▄ ▄▄ ${purplef} ▄▄ ▄▄ ${cyanf} ▄█ █▄ 47 | ${redf} ▄█▀ ▄▄▄ ▀█▄ ${greenf} ▄█▀ ▄▄▄ ▀█▄ ${yellowf} ▄█▀ ▄▄▄ ▀█▄ ${bluef} ▄█▀ ▄▄▄ ▀█▄ ${purplef} ▄█▀ ▄▄▄ ▀█▄ ${cyanf} ▄█▀ ▄▄▄ ▀█▄ 48 | ${redf} ██▄▄██▀██▄▄██ ${greenf} ██▄▄██▀██▄▄██ ${yellowf} ██▄▄██▀██▄▄██ ${bluef} ██▄▄██▀██▄▄██ ${purplef} ██▄▄██▀██▄▄██ ${cyanf} ██▄▄██▀██▄▄██ 49 | ${redf} ██▀▀█████▀▀██ ${greenf} ██▀▀█████▀▀██ ${yellowf} ██▀▀█████▀▀██ ${bluef} ██▀▀█████▀▀██ ${purplef} ██▀▀█████▀▀██ ${cyanf} ██▀▀█████▀▀██ 50 | ${redf} ▀█▄ ▀▀▀ ▄█▀ ${greenf} ▀█▄ ▀▀▀ ▄█▀ ${yellowf} ▀█▄ ▀▀▀ ▄█▀ ${bluef} ▀█▄ ▀▀▀ ▄█▀ ${purplef} ▀█▄ ▀▀▀ ▄█▀ ${cyanf} ▀█▄ ▀▀▀ ▄█▀ 51 | ${redf} ▀█ █▀ ${greenf} ▀▀ ▀▀ ${yellowf} ▀▀ ▀▀ ${bluef} ▀▀ ▀▀ ${purplef} ▀▀ ▀▀ ${cyanf} ▀█ █▀ 52 | ${reset} 53 | 54 | EOF 55 | -------------------------------------------------------------------------------- /color-scripts/tiefighter1-no-invo: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # ANSI Color -- use these variables to easily have different color 4 | # and format output. Make sure to output the reset sequence after 5 | # colors (f = foreground, b = background), and use the 'off' 6 | # feature for anything you turn on. 7 | # Original Author: pfh 8 | # Source: http://crunchbang.org/forums/viewtopic.php?pid=129265#p129265 9 | # Further Modified by: Chef-Stark 10 | # This is the same tiefighter1 color-script minus the inverted colors 11 | 12 | initializeANSI() 13 | { 14 | esc="" 15 | 16 | blackf="${esc}[30m"; redf="${esc}[31m"; greenf="${esc}[32m" 17 | yellowf="${esc}[33m" bluef="${esc}[34m"; purplef="${esc}[35m" 18 | cyanf="${esc}[36m"; whitef="${esc}[37m" 19 | 20 | blackb="${esc}[40m"; redb="${esc}[41m"; greenb="${esc}[42m" 21 | yellowb="${esc}[43m" blueb="${esc}[44m"; purpleb="${esc}[45m" 22 | cyanb="${esc}[46m"; whiteb="${esc}[47m" 23 | 24 | boldon="${esc}[1m"; boldoff="${esc}[22m" 25 | italicson="${esc}[3m"; italicsoff="${esc}[23m" 26 | ulon="${esc}[4m"; uloff="${esc}[24m" 27 | invon="${esc}[7m"; invoff="${esc}[27m" 28 | 29 | reset="${esc}[0m" 30 | } 31 | 32 | # note in this first use that switching colors doesn't require a reset 33 | # first - the new color overrides the old one. 34 | # ****************************** Building blocks: █ ▓ ▒ ░ ▄ ▀ ▐ ▌ ● ═ ║ ╔ ╦ ╗ ╚ ╩ ╝ ■ ▬ ▲ ▼ ◄ ► 35 | 36 | initializeANSI 37 | 38 | cat << EOF 39 | 40 | 41 | ${redf} ▄█ █▄ ${greenf} ▄▄ ▄▄ ${yellowf} ▄▄ ▄▄ ${bluef} ▄▄ ▄▄ ${purplef} ▄▄ ▄▄ ${cyanf} ▄█ █▄ 42 | ${redf} ▄█▀ ▄▄▄ ▀█▄ ${greenf} ▄█▀ ▄▄▄ ▀█▄ ${yellowf} ▄█▀ ▄▄▄ ▀█▄ ${bluef} ▄█▀ ▄▄▄ ▀█▄ ${purplef} ▄█▀ ▄▄▄ ▀█▄ ${cyanf} ▄█▀ ▄▄▄ ▀█▄ 43 | ${redf} ██▄▄██▀██▄▄██ ${greenf} ██▄▄██▀██▄▄██ ${yellowf} ██▄▄██▀██▄▄██ ${bluef} ██▄▄██▀██▄▄██ ${purplef} ██▄▄██▀██▄▄██ ${cyanf} ██▄▄██▀██▄▄██ 44 | ${redf} ██▀▀█████▀▀██ ${greenf} ██▀▀█████▀▀██ ${yellowf} ██▀▀█████▀▀██ ${bluef} ██▀▀█████▀▀██ ${purplef} ██▀▀█████▀▀██ ${cyanf} ██▀▀█████▀▀██ 45 | ${redf} ▀█▄ ▀▀▀ ▄█▀ ${greenf} ▀█▄ ▀▀▀ ▄█▀ ${yellowf} ▀█▄ ▀▀▀ ▄█▀ ${bluef} ▀█▄ ▀▀▀ ▄█▀ ${purplef} ▀█▄ ▀▀▀ ▄█▀ ${cyanf} ▀█▄ ▀▀▀ ▄█▀ 46 | ${redf} ▀█ █▀ ${greenf} ▀▀ ▀▀ ${yellowf} ▀▀ ▀▀ ${bluef} ▀▀ ▀▀ ${purplef} ▀▀ ▀▀ ${cyanf} ▀█ █▀ 47 | 48 | ${boldon} 49 | 50 | ${redf} ▄█ █▄ ${greenf} ▄▄ ▄▄ ${yellowf} ▄▄ ▄▄ ${bluef} ▄▄ ▄▄ ${purplef} ▄▄ ▄▄ ${cyanf} ▄█ █▄ 51 | ${redf} ▄█▀ ▄▄▄ ▀█▄ ${greenf} ▄█▀ ▄▄▄ ▀█▄ ${yellowf} ▄█▀ ▄▄▄ ▀█▄ ${bluef} ▄█▀ ▄▄▄ ▀█▄ ${purplef} ▄█▀ ▄▄▄ ▀█▄ ${cyanf} ▄█▀ ▄▄▄ ▀█▄ 52 | ${redf} ██▄▄██▀██▄▄██ ${greenf} ██▄▄██▀██▄▄██ ${yellowf} ██▄▄██▀██▄▄██ ${bluef} ██▄▄██▀██▄▄██ ${purplef} ██▄▄██▀██▄▄██ ${cyanf} ██▄▄██▀██▄▄██ 53 | ${redf} ██▀▀█████▀▀██ ${greenf} ██▀▀█████▀▀██ ${yellowf} ██▀▀█████▀▀██ ${bluef} ██▀▀█████▀▀██ ${purplef} ██▀▀█████▀▀██ ${cyanf} ██▀▀█████▀▀██ 54 | ${redf} ▀█▄ ▀▀▀ ▄█▀ ${greenf} ▀█▄ ▀▀▀ ▄█▀ ${yellowf} ▀█▄ ▀▀▀ ▄█▀ ${bluef} ▀█▄ ▀▀▀ ▄█▀ ${purplef} ▀█▄ ▀▀▀ ▄█▀ ${cyanf} ▀█▄ ▀▀▀ ▄█▀ 55 | ${redf} ▀█ █▀ ${greenf} ▀▀ ▀▀ ${yellowf} ▀▀ ▀▀ ${bluef} ▀▀ ▀▀ ${purplef} ▀▀ ▀▀ ${cyanf} ▀█ █▀ 56 | ${reset} 57 | 58 | EOF 59 | -------------------------------------------------------------------------------- /color-scripts/tiefighter1row: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # ANSI Color -- use these variables to easily have different color 4 | # and format output. Make sure to output the reset sequence after 5 | # colors (f = foreground, b = background), and use the 'off' 6 | # feature for anything you turn on. 7 | # Author: pfh 8 | # Source: http://crunchbang.org/forums/viewtopic.php?pid=129265#p129265 9 | 10 | initializeANSI() 11 | { 12 | esc="" 13 | 14 | blackf="${esc}[30m"; redf="${esc}[31m"; greenf="${esc}[32m" 15 | yellowf="${esc}[33m" bluef="${esc}[34m"; purplef="${esc}[35m" 16 | cyanf="${esc}[36m"; whitef="${esc}[37m" 17 | 18 | blackb="${esc}[40m"; redb="${esc}[41m"; greenb="${esc}[42m" 19 | yellowb="${esc}[43m" blueb="${esc}[44m"; purpleb="${esc}[45m" 20 | cyanb="${esc}[46m"; whiteb="${esc}[47m" 21 | 22 | boldon="${esc}[1m"; boldoff="${esc}[22m" 23 | italicson="${esc}[3m"; italicsoff="${esc}[23m" 24 | ulon="${esc}[4m"; uloff="${esc}[24m" 25 | invon="${esc}[7m"; invoff="${esc}[27m" 26 | 27 | reset="${esc}[0m" 28 | } 29 | 30 | # note in this first use that switching colors doesn't require a reset 31 | # first - the new color overrides the old one. 32 | # ****************************** Building blocks: █ ▓ ▒ ░ ▄ ▀ ▐ ▌ ● ═ ║ ╔ ╦ ╗ ╚ ╩ ╝ ■ ▬ ▲ ▼ ◄ ► 33 | 34 | initializeANSI 35 | 36 | cat << EOF 37 | 38 | ${greenf}█ █ ${blackf}█ █ ${bluef}█ █ ${purplef}█ █ ${cyanf}█ █ 39 | ${greenf}█ ▄▄▄ █ ${blackf}█ ▄▄▄ █ ${bluef}█ ▄▄▄ █ ${purplef}█ ▄▄▄ █ ${cyanf}█ ▄▄▄ █ 40 | ${greenf}█▄▄██▀██▄▄█ ${blackf}█▄▄██▀██▄▄█ ${bluef}█▄▄██▀██▄▄█ ${purplef}█▄▄██▀██▄▄█ ${cyanf}█▄▄██▀██▄▄█ 41 | ${greenf}█▀▀█████▀▀█ ${blackf}█▀▀█████▀▀█ ${bluef}█▀▀█████▀▀█ ${purplef}█▀▀█████▀▀█ ${cyanf}█▀▀█████▀▀█ 42 | ${greenf}█ ▀▀▀ █ ${blackf}█ ▀▀▀ █ ${bluef}█ ▀▀▀ █ ${purplef}█ ▀▀▀ █ ${cyanf}█ ▀▀▀ █ 43 | ${greenf}█ █ ${blackf}█ █ ${bluef}█ █ ${purplef}█ █ ${cyanf}█ █ 44 | ${reset} 45 | 46 | EOF 47 | -------------------------------------------------------------------------------- /color-scripts/tiefighter2: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # ANSI Color -- use these variables to easily have different color 4 | # and format output. Make sure to output the reset sequence after 5 | # colors (f = foreground, b = background), and use the 'off' 6 | # feature for anything you turn on. 7 | # Author: pfh 8 | # Source: http://crunchbang.org/forums/viewtopic.php?pid=129265#p129265 9 | 10 | initializeANSI() 11 | { 12 | esc="" 13 | 14 | blackf="${esc}[30m"; redf="${esc}[31m"; greenf="${esc}[32m" 15 | yellowf="${esc}[33m" bluef="${esc}[34m"; purplef="${esc}[35m" 16 | cyanf="${esc}[36m"; whitef="${esc}[37m" 17 | 18 | blackb="${esc}[40m"; redb="${esc}[41m"; greenb="${esc}[42m" 19 | yellowb="${esc}[43m" blueb="${esc}[44m"; purpleb="${esc}[45m" 20 | cyanb="${esc}[46m"; whiteb="${esc}[47m" 21 | 22 | boldon="${esc}[1m"; boldoff="${esc}[22m" 23 | italicson="${esc}[3m"; italicsoff="${esc}[23m" 24 | ulon="${esc}[4m"; uloff="${esc}[24m" 25 | invon="${esc}[7m"; invoff="${esc}[27m" 26 | 27 | reset="${esc}[0m" 28 | } 29 | 30 | # note in this first use that switching colors doesn't require a reset 31 | # first - the new color overrides the old one. 32 | # ****************************** Building blocks: █ ▓ ▒ ░ ▄ ▀ ▐ ▌ ● ═ ║ ╔ ╦ ╗ ╚ ╩ ╝ ■ ▬ ▲ ▼ ◄ ► 33 | 34 | initializeANSI 35 | 36 | cat << EOF 37 | 38 | ${redf} █ █ ${greenf}█ █ ${yellowf}█ █ ${bluef}█ █ ${purplef}█ █ ${cyanf}█ █ 39 | ${redf} █ ▄▄▄ █ ${greenf}█ ▄▄▄ █ ${yellowf}█ ▄▄▄ █ ${bluef}█ ▄▄▄ █ ${purplef}█ ▄▄▄ █ ${cyanf}█ ▄▄▄ █ 40 | ${redf} █▄▄██▀██▄▄█ ${greenf}█▄▄██▀██▄▄█ ${yellowf}█▄▄██▀██▄▄█ ${bluef}█▄▄██▀██▄▄█ ${purplef}█▄▄██▀██▄▄█ ${cyanf}█▄▄██▀██▄▄█ 41 | ${redf} █▀▀█████▀▀█ ${greenf}█▀▀█████▀▀█ ${yellowf}█▀▀█████▀▀█ ${bluef}█▀▀█████▀▀█ ${purplef}█▀▀█████▀▀█ ${cyanf}█▀▀█████▀▀█ 42 | ${redf} █ ▀▀▀ █ ${greenf}█ ▀▀▀ █ ${yellowf}█ ▀▀▀ █ ${bluef}█ ▀▀▀ █ ${purplef}█ ▀▀▀ █ ${cyanf}█ ▀▀▀ █ 43 | ${redf} █ █ ${greenf}█ █ ${yellowf}█ █ ${bluef}█ █ ${purplef}█ █ ${cyanf}█ █ 44 | ${boldon} 45 | ${redf} █ █ ${greenf}█ █ ${yellowf}█ █ ${bluef}█ █ ${purplef}█ █ ${cyanf}█ █ 46 | ${redf} █ ▄▄▄ █ ${greenf}█ ▄▄▄ █ ${yellowf}█ ▄▄▄ █ ${bluef}█ ▄▄▄ █ ${purplef}█ ▄▄▄ █ ${cyanf}█ ▄▄▄ █ 47 | ${redf} █▄▄██▀██▄▄█ ${greenf}█▄▄██▀██▄▄█ ${yellowf}█▄▄██▀██▄▄█ ${bluef}█▄▄██▀██▄▄█ ${purplef}█▄▄██▀██▄▄█ ${cyanf}█▄▄██▀██▄▄█ 48 | ${redf} █▀▀█████▀▀█ ${greenf}█▀▀█████▀▀█ ${yellowf}█▀▀█████▀▀█ ${bluef}█▀▀█████▀▀█ ${purplef}█▀▀█████▀▀█ ${cyanf}█▀▀█████▀▀█ 49 | ${redf} █ ▀▀▀ █ ${greenf}█ ▀▀▀ █ ${yellowf}█ ▀▀▀ █ ${bluef}█ ▀▀▀ █ ${purplef}█ ▀▀▀ █ ${cyanf}█ ▀▀▀ █ 50 | ${redf} █ █ ${greenf}█ █ ${yellowf}█ █ ${bluef}█ █ ${purplef}█ █ ${cyanf}█ █ 51 | ${reset} 52 | 53 | EOF 54 | -------------------------------------------------------------------------------- /color-scripts/unowns.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | # -*- coding: UTF-8 -*- 3 | __author__ = 'actionless' 4 | 5 | import random 6 | 7 | unowns = [[ 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 | ]] 44 | 45 | for mode in ['normal', 'bold']: 46 | random.shuffle(unowns) 47 | if mode == 'bold': 48 | print("\033[1m") 49 | 50 | print( 51 | '\n'.join([ 52 | ''.join([ 53 | "\033[03{n}m{string}".format( 54 | n=color_number + 1, 55 | string=unowns[color_number][line_number] 56 | ) 57 | for color_number in range(6)]) 58 | for line_number in range(5)]) 59 | ) 60 | 61 | # reset font: 62 | print("\033[0m") 63 | -------------------------------------------------------------------------------- /color-scripts/zwaves: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | # ANSI color scheme script by pfh 4 | # Source: http://crunchbang.org/forums/viewtopic.php?pid=141044#p141044 5 | # Initializing mod by lolilolicon from Archlinux 6 | 7 | 8 | f=3 b=4 9 | for j in f b; do 10 | for i in {0..7}; do 11 | printf -v $j$i %b "\e[${!j}${i}m" 12 | done 13 | done 14 | bld=$'\e[1m' 15 | rst=$'\e[0m' 16 | inv=$'\e[7m' 17 | 18 | cat << EOF 19 | 20 | $f1▀■▄ $f2▀■▄ $f3▀■▄ $f4▀■▄ $f5▀■▄ $f6▀■▄ 21 | $bld$f1▀■▄ $f2▀■▄ $f3▀■▄ $f4▀■▄ $f5▀■▄ $f6▀■▄$rst 22 | 23 | EOF 24 | -------------------------------------------------------------------------------- /preview/color-scripts-preview/alpha.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stark/Color-Scripts/299a816d1c96ac2831dc01702a6c797ddf887f2d/preview/color-scripts-preview/alpha.png -------------------------------------------------------------------------------- /preview/color-scripts-preview/arch.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stark/Color-Scripts/299a816d1c96ac2831dc01702a6c797ddf887f2d/preview/color-scripts-preview/arch.png -------------------------------------------------------------------------------- /preview/color-scripts-preview/bars.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stark/Color-Scripts/299a816d1c96ac2831dc01702a6c797ddf887f2d/preview/color-scripts-preview/bars.png -------------------------------------------------------------------------------- /preview/color-scripts-preview/blocks1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stark/Color-Scripts/299a816d1c96ac2831dc01702a6c797ddf887f2d/preview/color-scripts-preview/blocks1.png -------------------------------------------------------------------------------- /preview/color-scripts-preview/blocks2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stark/Color-Scripts/299a816d1c96ac2831dc01702a6c797ddf887f2d/preview/color-scripts-preview/blocks2.png -------------------------------------------------------------------------------- /preview/color-scripts-preview/bloks.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stark/Color-Scripts/299a816d1c96ac2831dc01702a6c797ddf887f2d/preview/color-scripts-preview/bloks.png -------------------------------------------------------------------------------- /preview/color-scripts-preview/colorbars.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stark/Color-Scripts/299a816d1c96ac2831dc01702a6c797ddf887f2d/preview/color-scripts-preview/colorbars.png -------------------------------------------------------------------------------- /preview/color-scripts-preview/colortest-slim.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stark/Color-Scripts/299a816d1c96ac2831dc01702a6c797ddf887f2d/preview/color-scripts-preview/colortest-slim.png -------------------------------------------------------------------------------- /preview/color-scripts-preview/colortest.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stark/Color-Scripts/299a816d1c96ac2831dc01702a6c797ddf887f2d/preview/color-scripts-preview/colortest.png -------------------------------------------------------------------------------- /preview/color-scripts-preview/colorview.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stark/Color-Scripts/299a816d1c96ac2831dc01702a6c797ddf887f2d/preview/color-scripts-preview/colorview.png -------------------------------------------------------------------------------- /preview/color-scripts-preview/colorwheel.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stark/Color-Scripts/299a816d1c96ac2831dc01702a6c797ddf887f2d/preview/color-scripts-preview/colorwheel.png -------------------------------------------------------------------------------- /preview/color-scripts-preview/crowns.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stark/Color-Scripts/299a816d1c96ac2831dc01702a6c797ddf887f2d/preview/color-scripts-preview/crowns.png -------------------------------------------------------------------------------- /preview/color-scripts-preview/crunch.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stark/Color-Scripts/299a816d1c96ac2831dc01702a6c797ddf887f2d/preview/color-scripts-preview/crunch.png -------------------------------------------------------------------------------- /preview/color-scripts-preview/crunchbang-mini.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stark/Color-Scripts/299a816d1c96ac2831dc01702a6c797ddf887f2d/preview/color-scripts-preview/crunchbang-mini.png -------------------------------------------------------------------------------- /preview/color-scripts-preview/crunchbang.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stark/Color-Scripts/299a816d1c96ac2831dc01702a6c797ddf887f2d/preview/color-scripts-preview/crunchbang.png -------------------------------------------------------------------------------- /preview/color-scripts-preview/darthvader.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stark/Color-Scripts/299a816d1c96ac2831dc01702a6c797ddf887f2d/preview/color-scripts-preview/darthvader.png -------------------------------------------------------------------------------- /preview/color-scripts-preview/dna.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stark/Color-Scripts/299a816d1c96ac2831dc01702a6c797ddf887f2d/preview/color-scripts-preview/dna.png -------------------------------------------------------------------------------- /preview/color-scripts-preview/dotx.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stark/Color-Scripts/299a816d1c96ac2831dc01702a6c797ddf887f2d/preview/color-scripts-preview/dotx.png -------------------------------------------------------------------------------- /preview/color-scripts-preview/elfman.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stark/Color-Scripts/299a816d1c96ac2831dc01702a6c797ddf887f2d/preview/color-scripts-preview/elfman.png -------------------------------------------------------------------------------- /preview/color-scripts-preview/faces.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stark/Color-Scripts/299a816d1c96ac2831dc01702a6c797ddf887f2d/preview/color-scripts-preview/faces.png -------------------------------------------------------------------------------- /preview/color-scripts-preview/fade.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stark/Color-Scripts/299a816d1c96ac2831dc01702a6c797ddf887f2d/preview/color-scripts-preview/fade.png -------------------------------------------------------------------------------- /preview/color-scripts-preview/ghosts.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stark/Color-Scripts/299a816d1c96ac2831dc01702a6c797ddf887f2d/preview/color-scripts-preview/ghosts.png -------------------------------------------------------------------------------- /preview/color-scripts-preview/guns.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stark/Color-Scripts/299a816d1c96ac2831dc01702a6c797ddf887f2d/preview/color-scripts-preview/guns.png -------------------------------------------------------------------------------- /preview/color-scripts-preview/hex-block.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stark/Color-Scripts/299a816d1c96ac2831dc01702a6c797ddf887f2d/preview/color-scripts-preview/hex-block.png -------------------------------------------------------------------------------- /preview/color-scripts-preview/hex.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stark/Color-Scripts/299a816d1c96ac2831dc01702a6c797ddf887f2d/preview/color-scripts-preview/hex.png -------------------------------------------------------------------------------- /preview/color-scripts-preview/illumina.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stark/Color-Scripts/299a816d1c96ac2831dc01702a6c797ddf887f2d/preview/color-scripts-preview/illumina.png -------------------------------------------------------------------------------- /preview/color-scripts-preview/jangofett.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stark/Color-Scripts/299a816d1c96ac2831dc01702a6c797ddf887f2d/preview/color-scripts-preview/jangofett.png -------------------------------------------------------------------------------- /preview/color-scripts-preview/monster.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stark/Color-Scripts/299a816d1c96ac2831dc01702a6c797ddf887f2d/preview/color-scripts-preview/monster.png -------------------------------------------------------------------------------- /preview/color-scripts-preview/mouseface.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stark/Color-Scripts/299a816d1c96ac2831dc01702a6c797ddf887f2d/preview/color-scripts-preview/mouseface.png -------------------------------------------------------------------------------- /preview/color-scripts-preview/mouseface2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stark/Color-Scripts/299a816d1c96ac2831dc01702a6c797ddf887f2d/preview/color-scripts-preview/mouseface2.png -------------------------------------------------------------------------------- /preview/color-scripts-preview/pacman.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stark/Color-Scripts/299a816d1c96ac2831dc01702a6c797ddf887f2d/preview/color-scripts-preview/pacman.png -------------------------------------------------------------------------------- /preview/color-scripts-preview/panes.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stark/Color-Scripts/299a816d1c96ac2831dc01702a6c797ddf887f2d/preview/color-scripts-preview/panes.png -------------------------------------------------------------------------------- /preview/color-scripts-preview/pinguco.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stark/Color-Scripts/299a816d1c96ac2831dc01702a6c797ddf887f2d/preview/color-scripts-preview/pinguco.png -------------------------------------------------------------------------------- /preview/color-scripts-preview/pipes1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stark/Color-Scripts/299a816d1c96ac2831dc01702a6c797ddf887f2d/preview/color-scripts-preview/pipes1.png -------------------------------------------------------------------------------- /preview/color-scripts-preview/pipes2-slim.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stark/Color-Scripts/299a816d1c96ac2831dc01702a6c797ddf887f2d/preview/color-scripts-preview/pipes2-slim.png -------------------------------------------------------------------------------- /preview/color-scripts-preview/pipes2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stark/Color-Scripts/299a816d1c96ac2831dc01702a6c797ddf887f2d/preview/color-scripts-preview/pipes2.png -------------------------------------------------------------------------------- /preview/color-scripts-preview/pukeskull.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stark/Color-Scripts/299a816d1c96ac2831dc01702a6c797ddf887f2d/preview/color-scripts-preview/pukeskull.png -------------------------------------------------------------------------------- /preview/color-scripts-preview/rails.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stark/Color-Scripts/299a816d1c96ac2831dc01702a6c797ddf887f2d/preview/color-scripts-preview/rails.png -------------------------------------------------------------------------------- /preview/color-scripts-preview/rally-X.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stark/Color-Scripts/299a816d1c96ac2831dc01702a6c797ddf887f2d/preview/color-scripts-preview/rally-X.png -------------------------------------------------------------------------------- /preview/color-scripts-preview/rupees.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stark/Color-Scripts/299a816d1c96ac2831dc01702a6c797ddf887f2d/preview/color-scripts-preview/rupees.png -------------------------------------------------------------------------------- /preview/color-scripts-preview/space-invaders.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stark/Color-Scripts/299a816d1c96ac2831dc01702a6c797ddf887f2d/preview/color-scripts-preview/space-invaders.png -------------------------------------------------------------------------------- /preview/color-scripts-preview/spectrum.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stark/Color-Scripts/299a816d1c96ac2831dc01702a6c797ddf887f2d/preview/color-scripts-preview/spectrum.png -------------------------------------------------------------------------------- /preview/color-scripts-preview/square.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stark/Color-Scripts/299a816d1c96ac2831dc01702a6c797ddf887f2d/preview/color-scripts-preview/square.png -------------------------------------------------------------------------------- /preview/color-scripts-preview/tanks.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stark/Color-Scripts/299a816d1c96ac2831dc01702a6c797ddf887f2d/preview/color-scripts-preview/tanks.png -------------------------------------------------------------------------------- /preview/color-scripts-preview/thebat.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stark/Color-Scripts/299a816d1c96ac2831dc01702a6c797ddf887f2d/preview/color-scripts-preview/thebat.png -------------------------------------------------------------------------------- /preview/color-scripts-preview/thebat2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stark/Color-Scripts/299a816d1c96ac2831dc01702a6c797ddf887f2d/preview/color-scripts-preview/thebat2.png -------------------------------------------------------------------------------- /preview/color-scripts-preview/tiefighter1-no-invo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stark/Color-Scripts/299a816d1c96ac2831dc01702a6c797ddf887f2d/preview/color-scripts-preview/tiefighter1-no-invo.png -------------------------------------------------------------------------------- /preview/color-scripts-preview/tiefighter1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stark/Color-Scripts/299a816d1c96ac2831dc01702a6c797ddf887f2d/preview/color-scripts-preview/tiefighter1.png -------------------------------------------------------------------------------- /preview/color-scripts-preview/tiefighter1row.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stark/Color-Scripts/299a816d1c96ac2831dc01702a6c797ddf887f2d/preview/color-scripts-preview/tiefighter1row.png -------------------------------------------------------------------------------- /preview/color-scripts-preview/tiefighter2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stark/Color-Scripts/299a816d1c96ac2831dc01702a6c797ddf887f2d/preview/color-scripts-preview/tiefighter2.png -------------------------------------------------------------------------------- /preview/color-scripts-preview/unowns.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stark/Color-Scripts/299a816d1c96ac2831dc01702a6c797ddf887f2d/preview/color-scripts-preview/unowns.png -------------------------------------------------------------------------------- /preview/color-scripts-preview/zwaves.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stark/Color-Scripts/299a816d1c96ac2831dc01702a6c797ddf887f2d/preview/color-scripts-preview/zwaves.png -------------------------------------------------------------------------------- /preview/test-color-support-preview/ansi.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stark/Color-Scripts/299a816d1c96ac2831dc01702a6c797ddf887f2d/preview/test-color-support-preview/ansi.png -------------------------------------------------------------------------------- /preview/test-color-support-preview/color-support1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stark/Color-Scripts/299a816d1c96ac2831dc01702a6c797ddf887f2d/preview/test-color-support-preview/color-support1.png -------------------------------------------------------------------------------- /preview/test-color-support-preview/color-support2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stark/Color-Scripts/299a816d1c96ac2831dc01702a6c797ddf887f2d/preview/test-color-support-preview/color-support2.png -------------------------------------------------------------------------------- /preview/test-color-support-preview/print-colors.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stark/Color-Scripts/299a816d1c96ac2831dc01702a6c797ddf887f2d/preview/test-color-support-preview/print-colors.png -------------------------------------------------------------------------------- /test-color-support/README.md: -------------------------------------------------------------------------------- 1 | # Color Support 2 | 3 | These are some scripts to display the current number of colors supported by your Term. 4 | -------------------------------------------------------------------------------- /test-color-support/ansi: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # 3 | # Edited and abbreviated version of "ANSI code generator" 4 | # 5 | # © Copyright 2015 Tyler Akins 6 | # Licensed under the MIT license with an additional non-advertising clause 7 | # See http://github.com/fidian/ansi 8 | 9 | color-table() { 10 | local FNB_LOWER FNB_UPPER PADDED 11 | 12 | FNB_LOWER="$(colorize 2 22 f)n$(colorize 1 22 b)" 13 | FNB_UPPER="$(colorize 2 22 F)N$(colorize 1 22 B)" 14 | echo -n "bold $(colorize 1 22 Sample) " 15 | echo -n "faint $(colorize 2 22 Sample) " 16 | echo "italic $(colorize 3 23 Sample)" 17 | echo -n "underline $(colorize 4 24 Sample) " 18 | echo -n "blink $(colorize 5 25 Sample) " 19 | echo "inverse $(colorize 7 27 Sample)" 20 | echo "invisible $(colorize 8 28 Sample)" 21 | echo -n "strike $(colorize 9 29 Sample) " 22 | echo -n "fraktur $(colorize 20 23 Sample) " 23 | echo "double-underline $(colorize 21 24 Sample)" 24 | echo -n "frame $(colorize 51 54 Sample) " 25 | echo -n "encircle $(colorize 52 54 Sample) " 26 | echo "overline $(colorize 53 55 Sample)" 27 | echo "" 28 | echo " black red green yellow blue magenta cyan white" 29 | for BG in 40:black 41:red 42:green 43:yellow 44:blue 45:magenta 46:cyan 47:white; do 30 | PADDED="bg-${BG:3} " 31 | PADDED="${PADDED:0:13}" 32 | echo -n "$PADDED" 33 | for FG in 30 31 32 33 34 35 36 37; do 34 | echo -n "$CSI${BG:0:2};${FG}m" 35 | echo -n "$FNB_LOWER" 36 | echo -n "$CSI$(( $FG + 60 ))m" 37 | echo -n "$FNB_UPPER" 38 | echo -n "${CSI}0m " 39 | done 40 | echo "" 41 | echo -n " +intense " 42 | for FG in 30 31 32 33 34 35 36 37; do 43 | echo -n "$CSI$(( ${BG:0:2} + 60 ));${FG}m" 44 | echo -n "$FNB_LOWER" 45 | echo -n "$CSI$(( $FG + 60 ))m" 46 | echo -n "$FNB_UPPER" 47 | echo -n "${CSI}0m " 48 | done 49 | echo "" 50 | done 51 | echo "" 52 | echo "Legend:" 53 | echo " Normal color: f = faint, n = normal, b = bold." 54 | echo " Intense color: F = faint, N = normal, B = bold." 55 | } 56 | 57 | colorize() { 58 | echo -n "$CSI${1}m$3$CSI${2}m" 59 | } 60 | 61 | # Handle long options until we hit an unrecognized thing 62 | CONTINUE=true 63 | RESTORE=true 64 | NEWLINE=false 65 | ESCAPE=false 66 | ESC="$(echo -e '\033')" 67 | CSI="${ESC}[" 68 | OSC="${ESC}]" 69 | ST="${ESC}\\" 70 | OUTPUT="" 71 | SUFFIX="" 72 | 73 | color-table 74 | -------------------------------------------------------------------------------- /test-color-support/color-support1.pl: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env perl 2 | # Author: Todd Larason 3 | # $XFree86: xc/programs/xterm/vttests/256colors2.pl,v 1.2 2002/03/26 01:46:43 dickey Exp $ 4 | 5 | # use the resources for colors 0-15 - usually more-or-less a 6 | # reproduction of the standard ANSI colors, but possibly more 7 | # pleasing shades 8 | 9 | # colors 16-231 are a 6x6x6 color cube 10 | for ($red = 0; $red < 6; $red++) { 11 | for ($green = 0; $green < 6; $green++) { 12 | for ($blue = 0; $blue < 6; $blue++) { 13 | printf("\x1b]4;%d;rgb:%2.2x/%2.2x/%2.2x\x1b\\", 14 | 16 + ($red * 36) + ($green * 6) + $blue, 15 | ($red ? ($red * 40 + 55) : 0), 16 | ($green ? ($green * 40 + 55) : 0), 17 | ($blue ? ($blue * 40 + 55) : 0)); 18 | } 19 | } 20 | } 21 | 22 | # colors 232-255 are a grayscale ramp, intentionally leaving out 23 | # black and white 24 | for ($gray = 0; $gray < 24; $gray++) { 25 | $level = ($gray * 10) + 8; 26 | printf("\x1b]4;%d;rgb:%2.2x/%2.2x/%2.2x\x1b\\", 27 | 232 + $gray, $level, $level, $level); 28 | } 29 | 30 | 31 | # display the colors 32 | 33 | # first the system ones: 34 | print "System colors:\n"; 35 | for ($color = 0; $color < 8; $color++) { 36 | print "\x1b[48;5;${color}m "; 37 | } 38 | print "\x1b[0m\n"; 39 | for ($color = 8; $color < 16; $color++) { 40 | print "\x1b[48;5;${color}m "; 41 | } 42 | print "\x1b[0m\n\n"; 43 | 44 | # now the color cube 45 | print "Color cube, 6x6x6:\n"; 46 | for ($green = 0; $green < 6; $green++) { 47 | for ($red = 0; $red < 6; $red++) { 48 | for ($blue = 0; $blue < 6; $blue++) { 49 | $color = 16 + ($red * 36) + ($green * 6) + $blue; 50 | print "\x1b[48;5;${color}m "; 51 | } 52 | print "\x1b[0m "; 53 | } 54 | print "\n"; 55 | } 56 | 57 | 58 | # now the grayscale ramp 59 | print "Grayscale ramp:\n"; 60 | for ($color = 232; $color < 256; $color++) { 61 | print "\x1b[48;5;${color}m "; 62 | } 63 | print "\x1b[0m\n"; 64 | -------------------------------------------------------------------------------- /test-color-support/color-support2: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | # If the '-e' flag is passed, cells will be three rows high. 4 | if [ "$1" == "-e" ]; then 5 | expanded=true; 6 | else 7 | expanded=false 8 | fi 9 | 10 | # If the option --sixteen is given, only show the first 16 colors 11 | if [ "$1" == "-16" ]; then 12 | showall=true; 13 | sixteen=true; 14 | expanded=true; 15 | else 16 | sixteen=false 17 | fi 18 | 19 | # Creates a color row. 20 | # Arguments: 21 | # - width (number) 22 | # - starting color (number) 23 | # - ending color (number) 24 | row () { 25 | # Give the arguments names for scope reasons. 26 | width=$(($1 - 2)) 27 | start=$2 28 | end=$3 29 | 30 | # Creates a "slice" (one terminal row) of a row. 31 | # Can be have number labels or be blank. 32 | # Arguments: 33 | # - label (boolean) 34 | slice () { 35 | for ((i=$start; i<=$end; i++)) 36 | do 37 | # Determine if there will be a label on this cell (this is actually 38 | # a per slice setting but the title needs to be set on each cell 39 | # because of the numbering). 40 | if [ $1 ]; then string=$i; else string=' '; fi 41 | 42 | # Change background to the correct color. 43 | tput setab $i 44 | 45 | # Print the cell. 46 | printf "%${width}s " $string 47 | done 48 | 49 | # Clear the coloring to avoid nasty wrapping colors. 50 | tput sgr0 51 | echo 52 | } 53 | 54 | if [ $expanded == true ]; then 55 | # Print a blank slice, a labeled one, and then a blank one. 56 | slice; slice true; slice 57 | else 58 | # Just print the labeled slice. 59 | slice true 60 | fi 61 | } 62 | 63 | display () { 64 | 65 | # Get the widths based on columns. 66 | cols=$(tput cols) 67 | sixth=$(($cols/6)) 68 | eighth=$(($cols/8)) 69 | twelfth=$(($cols/12)) 70 | 71 | # Give it some room to breathe. 72 | echo 73 | 74 | # The first sixteen colors. 75 | row $eighth 0 7 76 | row $eighth 8 15 77 | echo 78 | 79 | if [ $sixteen == true ]; then 80 | exit 81 | fi 82 | 83 | # 16-231. 84 | for ((a=0; a<=35; a++)) 85 | do 86 | row $sixth $((16 + (6 * a))) $((21 + (6 * a))) 87 | done 88 | echo 89 | 90 | # Greyscale. 91 | row $twelfth 232 243 92 | tput setaf 0 93 | row $twelfth 244 255 94 | 95 | # Clear before exiting. 96 | tput sgr0 97 | echo 98 | } 99 | 100 | # Show that table thang! 101 | display 102 | -------------------------------------------------------------------------------- /test-color-support/print-colors.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | """ 3 | You can use this tool to display all supported colors and their color number. 4 | It will exit after a keypress. 5 | Compatible with both Python 2 and 3 6 | """ 7 | 8 | import curses 9 | from curses import * 10 | 11 | @wrapper 12 | def main(win): 13 | def print_all_colors(attr): 14 | for c in range(0, curses.COLORS): 15 | init_pair(c, c, -1) 16 | win.addstr(str(c) + ' ', color_pair(c) | attr) 17 | use_default_colors() 18 | win.addstr("available colors: %d\n\n" % curses.COLORS) 19 | print_all_colors(0) 20 | win.addstr("\n\n") 21 | print_all_colors(A_BOLD) 22 | win.refresh() 23 | win.getch() 24 | 25 | --------------------------------------------------------------------------------