-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
83 lines (67 loc) · 2.77 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
.PHONY: setup clear keyd config_files wall_and_scripts doom anotacoes archlinux
MAKEFLAGS += -s
setup:
@$(MAKE) config_files
@$(MAKE) wall_and_scripts
@$(MAKE) keyd
@$(MAKE) anotacoes
clear:
@echo "Removing config files..."
@rm ~/.local/scripts ~/wallpapers ~/.config/doom ~/.config/hypr \
~/.config/i3 ~/.config/yazi ~/.config/picom ~/.config/nvim ~/.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
SYMLINKS := doom hypr i3 yazi picom nvim tmux wezterm waybar zshrc ansible fish rofi .gitconfig dunst keyd gtk-3.0 ghostty
config_files:
@echo "Setting up config files..."
@for file in $(SYMLINKS); do \
ln -nfs ~/dotfiles/$$file ~/.config/$$file; \
done
@ln -nfs ~/dotfiles/.gitconfig ~/.gitconfig
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
anotacoes:
@if [ ! -d "$(NOTES_DIR)" ]; then \
@echo "Cloning notes..." \
@git clone [email protected]:rafaeloledo/sync $(NOTES_DIR); \
fi
ARCHLINUX_PACKAGES := \
neovim google-chrome ani-cli \
android-tools android-file-transfer \
arduino-ide bat blueman cloudflared \
cmake dbeaver discord duf dunst egl-wayland \
emacs eza fastfetch fd feh fish ghostty git go \
google-chrome grim helix hyprland hyprpaper hyprpicker \
i3-wm i3blocks i3lock i3status i7z inkscape intellij-idea-community-edition jq keyd \
lazygit libvirt lmstudio lua-language-server maim man-db man-pages \
mariadb maven mission-center mtpfs neovide network-manager-applet \
ngrok nodejs-live-server noto-fonts-cjk noto-fonts-extra nvtop obs-studio \
okular pamixer php picom pnpm postgresql postman-bin pyright python-pip qemu-full \
qt5-tools rofi rustup slurp starship staruml stow swaybg thunar tmux ttf-hack-nerd \
ttf-ubuntu-nerd typescript-language-server viewnior waybar wezterm wl-clipboard xclip \
yazi youtube-music zoxide zsh kwave composer obsidian nautilus gnome-tweaks ruby cliphist \
python-pillow python-pytesseract grimblast-git rofi-wayland flatpak git-lfs plantuml plantuml-server \
graphviz
archlinux:
@pacman -Qq $(ARCHLINUX_PACKAGES)
set_rust:
@rustup default stable
flatpak:
@echo "easyeffects"