-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
executable file
·116 lines (95 loc) · 4.06 KB
/
Makefile
File metadata and controls
executable file
·116 lines (95 loc) · 4.06 KB
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
109
110
111
112
113
114
115
116
stow_dirs = $(wildcard .)
.PHONY: all stow restow destow install-prereqs install-paru \
install-paru-packages install-udev install-gui install-themes \
install-mimir install-full install-android-env install-film-android \
install-neovim \
uninstall-gui uninstall-udev check_dirs install-cursors toggle \
toggle:
./toggle-git.sh
stow : check_dirs
stow --target $(HOME) --verbose $(stow_dirs)
restow :
stow --target $(HOME) --verbose --restow $(stow_dirs)
destow :
stow -D --target $(HOME) --verbose $(stow_dirs)
install-prereqs :
sudo pacman -S --needed - < packages.txt
install-paru :
@if ! command -v paru >/dev/null; then \
git clone https://aur.archlinux.org/paru.git && \
cd paru && makepkg -si --noconfirm && \
cd .. && rm -rf paru; \
fi
install-paru-packages:
paru -S --noconfirm ttf-apple-emoji startw qt5-styleplugins
install-udev :
sudo cp -r etc/udev/rules.d/* /etc/udev/rules.d/
sudo udevadm control --reload-rules && sudo udevadm trigger
reinstall : uninstall-gui install-gui install-prereqs install-paru-packages
reinstall-gui: uninstall-gui install-gui
install-gui :
cp .config/wall.png $(HOME)/.config/wall.png
sudo $(MAKE) -C external/dwl install -j
sudo $(MAKE) -C external/wlbubble install -j
$(MAKE) -C dwlb-status install
cp patches/dwlb-config.h external/dwlb/config.h && \
sudo $(MAKE) -C external/dwlb install -j
pushd external/dwlb && git checkout -f . && \
sed -i 's/CFLAGS += -Wall -Wextra -Wno-unused-parameter -Wno-format-truncation -g/CFLAGS += -Wall -Wextra -Wno-unused-parameter -Wno-format-truncation -O2 -march=native/' Makefile
uninstall-gui :
sudo $(MAKE) -C external/dwl uninstall
$(MAKE) -C dwlb-status uninstall
uninstall-udev :
sudo rm -r /etc/udev/rules.d/*
install-themes :
[ -d $(HOME)/.themes ] || mkdir $(HOME)/.themes
git clone https://github.com/B00merang-Project/Mac-OS-9 ~/.themes/Mac-OS-9
install-mimir :
cd ./external/mimir && git chckout main && make install
install-full : install-paru install-prereqs install-mimir
echo "done full installation"
install-android-env :
cp .local/bin/mimir_armv7l $(shell dirname `which sh`)
install-film-android :
apt install exiftool which
mkdir -p $(HOME)/.local/bin
cp -r .local/bin/luts/ $(HOME)/.local/bin/ && echo "copied luts"
cp -r .local/bin/film $(shell dirname `which sh`) && echo "copied film script"
uninstall-film-android :
rm -r $(shell dirname `which sh`)/512x512 $(shell which film)
check_dirs:
# if mimeapps exists as file delele it, if its a symlink or does not exists do nothing
[ -L ~/.config/mimeapps.list ] || ([ -f ~/.config/mimeapps.list ] && rm ~/.config/mimeapps.list ) || echo ""
[ -d $(HOME)/.config ] || mkdir $(HOME)/.config
[ -d $(HOME)/.local ] || mkdir $(HOME)/.local
[ -d $(HOME)/.local/share ] || mkdir -p $(HOME)/.local/share
[ -d $(HOME)/.local/bin ] || mkdir -p $(HOME)/.local/bin
[ -d $(HOME)/.local/share/applications ] || mkdir -p $(HOME)/.local/share/applications
[ -d $(HOME)/.local/share/fonts ] || mkdir -p $(HOME)/.local/share/fonts
[ -d $(HOME)/.cache/zsh ] || mkdir -p $(HOME)/.cache/zsh
[ -d $(HOME)/.todo ] || mkdir $(HOME)/.todo
install-cursors:
rm -rf apple_cursor
git clone https://github.com/ful1e5/apple_cursor
cd apple_cursor && \
python -m venv env && \
. env/bin/activate && \
pip install clickgen && \
git checkout v2.0.0 && \
wget https://github.com/ful1e5/apple_cursor/releases/download/v1.2.0/bitmaps.zip && \
unzip bitmaps.zip && \
mv macOSBigSur/* bitmaps/macOS-BigSur/ && \
ctgen build.toml -s 29 -p x11 -d "bitmaps/macOS-BigSur" -n "dwlcursor" -c "Custom Sizes macOS XCursors" && \
cp themes/dwlcursor ~/.icons/ -r
@echo "you have to install cursor with nwg-look in wayland"
install-neovim:
@set -e; \
BASE_URL="https://github.com/neovim/neovim/releases/download/nightly"; \
INSTALL_DIR="$(HOME)/.local/bin"; \
APPIMAGE="nvim-linux-x86_64.appimage"; \
[ -d "$$INSTALL_DIR" ] || { echo "$$INSTALL_DIR does not exist"; exit 1; }; \
case "$$(uname -m)" in \
aarch64|arm64) APPIMAGE="nvim-linux-arm64.appimage" ;; \
esac; \
curl -L "$$BASE_URL/$$APPIMAGE" -o "$$INSTALL_DIR/nvim"; \
chmod +x "$$INSTALL_DIR/nvim"