color-hash.ksh: small improvements

Don't set color and return the index instead. This allows also using it
for background. Sprinkle a couple of '-nr --' for 'print' calls. Add the
fnv1 variant.
This commit is contained in:
Lucas 2023-10-24 19:51:20 +00:00
parent 0d7fd8f76a
commit 19049d2472
3 changed files with 69 additions and 37 deletions

View file

@ -1,6 +1,4 @@
#!/bin/sh
/usr/local/bin/sct 3500
xset r rate 300 75
xsetroot -solid "#000000"
/usr/local/bin/xli -onroot -gamma 2.2 /etc/X11/xenodm/pixmaps/FreeHugsBSD-bg.png
xconsole -geometry 480x130-0-0 -daemon -notify -verbose -exitOnFail