mirror of
https://github.com/IlanCosman/tide.git
synced 2024-12-01 18:23:15 +03:00
Add color swatch script
This commit is contained in:
parent
c272c52691
commit
4c1931dffd
12
tools/swatch.fish
Normal file
12
tools/swatch.fish
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
set -l height_in_lines 2
|
||||||
|
|
||||||
|
set -l width_in_chars (math --scale=0 $height_in_lines x 2.5) # 2.5 = ratio
|
||||||
|
|
||||||
|
for arg in $argv
|
||||||
|
for i in (seq $height_in_lines)
|
||||||
|
set_color -b $arg
|
||||||
|
string repeat --no-newline --count $width_in_chars ' '
|
||||||
|
set_color normal
|
||||||
|
echo
|
||||||
|
end
|
||||||
|
end
|
Loading…
Reference in New Issue
Block a user