summaryrefslogtreecommitdiff
path: root/artix/Makefile
blob: 7948179ab2e099ee294728dacdbad1e64764483d (plain)
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
.PHONY = all config stow unstow artix lsp pac

COLORSCHEME = google
FONT = monospace

all: config

config: unstow
	set -a; \
	export FONT="$(FONT)"; \
	. colorscheme/$(COLORSCHEME).env; \
	set +a; \
	envsubst < template/alacritty/alacritty.toml > home/.config/alacritty/alacritty.toml; \
	envsubst < template/dunst/dunstrc > home/.config/dunst/dunstrc; \
	envsubst < template/waybar/style.css > home/.config/waybar/style.css
	sed -i "s/@theme.*/@theme \"$(COLORSCHEME).rasi\"/g" home/.config/rofi/config.rasi
	make stow

stow:
	mkdir -p $$HOME/.local/bin/ $$HOME/.local/share/ $$HOME/.config/
	stow -v -t $$HOME -R home

unstow:
	stow -v -t $$HOME -D home

artix:
	pacman -S --needed hyprland hyprpicker alacritty waybar dunst grim wl-clipboard slurp xdg-desktop-portal-hyprland xdg-user-dirs zsh zsh-autosuggestions zsh-syntax-highlighting brightnessctl firefox zathura-pdf-poppler thunderbird keepassxc mpv yt-dlp nsxiv pavucontrol time tree openssh man-db man-pages pacman-contrib stow fzf syncthing ufw-dinit chrony-dinit hyprpolkitagent
	@echo "  Change your shell to zsh (chsh -s /bin/zsh)"
	@echo "  Enable ufw"
	@echo "  Enable chrony"
	@echo "  install tofi"

pac:
	paccache -r
	pacman -Qdtq | pacman -Rns -

# lua-language-server jdtls vscode-langservers-extracted clang tinymist marksman lemminx pyright rustup typescript typescript-language-server