2018-07-30 10:55:06 +02:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
# Fetchs colors from https://github.com/chriskempson/base16 templates
|
|
|
|
# and apply them into my configuration
|
|
|
|
|
|
|
|
scheme="$1"
|
2018-08-19 11:29:59 +02:00
|
|
|
if [ -z "$scheme" ]
|
|
|
|
then
|
|
|
|
echo Please specify a scheme
|
|
|
|
exit 1
|
|
|
|
fi
|
2018-07-30 10:55:06 +02:00
|
|
|
|
|
|
|
# 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)
|
2018-08-19 11:29:59 +02:00
|
|
|
curl "https://raw.githubusercontent.com/chriskempson/base16-shell/master/scripts/base16-${scheme}.sh" > ~/.local/bin/colorSchemeApply
|
|
|
|
chmod +x ~/.local/bin/colorSchemeApply
|
2018-07-30 10:55:06 +02:00
|
|
|
|
|
|
|
# Xressources (I'm not sure if this is really needed with shell overriding these but i3 load those resources)
|
2019-04-28 04:05:45 +02:00
|
|
|
curl "https://raw.githubusercontent.com/chriskempson/base16-xresources/master/xresources/base16-${scheme}-256.Xresources" > ~/.config/Xresources/theme
|
2018-07-30 10:55:06 +02:00
|
|
|
|
|
|
|
# Vim
|
2019-04-28 04:05:45 +02:00
|
|
|
echo -e "let base16colorspace=256\n\"set termguicolors\ncolorscheme base16-${scheme}" > ~/.cache/vim/colorscheme.vim
|
2018-07-30 10:55:06 +02:00
|
|
|
|
|
|
|
# FZF
|
2018-08-19 11:29:59 +02:00
|
|
|
curl "https://raw.githubusercontent.com/nicodebo/base16-fzf/master/bash/base16-${scheme}.config" > ~/.local/bin/colorSchemeApplyFzf
|
|
|
|
chmod +x ~/.local/bin/colorSchemeApplyFzf
|
2018-07-30 10:55:06 +02:00
|
|
|
|
|
|
|
# qutebrowser
|
|
|
|
curl "https://raw.githubusercontent.com/theova/base16-qutebrowser/4a17eea8a39f722c2cee95fb44d4a87f5eb2518f/themes/base16-${scheme}.config.py" > ~/.config/qutebrowser/theme.py
|
|
|
|
|
2018-08-19 11:29:59 +02:00
|
|
|
# rofi
|
|
|
|
curl "https://raw.githubusercontent.com/0xdec/base16-rofi/master/themes/base16-${scheme}.rasi" > ~/.config/rofi/theme.rasi
|
|
|
|
curl "https://raw.githubusercontent.com/0xdec/base16-rofi/master/themes/base16-${scheme}.config" > ~/.config/rofi/theme.config
|
|
|
|
|
2018-11-24 13:45:14 +01:00
|
|
|
# qutebrowser
|
|
|
|
curl "https://raw.githubusercontent.com/theova/base16-qutebrowser/master/themes/base16-${scheme}.config.py" > ~/.config/qutebrowser/theme.py
|
|
|
|
|
2019-08-11 17:06:45 +02:00
|
|
|
# Tridactyl
|
|
|
|
curl "https://raw.githubusercontent.com/bezmi/base16-tridactyl/master/base16-${scheme}.css" > ~/.config/tridactyl/themes/theme.css
|
|
|
|
|
2018-07-30 10:55:06 +02:00
|
|
|
# TODO dunst (template online, but not to my liking)
|
|
|
|
# TODO bar (might change bar in the future, so...)
|
|
|
|
# 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
|
2019-04-14 19:41:33 +02:00
|
|
|
~/.local/bin/colorSchemeApply
|
|
|
|
~/.local/bin/colorSchemeApplyFzf
|
|
|
|
# Error masking in case X not running
|
2019-08-11 17:06:45 +02:00
|
|
|
#xrdb -load ~/.config/Xresources/main 2> /dev/null
|
|
|
|
xrdb -I$HOME ~/.config/Xresources/main 2> /dev/null
|
2019-04-14 19:41:33 +02:00
|
|
|
i3-msg reload 2> /dev/null
|
|
|
|
|