diff options
author | Cody Hiar <codyfh@gmail.com> | 2017-06-09 08:03:15 -0600 |
---|---|---|
committer | Cody Hiar <codyfh@gmail.com> | 2017-06-10 16:00:35 -0600 |
commit | 12825d5147f5c0b1636dbda5ba34790d7c7bb236 (patch) | |
tree | 4e19cf279bd5aaed07209b21dbb2203d9f211a25 /scripts/color_palette.sh | |
parent | f7e44ef5b68574a3803f27dc06143abecae430ca (diff) |
Moving files, cleaning up bug with drawer close (closing drawer in 2 places)
Diffstat (limited to 'scripts/color_palette.sh')
-rwxr-xr-x | scripts/color_palette.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/scripts/color_palette.sh b/scripts/color_palette.sh new file mode 100755 index 0000000..3762fae --- /dev/null +++ b/scripts/color_palette.sh @@ -0,0 +1,14 @@ +#!/usr/bin/env bash +# Print tmux color palette. +# Idea from http://superuser.com/questions/285381/how-does-the-tmux-color-palette-work + +for i in $(seq 0 4 255); do + for j in $(seq $i $(expr $i + 3)); do + for k in $(seq 1 $(expr 3 - ${#j})); do + printf " " + done + printf "\x1b[38;5;${j}mcolour${j}" + [[ $(expr $j % 4) != 3 ]] && printf " " + done + printf "\n" +done |