-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
108 lines (84 loc) · 2.61 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
.PHONY: setup clear keyd config_files wall_and_scripts doom anotacoes vim-misc firefox shell
MAKEFLAGS += -s
install:
@$(MAKE) config
@$(MAKE) wall_and_scripts
@$(MAKE) keyd
clean:
@echo "Cleaning config..."
@rm ~/.local/scripts ~/wallpapers ~/.config/doom ~/.config/hypr \
~/.config/i3 ~/.config/yazi ~/.config/picom ~/.config/tmux \
~/.config/wezterm ~/.config/waybar ~/.config/zshrc ~/.config/ansible ~/.config/fish \
~/.config/rofi ~/.config/.gitconfig ~/.config/dunst ~/.config/keyd ~/.config/gtk-3.0 ~/.config/ghostty
keyd:
@echo "Setting up keyd..."
@sudo ln -nfs ~/dotfiles/keyd/default.conf /etc/keyd/default.conf
keyd/service:
sudo systemctl enable keyd --now
SYMLINKS := doom zshrc ansible fish rofi .gitconfig dunst keyd gtk-3.0
SYMLINKS_TERMINAL := wezterm ghostty tmux yazi
SYMLINKS_WLND := hypr waybar
SYMLINKS_XORG := i3 picom
SYMLINKS_SHELL := zshrc fish
config:
@echo "Setting up config files..."
@for file in $(SYMLINKS); do \
ln -nfs ~/dotfiles/$$file ~/.config/$$file; \
done
$(MAKE) config/wayland
$(MAKE) config/xorg
$(MAKE) config/terminal
$(MAKE) config/shell
@ln -nfs ~/dotfiles/.gitconfig ~/.gitconfig
config/terminal:
@for file in $(SYMLINKS_TERMINAL); do \
ln -nfs ~/dotfiles/terminal/$$file ~/.config/$$file; \
done
config/shell:
@for file in $(SYMLINKS_SHELL); do \
ln -nfs ~/dotfiles/shell/$$file ~/.config/$$file; \
done
config/wayland:
@for file in $(SYMLINKS_WLND); do \
ln -nfs ~/dotfiles/wayland/$$file ~/.config/$$file; \
done
config/xorg:
@for file in $(SYMLINKS_XORG); do \
ln -nfs ~/dotfiles/xorg/$$file ~/.config/$$file; \
done
wall_and_scripts:
@echo "Setting up wallpapers and scripts..."
@ln -nfs ~/dotfiles/scripts/ ~/.local/scripts
@ln -nfs ~/dotfiles/wallpapers/ ~/wallpapers
push:
@git add . && git commit --amend --no-edit && git push -f
DOOM_REPO := https://github.com/doomemacs/doomemacs
DOOM_INSTALL_DIR = $(HOME)/.config/emacs
doom:
@if [ ! -d "$(DOOM_INSTALL_DIR)" ]; then \
git clone --depth 1 "$(DOOM_REPO)" "$(DOOM_INSTALL_DIR)"; \
$(DOOM_INSTALL_DIR)/bin/doom install; \
else
@echo "Doom already installed."
fi
NOTES_DIR := $(HOME)/sync
shell:
chsh -s /usr/bin/fish rgnh55
set_rust:
@rustup default nightly
flatpak:
@echo "easyeffects"
vim/vanilla:
ln -nfs ~/dotfiles/editor/vim ~/.config/nvim
vim/default:
ln -nfs ~/dotfiles/editor/lazyvim ~/.config/nvim
firefox:
@echo "Append this file config to the current default profile"
@echo "To see, type about:profiles in firefox"
@bat -p "firefox/prefs.js"
clear/nvim:
rm -rf ~/.local/share/nvim
rm -rf ~/.local/state/nvim
rm -rf ~/.cache/nvim
npm/prefix:
npm set prefix ~/.npm-global