remove base16 from git, ignore color gen base16 clone dir, finished color gen script, added more arch packages
This commit is contained in:
parent
575d73275c
commit
3723faea0c
1
common/colors/generator/.gitignore
vendored
Normal file
1
common/colors/generator/.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
vendor
|
|
@ -1,19 +1,19 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
SCHEME="donokai"
|
||||||
|
|
||||||
v=$(ruby --version)
|
v=$(ruby --version)
|
||||||
|
|
||||||
if [[ $? -eq 0 ]]; then
|
if [[ $? -eq 0 ]]; then
|
||||||
SCHEME="donokai"
|
|
||||||
if [[ -n $1 ]]; then
|
if [[ -n $1 ]]; then
|
||||||
SCHEME=$1
|
SCHEME=$1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
DIR=$(cd "$(dirname "${BASH_SOURCE[0]}" )/../.." && pwd)
|
DIR=$(cd "$(dirname "${BASH_SOURCE[0]}" )" && pwd)
|
||||||
source "$DIR/variables.bash"
|
|
||||||
|
|
||||||
mkdir -p "$DOTFILES_PATH/colors/gen/vendor"
|
mkdir -p "$DIR/vendor"
|
||||||
|
|
||||||
B16_DIR="$DOTFILES_PATH/colors/gen/vendor/base16-builder"
|
B16_DIR="$DIR/vendor/base16-builder"
|
||||||
COLORS_PATH="$B16_DIR/output"
|
COLORS_PATH="$B16_DIR/output"
|
||||||
|
|
||||||
if [ -d "$B16_DIR" ]; then
|
if [ -d "$B16_DIR" ]; then
|
||||||
|
@ -21,27 +21,23 @@ if [[ $? -eq 0 ]]; then
|
||||||
rm -rf "$COLORS_PATH"
|
rm -rf "$COLORS_PATH"
|
||||||
mkdir -p "$COLORS_PATH"
|
mkdir -p "$COLORS_PATH"
|
||||||
else
|
else
|
||||||
git clone https://github.com/lytedev/base16-builder.git "$DOTFILES_PATH/colors/gen/vendor/base16-builder"
|
git clone https://github.com/lytedev/base16-builder.git "$DIR/vendor/base16-builder"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
"$DOTFILES_PATH/colors/gen/vendor/base16-builder/base16" -t vim -s "$DOTFILES_PATH/colors/gen/schemes/$SCHEME.yml"
|
"$DIR/vendor/base16-builder/base16" -t vim -s "$DIR/schemes/$SCHEME.yml"
|
||||||
"$DOTFILES_PATH/colors/gen/vendor/base16-builder/base16" -t xresources -s "$DOTFILES_PATH/colors/gen/schemes/$SCHEME.yml"
|
"$DIR/vendor/base16-builder/base16" -t xresources -s "$DIR/schemes/$SCHEME.yml"
|
||||||
"$DOTFILES_PATH/colors/gen/vendor/base16-builder/base16" -t shell -s "$DOTFILES_PATH/colors/gen/schemes/$SCHEME.yml"
|
"$DIR/vendor/base16-builder/base16" -t shell -s "$DIR/schemes/$SCHEME.yml"
|
||||||
|
|
||||||
COLORS_PATH=$DOTFILES_PATH/colors/gen/vendor/base16-builder/output
|
# replace existing color files
|
||||||
|
rm -f "$DIR/../shell"
|
||||||
|
rm -f "$DIR/../vim"
|
||||||
|
rm -f "$DIR/../xresources"
|
||||||
|
cp "$COLORS_PATH/xresources/base16-$SCHEME.dark.xresources" "$DIR/../xresources"
|
||||||
|
cp "$COLORS_PATH/vim/base16-$SCHEME.vim" "$DIR/../vim"
|
||||||
|
cp "$COLORS_PATH/shell/base16-$SCHEME.dark.sh" "$DIR/../shell"
|
||||||
|
chmod +x "$DIR/../shell"
|
||||||
|
|
||||||
rm -f "$DOTFILES_PATH/colors/xresources"
|
echo "Colors have been regenerated. You will need to re-link them."
|
||||||
rm -f "$DOTFILES_PATH/colors/vim"
|
|
||||||
rm -f "$DOTFILES_PATH/colors/shell"
|
|
||||||
cp "$COLORS_PATH/xresources/base16-$SCHEME.dark.xresources" "$DOTFILES_PATH/colors/xresources"
|
|
||||||
cp "$COLORS_PATH/vim/base16-$SCHEME.vim" "$DOTFILES_PATH/colors/vim"
|
|
||||||
cp "$COLORS_PATH/shell/base16-$SCHEME.dark.sh" "$DOTFILES_PATH/colors/shell"
|
|
||||||
chmod +x "$DOTFILES_PATH/colors/shell"
|
|
||||||
|
|
||||||
xrdb -merge "$DOTFILES_PATH/colors/xresources"
|
|
||||||
source "$DOTFILES_PATH/scripts/reload_xresources.sh"
|
|
||||||
source "$DOTFILES_PATH/env/wm/bspwm_config" > /dev/null
|
|
||||||
# kill -SIGUSR1 $(cat "$BAR_PID_FILE")
|
|
||||||
else
|
else
|
||||||
echo "Ruby isn't installed."
|
echo "Ruby isn't installed."
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
Subproject commit 944e88a10bc145f56ead1d6d82a06f252c92adc1
|
|
|
@ -1,14 +0,0 @@
|
||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
DIR=$(cd "$(dirname "${BASH_SOURCE[0]}" )/.." && pwd)
|
|
||||||
source "$DIR/variables.bash"
|
|
||||||
|
|
||||||
mkdir -p "$DOTFILES_PATH/editor/nvim/config/colors"
|
|
||||||
|
|
||||||
rm -f ~/.Xresources.colors
|
|
||||||
rm -f "$DOTFILES_PATH/editor/nvim/config/colors/current.vim"
|
|
||||||
ln -s "$DOTFILES_PATH/colors/xresources" "$HOME/.Xresources.colors"
|
|
||||||
ln -s "$DOTFILES_PATH/colors/vim" "$DOTFILES_PATH/editor/nvim/config/colors/current.vim"
|
|
||||||
|
|
||||||
source "$DOTFILES_PATH/env/x/xloadresources"
|
|
||||||
|
|
|
@ -15,4 +15,6 @@ pacaur -S \
|
||||||
audacity
|
audacity
|
||||||
reptyr \
|
reptyr \
|
||||||
cmake python2 python2-pip \
|
cmake python2 python2-pip \
|
||||||
|
lightdm \
|
||||||
|
polybar-git \
|
||||||
--noconfirm --noedit
|
--noconfirm --noedit
|
||||||
|
|
Reference in a new issue