got rid of zsh stuff I don't use; i3lock now uses active colorscheme; fixed color7 on halloween theme

This commit is contained in:
2022-08-23 17:44:56 -06:00
parent 2571cf4fe5
commit caf69459e2
8 changed files with 83 additions and 113 deletions

17
bin/get-colorscheme-hex Executable file
View File

@ -0,0 +1,17 @@
#!/bin/zsh
source $HOME/.config/wryn/env.zsh
#####################################################################
GET_COLORSCHEME_HEX() {
[ $1 ] && [[ $1 -le 15 ]] && [[ $1 -ge 0 ]] \
|| __FAIL 1 'must provide ANSI color number 0-15'
grep "^color$1" "$DOTWRYN/colorschemes/kitty.main" \
| awk '{print $2}' \
| sed 's/ //g; s/#//g' \
| tr '[:lower:]' '[:upper:]'
}
#####################################################################
[ ! $1 ] && return 0
GET_COLORSCHEME_HEX $@