36 lines
1.5 KiB
Bash
Executable file
36 lines
1.5 KiB
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
# Fetchs colors from https://github.com/chriskempson/base16 templates
|
|
# and apply them into my configuration
|
|
|
|
scheme="$1"
|
|
|
|
# TODO Verify if scheme is known
|
|
|
|
# Shell (allows to use all colors in Vim while still having nice colors in the rest of the terminal)
|
|
curl "https://raw.githubusercontent.com/chriskempson/base16-shell/master/scripts/base16-${scheme}.sh" > ~/.bin/colorSchemeApply
|
|
chmod +x ~/.bin/colorSchemeApply
|
|
|
|
# Xressources (I'm not sure if this is really needed with shell overriding these but i3 load those resources)
|
|
curl "https://raw.githubusercontent.com/chriskempson/base16-xresources/master/xresources/base16-${scheme}-256.Xresources" > ~/.Xresources.d/theme
|
|
|
|
# Vim
|
|
echo -e "let base16colorspace=256\nset termguicolors\ncolorscheme base16-${scheme}" > ~/.vim/colorscheme.vim
|
|
|
|
# FZF
|
|
curl "https://raw.githubusercontent.com/nicodebo/base16-fzf/master/bash/base16-${scheme}.config" > ~/.bin/colorSchemeApplyFzf
|
|
chmod +x ~/.bin/colorSchemeApplyFzf
|
|
|
|
# qutebrowser
|
|
curl "https://raw.githubusercontent.com/theova/base16-qutebrowser/4a17eea8a39f722c2cee95fb44d4a87f5eb2518f/themes/base16-${scheme}.config.py" > ~/.config/qutebrowser/theme.py
|
|
|
|
# TODO dunst (template online, but not to my liking)
|
|
# TODO bar (might change bar in the future, so...)
|
|
# TODO qutebrowser (need to fiddle with the config thing)
|
|
# TODO highlight (there IS a template but the colors look different from vim and mostly the same from when there's no config)
|
|
|
|
# Reload a bunch of things to make changes immediate
|
|
source ~/.bashrc
|
|
xrdb -load ~/.Xresources
|
|
i3-msg reload
|