142 lines
4.0 KiB
Makefile
142 lines
4.0 KiB
Makefile
COLOR=red
|
|
|
|
all:
|
|
mkdir -p stage
|
|
${MAKE} alacritty bat cursor dunst git gtk i3 picom rofi vim xinit zsh
|
|
|
|
install: distfiles
|
|
cp -r stage/{.,}* ${HOME}
|
|
bat cache --build
|
|
|
|
distfiles: dist/alacritty/catppuccin-mocha.toml dist/bat/Catppuccin-Mocha.tmTheme dist/catppuccin-mocha-${COLOR}-cursors.zip dist/gtk/catppuccin-mocha-${COLOR}-standard+default.zip dist/rofi/catppuccin-mocha.rasi dist/yadi.vim dist/catppuccin_mocha.vim
|
|
|
|
clean:
|
|
rm -r dist stage
|
|
|
|
alacritty: src/alacritty.toml dist/alacritty/catppuccin-mocha.toml
|
|
mkdir -p stage/.config/alacritty
|
|
cp $> stage/.config/alacritty
|
|
|
|
bat: src/bat/config dist/bat/Catppuccin-Mocha.tmTheme
|
|
mkdir -p stage/.config/bat/themes
|
|
cp src/bat/config stage/.config/bat
|
|
cp dist/bat/Catppuccin-Mocha.tmTheme "stage/.config/bat/themes/Catppuccin Mocha.tmTheme"
|
|
|
|
cursor: dist/catppuccin-mocha-${COLOR}-cursors.zip
|
|
echo "Xcursor.theme: catppuccin-mocha-${COLOR}-cursors" > stage/.Xresources
|
|
mkdir -p stage/.icons
|
|
cd stage/.icons && unzip ../../$>
|
|
|
|
dunst: src/dunstrc
|
|
mkdir -p stage/.config/dunst
|
|
cp $> stage/.config/dunst
|
|
|
|
git: src/gitconfig
|
|
cp $> stage/.gitconfig
|
|
|
|
gtk: dist/gtk/catppuccin-mocha-${COLOR}-standard+default.zip
|
|
mkdir -p stage/.config/gtk-3.0 stage/.themes
|
|
echo '[Settings]' > stage/.config/gtk-3.0/settings.ini
|
|
echo "gtk-theme-name = catppuccin-mocha-${COLOR}-standard+default" >> stage/.config/gtk-3.0/settings.ini
|
|
cd stage/.themes && unzip ../../$>
|
|
|
|
i3: src/i3/config
|
|
mkdir -p stage/.config/i3
|
|
cp $> stage/.config/i3
|
|
|
|
picom: src/picom.conf
|
|
mkdir -p stage/.config
|
|
cp $> stage/.config
|
|
|
|
rofi: src/rofi/config.rasi dist/rofi/catppuccin-mocha.rasi
|
|
mkdir -p stage/.config/rofi stage/.local/share/rofi/themes
|
|
cp src/rofi/config.rasi stage/.config/rofi
|
|
cp dist/rofi/catppuccin-mocha.rasi stage/.local/share/rofi/themes
|
|
|
|
vim: src/vimrc dist/yadi.vim dist/catppuccin_mocha.vim
|
|
cp src/vimrc stage/.vimrc
|
|
mkdir -p stage/.vim/{colors,plugin}
|
|
cp dist/yadi.vim stage/.vim/plugin
|
|
cp dist/catppuccin_mocha.vim stage/.vim/colors
|
|
|
|
xinit: src/xinitrc
|
|
cp $> stage/.xinitrc
|
|
|
|
zsh: src/zshrc
|
|
echo '. ~/.profile' > stage/.zprofile
|
|
cp $> stage/.zshrc
|
|
|
|
# alacritty
|
|
src/alacritty.toml:
|
|
cp ${HOME}/.config/alacritty/alacritty.toml $@
|
|
|
|
dist/alacritty/catppuccin-mocha.toml:
|
|
mkdir -p dist/alacritty
|
|
curl -LO --output-dir dist/alacritty https://github.com/catppuccin/alacritty/raw/main/catppuccin-mocha.toml
|
|
|
|
# bat
|
|
src/bat/config:
|
|
mkdir -p src/bat
|
|
cp ${HOME}/.config/bat/config $@
|
|
|
|
dist/bat/Catppuccin-Mocha.tmTheme:
|
|
mkdir -p dist/bat
|
|
curl -Lo $@ https://github.com/catppuccin/bat/raw/main/themes/Catppuccin%20Mocha.tmTheme
|
|
|
|
# cursor
|
|
dist/catppuccin-mocha-${COLOR}-cursors.zip:
|
|
curl -LO --output-dir dist https://github.com/catppuccin/cursors/releases/latest/download/catppuccin-mocha-${COLOR}-cursors.zip
|
|
|
|
# dunst
|
|
src/dunstrc:
|
|
cp ${HOME}/.config/dunst/dunstrc $@
|
|
|
|
# git
|
|
src/gitconfig:
|
|
cp ${HOME}/.gitconfig $@
|
|
|
|
# gtk
|
|
|
|
# the official catppuccin gtk repository has been archived. continue to
|
|
# use the latest release from the old repo until a new, actively
|
|
# maintained repo has been created
|
|
dist/gtk/catppuccin-mocha-${COLOR}-standard+default.zip:
|
|
mkdir -p dist/gtk
|
|
curl -LO --output-dir dist/gtk https://github.com/catppuccin/gtk/releases/latest/download/catppuccin-mocha-${COLOR}-standard+default.zip
|
|
|
|
# i3
|
|
src/i3/config:
|
|
mkdir -p src/i3
|
|
cp ${HOME}/.config/i3/config $@
|
|
|
|
# picom
|
|
src/picom.conf:
|
|
cp ${HOME}/.config/picom.conf $@
|
|
|
|
# rofi
|
|
src/rofi/config.rasi:
|
|
mkdir -p src/rofi
|
|
cp ${HOME}/.config/rofi/config.rasi $@
|
|
|
|
dist/rofi/catppuccin-mocha.rasi:
|
|
mkdir -p dist/rofi
|
|
curl -LO --output-dir dist/rofi https://raw.githubusercontent.com/catppuccin/rofi/main/basic/.local/share/rofi/themes/catppuccin-mocha.rasi
|
|
|
|
# vim
|
|
src/vimrc:
|
|
cp ${HOME}/.vimrc $@
|
|
|
|
dist/yadi.vim:
|
|
curl -LO --output-dir dist https://raw.githubusercontent.com/timakro/vim-yadi/main/plugin/yadi.vim
|
|
|
|
dist/catppuccin_mocha.vim:
|
|
curl -LO --output-dir dist https://github.com/catppuccin/vim/blob/main/colors/catppuccin_mocha.vim
|
|
|
|
# xinit
|
|
src/xinitrc:
|
|
cp ${HOME}/.xinitrc $@
|
|
|
|
# zsh
|
|
src/zshrc:
|
|
cp ${HOME}/.zshrc $@
|