-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
219 lines (185 loc) · 5.12 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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
dotfiles = \
~/.gitconfig \
~/.gitignore \
~/.config/user-dirs.dirs \
~/.compton.conf \
~/.ctags \
~/.bashrc \
~/.bash_profile \
dwm:
mkdir -p ~/.my-favorite-things/ \
&& cp wallpapers/cats.png ~/.my-favorite-things/wallpaper.png
cp dwm.h dwm/config.h
cd dwm \
&& git co . \
&& for p in ../patches/dwm/*; do git apply $$p; done \
&& sudo make clean install
slstatus:
cp slstatus.h slstatus/config.h
cd slstatus \
&& git co . \
&& for p in ../patches/slstatus/*; do git apply $$p; done \
&& sudo make clean install
slock: /etc/systemd/system/locker.service
yay -S xautolock --needed
cp slock.h slock/config.h
cd slock \
&& git co . \
&& sudo make clean install
sudo systemctl enable locker.service
sudo systemctl start locker.service
dmenu:
cp dmenu.h dmenu/config.h
cd dmenu \
&& sudo make clean install
st:
cp st.h st/config.h
cd st \
&& git co . \
&& for p in ../patches/st/*; do git apply $$p; done \
&& sudo make clean install
scala:
sudo pacman -S --noconfirm --needed \
sbt
golang: ~/.env-golang
sudo pacman -S --noconfirm --needed \
go \
go-tools
source ~/.env-golang
vim +GoInstallBinaries +qall
curl https://glide.sh/get | sh
js:
sudo pacman -S --noconfirm --needed \
nodejs-lts-boron \
npm
rust: ~/.env-rust
curl https://sh.rustup.rs -sSf \
| sh -s -- --no-modify-path
rustup install stable
rustup default stable
rustup run stable cargo install rustfmt
launcher: ~/.bin/launcher
sudo pacman -S --noconfirm --needed \
dmenu
newsboat: ~/.bin/url_handler.sh ~/.newsboat/config
sudo pacman -S --noconfirm --needed \
newsboat
youtube: applications/newsboat applications/mpv
sudo pacman -S --noconfirm --needed \
mps-youtube \
youtube-dl
dunst: ~/.config/dunst/dunstrc
yay -S --noconfirm --needed \
dunst-git
systemctl --user enable dunst.service
systemctl --user start dunst.service
nextcloud:
yay -S --noconfirm --needed \
gnome-keyring \
nextcloud-client
config_path = ~/.vim
vim: ~/.vimrc
sudo pacman -S --noconfirm --needed \
ctags \
gvim \
vim-spell-en
rm -rf $(config_path)/pack
mkdir -p $(config_path)/backups $(config_path)/pack/plugins/start
cd $(config_path)/pack/plugins/start \
&& git clone https://github.com/chriskempson/base16-vim.git \
&& git clone https://github.com/derekwyatt/vim-scala.git \
&& git clone https://github.com/fatih/vim-go.git \
&& git clone https://github.com/tpope/vim-apathy.git \
&& git clone https://github.com/tpope/vim-fugitive.git \
&& git clone https://github.com/tpope/vim-markdown.git \
&& git clone https://github.com/tpope/vim-repeat.git \
&& git clone https://github.com/rust-lang/rust.vim.git \
&& git clone https://github.com/tpope/vim-sensible.git \
&& git clone https://github.com/tpope/vim-sleuth.git \
&& git clone https://github.com/tpope/vim-vinegar.git
mpd: ~/.config/mpd/mpd.conf ~/.config/systemd/user/mpd.service
sudo pacman -S --noconfirm --needed mpd mpc
mkdir -p ~/.mpd/playlists
systemctl --user daemon-reload
systemctl --user enable mpd.service
systemctl --user start mpd.service
ncmpcpp: ~/.ncmpcpp/bindings ~/.ncmpcpp/config
sudo pacman -S --noconfirm --needed ncmpcpp
mpv:
sudo pacman -S --noconfirm --needed \
mpv
ranger: ~/.config/ranger/rc.conf ~/.bin/previewer ~/.bin/imgt
sudo pacman -S --noconfirm --needed \
highlight \
ranger \
w3m
zathura:
sudo pacman -S --noconfirm --needed \
zathura \
zathura-pdf-mupdf
termite: ~/.bin/colorful-termite ~/.config/termite/config ~/.config/gtk-3.0/gtk.css
if ! [ -d ~/.config/base16-termite ]; then git clone https://github.com/khamer/base16-termite.git ~/.config/base16-termite; fi
sudo pacman -S --noconfirm --needed \
termite
utils:
sudo pacman -S --noconfirm \
bash-completion \
ctags \
git-core \
openssh \
unzip \
xclip \
xsel
xorg:
sudo mkdir -p /etc/X11/xorg.conf.d
$(MAKE) /etc/X11/xorg.conf.d/20-intel.conf /etc/X11/xorg.conf.d/00-keyboard.conf
- sudo pacman -S --noconfirm --needed \
libva-intel-driver \
xf86-input-libinput \
xf86-video-intel \
xorg-server \
xorg-xinit \
xorg-xrandr \
xorg-xrdb
# System
#
power: /etc/modprobe.d/i915.conf
sudo pacman -S --noconfirm \
ethtool \
powertop \
rfkill \
tlp \
x86_energy_perf_policy
sudo systemctl enable tlp.service tlp-sleep.service
sudo systemctl start tlp.service tlp-sleep.service
sound: /etc/modprobe.d/blacklist.conf /etc/modprobe.d/snd_hda_intel.conf
pacaur -S --noconfirm --needed \
pulsemixer \
pulseaudio \
pulseaudio-bluetooth
pulseaudio -D
bluetooth:
sudo pacman -S --noconfirm --needed \
bluez \
bluez-utils
sudo systemctl enable bluetooth.service
sudo systemctl start bluetooth.service
x200: /etc/thinkfan.conf
sudo pacaur -S --noconfirm --needed \
acpi_call \
libva-intel-driver-g45-h264 \
tp_smapi
/etc/vconsole.conf: templates/etc/vconsole.conf
sudo pacman -S --noconfirm terminus-font
sudo cp ./templates/vconsole.conf /etc/vconsole.conf
~/.%: dotfiles/*
mkdir -p $(@D)
cp dotfiles/$* $@
/etc/systemd/system/%: etc/systemd/system/*
sudo mkdir -p $(@D)
sudo cp etc/systemd/system/$* $@
~/.bin/%: dotfiles/bin/*
mkdir -p $(@D)
cp dotfiles/bin/$* $@
chmod +x $@
.PHONY: dwm slstatus slock dmenu st