-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathHyprDebian.sh
371 lines (284 loc) · 7.49 KB
/
HyprDebian.sh
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
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
#!/bin/bash
# Приветствие
echo ""
echo ""
echo ""
echo ""
echo ""
echo "-----------------------------------"
echo -e "\e[32mHi bro, thanks for using my script for installation Hyprland on Debian!\e[0m"
echo "-----------------------------------"
echo ""
echo ""
echo ""
echo ""
echo ""
# Убедитесь, что скрипт выполняется с правами администратора
if [[ $EUID -ne 0 ]]; then
echo -e "\e[32mBro, let him go root\e[0m"
exit 1
fi
# Обновление и установка зависимостей
echo ""
echo ""
echo ""
echo ""
echo ""
echo "-----------------------------------"
echo -e "\e[32mI update the system and install dependencies\e[0m"
echo "-----------------------------------"
echo ""
echo ""
echo ""
echo ""
echo ""
apt update
apt upgrade -y
apt-get install -y meson wget build-essential ninja-build cmake-extras cmake gettext gettext-base fontconfig libfontconfig-dev libffi-dev libxml2-dev libdrm-dev libxkbcommon-x11-dev libxkbregistry-dev libxkbcommon-dev libpixman-1-dev libudev-dev libseat-dev seatd libxcb-dri3-dev libvulkan-volk-dev vulkan-utility-libraries-dev libvkfft-dev libgulkan-dev libegl-dev libgles2 libegl1-mesa-dev glslang-tools libinput-bin libinput-dev libxcb-composite0-dev libavutil-dev libavcodec-dev libavformat-dev libxcb-ewmh2 libxcb-ewmh-dev libxcb-present-dev libxcb-icccm4-dev libxcb-render-util0-dev libxcb-res0-dev libxcb-xinput-dev libpugixml-dev libzip-dev librsvg2-dev libtomlplusplus-dev libgbm-dev libxcursor-dev libxcb-errors-dev xwayland polkitd libnvidia-egl-wayland1 libnvidia-egl-gbm1 libliftoff0 libudis86-0 gcc clang hwdata libglm-dev libbenchmark-dev liblcms2-dev libxmu-dev libxcursor-dev libeis-dev libpixman-1-dev libx11-dev libxdamage-dev libxcomposite-dev libxrender-dev libxext-dev libxfixes-dev libxxf86vm-dev libxtst-dev libxres-dev libdrm-dev libvulkan-dev libxkbcommon-dev libsdl2-dev libpipewire-0.3-dev libavif-dev libliftoff-dev libcap-dev spirv-headers libstb-dev libdecor-0-dev libxdamage-dev git glslang-tools vulkan-tools libexpat1-dev libxml2-dev graphviz doxygen xsltproc xmlto
echo ""
echo ""
echo ""
echo ""
echo ""
echo "-----------------------------------"
echo -e "\e[32mInstall SDDM without KDE\e[0m"
echo "-----------------------------------"
echo ""
echo ""
echo ""
echo ""
echo ""
apt --no-install-recommends install sddm -y
mkdir HyprDebian
cd HyprDebian
echo ""
echo ""
echo ""
echo ""
echo ""
echo "-----------------------------------"
echo -e "\e[32mBild edid-decode\e[0m"
echo "-----------------------------------"
echo ""
echo ""
echo ""
echo ""
echo ""
git clone --depth 1 git://linuxtv.org/edid-decode.git
cd edid-decode
meson setup build
meson compile -C build
meson install -C build
cd ../..
echo ""
echo ""
echo ""
echo ""
echo ""
echo "-----------------------------------"
echo -e "\e[32m Install Wayland \e[0m"
echo "-----------------------------------"
echo ""
echo ""
echo ""
echo ""
echo ""
git clone --depth 1 https://gitlab.freedesktop.org/wayland/wayland.git
cd wayland
mkdir build &&
cd build &&
meson setup .. \
--prefix=/usr \
--buildtype=release &&
ninja
ninja install
cd ../..
echo ""
echo ""
echo ""
echo ""
echo ""
echo "-----------------------------------"
echo -e "\e[32mInstall Wayland-Protocols\e[0m"
echo "-----------------------------------"
echo ""
echo ""
echo ""
echo ""
echo ""
git clone --depth 1 https://gitlab.freedesktop.org/wayland/wayland-protocols.git
cd wayland-protocols
mkdir build &&
cd build &&
meson setup --prefix=/usr --buildtype=release &&
ninja
ninja install
cd ../..
echo ""
echo ""
echo ""
echo ""
echo ""
echo "-----------------------------------"
echo -e "\e[32mInstall Libdisplay-info\e[0m"
echo "-----------------------------------"
echo ""
echo ""
echo ""
echo ""
echo ""
git clone --depth 1 https://gitlab.freedesktop.org/emersion/libdisplay-info.git
cd libdisplay-info
meson setup build/
ninja -C build/
ninja -C build/ install
cd ..
echo ""
echo ""
echo ""
echo ""
echo ""
echo "-----------------------------------"
echo -e "\e[32mInstall HyprWayland-scanner\e[0m"
echo "-----------------------------------"
echo ""
echo ""
echo ""
echo ""
echo ""
git clone --depth 1 https://github.com/hyprwm/hyprwayland-scanner.git
cd hyprwayland-scanner
cmake -DCMAKE_INSTALL_PREFIX=/usr -B build
cmake --build build -j `nproc`
cmake --install build
cd ..
echo ""
echo ""
echo ""
echo ""
echo ""
echo "-----------------------------------"
echo -e "\e[32mInstall HyprUtils\e[0m"
echo "-----------------------------------"
echo ""
echo ""
echo ""
echo ""
echo ""
git clone --depth 1 https://github.com/hyprwm/hyprutils.git
cd hyprutils
cmake --no-warn-unused-cli -DCMAKE_BUILD_TYPE:STRING=Release -DCMAKE_INSTALL_PREFIX:PATH=/usr -S . -B ./build
cmake --build ./build --config Release --target all -j`nproc 2>/dev/null || getconf _NPROCESSORS_CONF`
cmake --install build
cd ..
echo ""
echo ""
echo ""
echo ""
echo ""
echo "-----------------------------------"
echo -e "\e[32mInstall HyprLang\e[0m"
echo "-----------------------------------"
echo ""
echo ""
echo ""
echo ""
echo ""
git clone --depth 1 https://github.com/hyprwm/hyprlang.git
cd hyprlang
cmake --no-warn-unused-cli -DCMAKE_BUILD_TYPE:STRING=Release -DCMAKE_INSTALL_PREFIX:PATH=/usr -S . -B ./build
cmake --build ./build --config Release --target hyprlang -j`nproc 2>/dev/null || getconf _NPROCESSORS_CONF`
cmake --install ./build
cd ..
echo ""
echo ""
echo ""
echo ""
echo ""
echo "-----------------------------------"
echo -e "\e[32mInstall HyprCursor\e[0m"
echo "-----------------------------------"
echo ""
echo ""
echo ""
echo ""
echo ""
git clone --depth 1 https://github.com/hyprwm/hyprcursor.git
cd hyprcursor
cmake --no-warn-unused-cli -DCMAKE_BUILD_TYPE:STRING=Release -DCMAKE_INSTALL_PREFIX:PATH=/usr -S . -B ./build
cmake --build ./build --config Release --target all -j`nproc 2>/dev/null || getconf _NPROCESSORS_CONF`
cmake --install build
cd ..
echo ""
echo ""
echo ""
echo ""
echo ""
echo "-----------------------------------"
echo -e "\e[32mInstall Aquamarine\e[0m"
echo "-----------------------------------"
echo ""
echo ""
echo ""
echo ""
echo ""
git clone --depth 1 https://github.com/hyprwm/aquamarine.git
cd aquamarine
cmake --no-warn-unused-cli -DCMAKE_BUILD_TYPE:STRING=Release -DCMAKE_INSTALL_PREFIX:PATH=/usr -S . -B ./build
cmake --build ./build --config Release --target all -j`nproc 2>/dev/null || getconf _NPROCESSORS_CONF`
cmake --install build
cd ..
echo ""
echo ""
echo ""
echo ""
echo ""
echo "-----------------------------------"
echo -e "\e[32mAnd finally, the installation Hyprland\e[0m"
echo "-----------------------------------"
echo ""
echo ""
echo ""
echo ""
echo ""
git clone --depth 1 https://github.com/hyprwm/Hyprland.git
cd Hyprland
make all
make install
cd
rm -r HyprDebian
echo ""
echo ""
echo ""
echo ""
echo ""
echo "-----------------------------------"
echo -e "\e[32mUseful dependencies (kitty, wofi and hyprpaper)\e[0m"
echo "-----------------------------------"
echo ""
echo ""
echo ""
echo ""
echo ""
apt-get install kitty wofi hyprpaper -y
echo ""
echo ""
echo ""
echo ""
echo ""
echo "-----------------------------------"
echo -e "\e[32mThank you for using my script. I hope the installation went smoothly!\e[0m"
echo "-----------------------------------"
echo ""
echo ""
echo ""
echo ""
echo ""
echo "-----------------------------------"
echo -e "\e[32mEnjoy using<3\e[0m"
echo "-----------------------------------"
echo ""
echo ""
echo ""
echo ""
echo ""