-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
46 lines (37 loc) · 1.29 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
packages := desktop src scripts fontconfig bat dunst git gnupg isync isync \
lynx mangohud mpv msmtp neomutt newsboat nnn npm paru nsxiv picom \
zsh zathura x11 tmux sxhkd shell ripgrep qutebrowser lazygit \
gtk qt ghostty
all: submodule patch stow theming
submodule:
git submodule init
git submodule update
update:
git submodule update --remote --init --recursive
stow:
for pkg in $(packages); do \
stow -t ~ -S $$pkg; \
done
restow:
for pkg in $(packages); do \
stow -t ~ -R $$pkg; \
done
theming:
touch "$$XDG_CONFIG_HOME/ricing/theme.Xresources"
touch "$$XDG_CONFIG_HOME/ricing/colorscheme.lua"
touch "$$XDG_CONFIG_HOME/ricing/theme.zsh"
touch "$$XDG_CONFIG_HOME/ricing/theme-tmux.conf"
touch "$$XDG_CONFIG_HOME/ricing/theme-qutebrowser.py"
touch "$$XDG_CONFIG_HOME/ricing/delta-theme.gitcofig"
touch "$$XDG_CONFIG_HOME/ricing/lazygit-theme.yml"
touch "$$XDG_CONFIG_HOME/ricing/zathura-theme"
touch "$$XDG_CONFIG_HOME/ricing/theme.dunstrc"
rice:
scripts/.local/bin/rice tokyonight
patch:
@if patch -p1 --forward --dry-run < patches/readability-js.patch >/dev/null 2>&1; then \
patch -p1 --forward < patches/readability-js.patch; \
else \
echo "Patch already applied or cannot be applied"; \
fi
.PHONY: all submodule update stow theming gruvbox restow patch