got rid of zsh stuff I don't use; i3lock now uses active colorscheme; fixed color7 on halloween theme
This commit is contained in:
17
bin/get-colorscheme-hex
Executable file
17
bin/get-colorscheme-hex
Executable 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 $@
|
Reference in New Issue
Block a user