-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdotfiles_installer.sh
executable file
·209 lines (208 loc) · 14.2 KB
/
dotfiles_installer.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
#!/bin/bash
clear
echo "Are you logged on Hyprland right now? [Y/N]"
read hypr
option="${hypr^^}"
if [ "$option" == "Y" ]; then
hyprctl monitors all
echo "type your main monitor, example [DP-1, HDMI-1]"
read monitor
monitor="${monitor^^}"
sed -i "s/DP-1/$monitor/" ./hypr/hyprland.conf
sed -i "s/DP-1/$monitor/" ./themes/themes/blue/hypr/hyprland.conf
sed -i "s/DP-1/$monitor/" ./themes/themes/dawn/hypr/hyprland.conf
sed -i "s/DP-1/$monitor/" ./themes/themes/green/hypr/hyprland.conf
sed -i "s/DP-1/$monitor/" ./themes/themes/lavender/hypr/hyprland.conf
sed -i "s/DP-1/$monitor/" ./themes/themes/mauve/hypr/hyprland.conf
sed -i "s/DP-1/$monitor/" ./themes/themes/moon/hypr/hyprland.conf
sed -i "s/DP-1/$monitor/" ./themes/themes/peach/hypr/hyprland.conf
sed -i "s/DP-1/$monitor/" ./themes/themes/pink/hypr/hyprland.conf
sed -i "s/DP-1/$monitor/" ./themes/themes/red/hypr/hyprland.conf
sed -i "s/DP-1/$monitor/" ./themes/themes/sapphire/hypr/hyprland.conf
sed -i "s/DP-1/$monitor/" ./themes/themes/tokyo-night/hypr/hyprland.conf
sed -i "s/DP-1/$monitor/" ./themes/themes/yellow/hypr/hyprland.conf
echo "type the refresh rate of your monitor, example [60, 140, 240]"
read refresh
sed -i "s/@240/@$refresh/" ./hypr/hyprland.conf
sed -i "s/@240/@$refresh/" ./themes/themes/blue/hypr/hyprland.conf
sed -i "s/@240/@$refresh/" ./themes/themes/dawn/hypr/hyprland.conf
sed -i "s/@240/@$refresh/" ./themes/themes/green/hypr/hyprland.conf
sed -i "s/@240/@$refresh/" ./themes/themes/lavender/hypr/hyprland.conf
sed -i "s/@240/@$refresh/" ./themes/themes/mauve/hypr/hyprland.conf
sed -i "s/@240/@$refresh/" ./themes/themes/moon/hypr/hyprland.conf
sed -i "s/@240/@$refresh/" ./themes/themes/peach/hypr/hyprland.conf
sed -i "s/@240/@$refresh/" ./themes/themes/pink/hypr/hyprland.conf
sed -i "s/@240/@$refresh/" ./themes/themes/red/hypr/hyprland.conf
sed -i "s/@240/@$refresh/" ./themes/themes/sapphire/hypr/hyprland.conf
sed -i "s/@240/@$refresh/" ./themes/themes/tokyo-night/hypr/hyprland.conf
sed -i "s/@240/@$refresh/" ./themes/themes/yellow/hypr/hyprland.conf
echo "type the resolution of your monitor, example [1920x1080, 1280x720]"
read resolution
sed -i "s/1920x1080@$refresh/$resolution@$refresh/" ./hypr/hyprland.conf
sed -i "s/1920x1080@$refresh/$resolution@$refresh/" ./themes/themes/blue/hypr/hyprland.conf
sed -i "s/1920x1080@$refresh/$resolution@$refresh/" ./themes/themes/dawn/hypr/hyprland.conf
sed -i "s/1920x1080@$refresh/$resolution@$refresh/" ./themes/themes/green/hypr/hyprland.conf
sed -i "s/1920x1080@$refresh/$resolution@$refresh/" ./themes/themes/lavender/hypr/hyprland.conf
sed -i "s/1920x1080@$refresh/$resolution@$refresh/" ./themes/themes/mauve/hypr/hyprland.conf
sed -i "s/1920x1080@$refresh/$resolution@$refresh/" ./themes/themes/moon/hypr/hyprland.conf
sed -i "s/1920x1080@$refresh/$resolution@$refresh/" ./themes/themes/peach/hypr/hyprland.conf
sed -i "s/1920x1080@$refresh/$resolution@$refresh/" ./themes/themes/pink/hypr/hyprland.conf
sed -i "s/1920x1080@$refresh/$resolution@$refresh/" ./themes/themes/red/hypr/hyprland.conf
sed -i "s/1920x1080@$refresh/$resolution@$refresh/" ./themes/themes/sapphire/hypr/hyprland.conf
sed -i "s/1920x1080@$refresh/$resolution@$refresh/" ./themes/themes/tokyo-night/hypr/hyprland.conf
sed -i "s/1920x1080@$refresh/$resolution@$refresh/" ./themes/themes/yellow/hypr/hyprland.conf
echo "Do you have a second monitor? [Y/N]"
read hypr
option="${hypr^^}"
if [ "$option" == "Y" ]; then
hyprctl monitors all
echo "type your monitor, example [DP-2, HDMI-2]"
read monitor
monitor="${monitor^^}"
sed -i "s/DP-2/$monitor/" ./hypr/hyprland.conf
sed -i "s/DP-2/$monitor/" ./themes/themes/blue/hypr/hyprland.conf
sed -i "s/DP-2/$monitor/" ./themes/themes/dawn/hypr/hyprland.conf
sed -i "s/DP-2/$monitor/" ./themes/themes/green/hypr/hyprland.conf
sed -i "s/DP-2/$monitor/" ./themes/themes/lavender/hypr/hyprland.conf
sed -i "s/DP-2/$monitor/" ./themes/themes/mauve/hypr/hyprland.conf
sed -i "s/DP-2/$monitor/" ./themes/themes/moon/hypr/hyprland.conf
sed -i "s/DP-2/$monitor/" ./themes/themes/peach/hypr/hyprland.conf
sed -i "s/DP-2/$monitor/" ./themes/themes/pink/hypr/hyprland.conf
sed -i "s/DP-2/$monitor/" ./themes/themes/red/hypr/hyprland.conf
sed -i "s/DP-2/$monitor/" ./themes/themes/sapphire/hypr/hyprland.conf
sed -i "s/DP-2/$monitor/" ./themes/themes/tokyo-night/hypr/hyprland.conf
sed -i "s/DP-2/$monitor/" ./themes/themes/yellow/hypr/hyprland.conf
echo "type the refresh rate of your monitor, example [60, 140, 240]"
read refresh
sed -i "s/@144/@$refresh/" ./hypr/hyprland.conf
sed -i "s/@144/@$refresh/" ./themes/themes/blue/hypr/hyprland.conf
sed -i "s/@144/@$refresh/" ./themes/themes/dawn/hypr/hyprland.conf
sed -i "s/@144/@$refresh/" ./themes/themes/green/hypr/hyprland.conf
sed -i "s/@144/@$refresh/" ./themes/themes/lavender/hypr/hyprland.conf
sed -i "s/@144/@$refresh/" ./themes/themes/mauve/hypr/hyprland.conf
sed -i "s/@144/@$refresh/" ./themes/themes/moon/hypr/hyprland.conf
sed -i "s/@144/@$refresh/" ./themes/themes/peach/hypr/hyprland.conf
sed -i "s/@144/@$refresh/" ./themes/themes/pink/hypr/hyprland.conf
sed -i "s/@144/@$refresh/" ./themes/themes/red/hypr/hyprland.conf
sed -i "s/@144/@$refresh/" ./themes/themes/sapphire/hypr/hyprland.conf
sed -i "s/@144/@$refresh/" ./themes/themes/tokyo-night/hypr/hyprland.conf
sed -i "s/@144/@$refresh/" ./themes/themes/yellow/hypr/hyprland.conf
echo "type the resolution of your monitor, example [1920x1080, 1280x720]"
read resolution
sed -i "s/1920x1080@$refresh/$resolution@$refresh/" ./hypr/hyprland.conf
sed -i "s/1920x1080@$refresh/$resolution@$refresh/" ./themes/themes/blue/hypr/hyprland.conf
sed -i "s/1920x1080@$refresh/$resolution@$refresh/" ./themes/themes/dawn/hypr/hyprland.conf
sed -i "s/1920x1080@$refresh/$resolution@$refresh/" ./themes/themes/green/hypr/hyprland.conf
sed -i "s/1920x1080@$refresh/$resolution@$refresh/" ./themes/themes/lavender/hypr/hyprland.conf
sed -i "s/1920x1080@$refresh/$resolution@$refresh/" ./themes/themes/mauve/hypr/hyprland.conf
sed -i "s/1920x1080@$refresh/$resolution@$refresh/" ./themes/themes/moon/hypr/hyprland.conf
sed -i "s/1920x1080@$refresh/$resolution@$refresh/" ./themes/themes/peach/hypr/hyprland.conf
sed -i "s/1920x1080@$refresh/$resolution@$refresh/" ./themes/themes/pink/hypr/hyprland.conf
sed -i "s/1920x1080@$refresh/$resolution@$refresh/" ./themes/themes/red/hypr/hyprland.conf
sed -i "s/1920x1080@$refresh/$resolution@$refresh/" ./themes/themes/sapphire/hypr/hyprland.conf
sed -i "s/1920x1080@$refresh/$resolution@$refresh/" ./themes/themes/tokyo-night/hypr/hyprland.conf
sed -i "s/1920x1080@$refresh/$resolution@$refresh/" ./themes/themes/yellow/hypr/hyprland.conf
clear
echo "is the second monitor on the left or on the right side on your main one? [L/R]"
read hypr
option="${hypr^^}"
if [ "$option" == "R" ]; then
clear
echo "type the width of your main display"
echo "example: [1920, 1280]"
read orientation
sed -i "s/1920x0/${orientation}x0/" ./hypr/hyprland.conf
sed -i "s/1920x0/${orientation}x0/" ./themes/themes/blue/hypr/hyprland.conf
sed -i "s/1920x0/${orientation}x0/" ./themes/themes/dawn/hypr/hyprland.conf
sed -i "s/1920x0/${orientation}x0/" ./themes/themes/green/hypr/hyprland.conf
sed -i "s/1920x0/${orientation}x0/" ./themes/themes/lavender/hypr/hyprland.conf
sed -i "s/1920x0/${orientation}x0/" ./themes/themes/mauve/hypr/hyprland.conf
sed -i "s/1920x0/${orientation}x0/" ./themes/themes/moon/hypr/hyprland.conf
sed -i "s/1920x0/${orientation}x0/" ./themes/themes/peach/hypr/hyprland.conf
sed -i "s/1920x0/${orientation}x0/" ./themes/themes/pink/hypr/hyprland.conf
sed -i "s/1920x0/${orientation}x0/" ./themes/themes/red/hypr/hyprland.conf
sed -i "s/1920x0/${orientation}x0/" ./themes/themes/sapphire/hypr/hyprland.conf
sed -i "s/1920x0/${orientation}x0/" ./themes/themes/tokyo-night/hypr/hyprland.conf
sed -i "s/1920x0/${orientation}x0/" ./themes/themes/yellow/hypr/hyprland.conf
else
clear
echo "type the width of your main display"
echo "example: [1920, 1280]"
read orientation
sed -i "s/1920x0/-${orientation}x0/" ./hypr/hyprland.conf
sed -i "s/1920x0/-${orientation}x0/" ./themes/themes/blue/hypr/hyprland.conf
sed -i "s/1920x0/-${orientation}x0/" ./themes/themes/dawn/hypr/hyprland.conf
sed -i "s/1920x0/-${orientation}x0/" ./themes/themes/green/hypr/hyprland.conf
sed -i "s/1920x0/-${orientation}x0/" ./themes/themes/lavender/hypr/hyprland.conf
sed -i "s/1920x0/-${orientation}x0/" ./themes/themes/mauve/hypr/hyprland.conf
sed -i "s/1920x0/-${orientation}x0/" ./themes/themes/moon/hypr/hyprland.conf
sed -i "s/1920x0/-${orientation}x0/" ./themes/themes/peach/hypr/hyprland.conf
sed -i "s/1920x0/-${orientation}x0/" ./themes/themes/pink/hypr/hyprland.conf
sed -i "s/1920x0/-${orientation}x0/" ./themes/themes/red/hypr/hyprland.conf
sed -i "s/1920x0/-${orientation}x0/" ./themes/themes/sapphire/hypr/hyprland.conf
sed -i "s/1920x0/-${orientation}x0/" ./themes/themes/tokyo-night/hypr/hyprland.conf
sed -i "s/1920x0/-${orientation}x0/" ./themes/themes/yellow/hypr/hyprland.conf
fi
else
sed -i "s/monitor = DP-2, 1920x1080@144, 1920x0, 1/monitor = DP-2, disabled/" ./hypr/hyprland.conf
sed -i "s/monitor = DP-2, 1920x1080@144, 1920x0, 1/monitor = DP-2, disabled/" ./themes/themes/blue/hypr/hyprland.conf
sed -i "s/monitor = DP-2, 1920x1080@144, 1920x0, 1/monitor = DP-2, disabled/" ./themes/themes/dawn/hypr/hyprland.conf
sed -i "s/monitor = DP-2, 1920x1080@144, 1920x0, 1/monitor = DP-2, disabled/" ./themes/themes/green/hypr/hyprland.conf
sed -i "s/monitor = DP-2, 1920x1080@144, 1920x0, 1/monitor = DP-2, disabled/" ./themes/themes/lavender/hypr/hyprland.conf
sed -i "s/monitor = DP-2, 1920x1080@144, 1920x0, 1/monitor = DP-2, disabled/" ./themes/themes/mauve/hypr/hyprland.conf
sed -i "s/monitor = DP-2, 1920x1080@144, 1920x0, 1/monitor = DP-2, disabled/" ./themes/themes/moon/hypr/hyprland.conf
sed -i "s/monitor = DP-2, 1920x1080@144, 1920x0, 1/monitor = DP-2, disabled/" ./themes/themes/peach/hypr/hyprland.conf
sed -i "s/monitor = DP-2, 1920x1080@144, 1920x0, 1/monitor = DP-2, disabled/" ./themes/themes/pink/hypr/hyprland.conf
sed -i "s/monitor = DP-2, 1920x1080@144, 1920x0, 1/monitor = DP-2, disabled/" ./themes/themes/red/hypr/hyprland.conf
sed -i "s/monitor = DP-2, 1920x1080@144, 1920x0, 1/monitor = DP-2, disabled/" ./themes/themes/sapphire/hypr/hyprland.conf
sed -i "s/monitor = DP-2, 1920x1080@144, 1920x0, 1/monitor = DP-2, disabled/" ./themes/themes/tokyo-night/hypr/hyprland.conf
sed -i "s/monitor = DP-2, 1920x1080@144, 1920x0, 1/monitor = DP-2, disabled/" ./themes/themes/yellow/hypr/hyprland.conf
sed -i "s/monitor:DP-2/monitor:DP-1/" ./hypr/hyprland.conf
sed -i "s/monitor:DP-2/monitor:DP-1/" ./themes/themes/blue/hypr/hyprland.conf
sed -i "s/monitor:DP-2/monitor:DP-1/" ./themes/themes/dawn/hypr/hyprland.conf
sed -i "s/monitor:DP-2/monitor:DP-1/" ./themes/themes/green/hypr/hyprland.conf
sed -i "s/monitor:DP-2/monitor:DP-1/" ./themes/themes/lavender/hypr/hyprland.conf
sed -i "s/monitor:DP-2/monitor:DP-1/" ./themes/themes/mauve/hypr/hyprland.conf
sed -i "s/monitor:DP-2/monitor:DP-1/" ./themes/themes/moon/hypr/hyprland.conf
sed -i "s/monitor:DP-2/monitor:DP-1/" ./themes/themes/peach/hypr/hyprland.conf
sed -i "s/monitor:DP-2/monitor:DP-1/" ./themes/themes/pink/hypr/hyprland.conf
sed -i "s/monitor:DP-2/monitor:DP-1/" ./themes/themes/red/hypr/hyprland.conf
sed -i "s/monitor:DP-2/monitor:DP-1/" ./themes/themes/sapphire/hypr/hyprland.conf
sed -i "s/monitor:DP-2/monitor:DP-1/" ./themes/themes/tokyo-night/hypr/hyprland.conf
sed -i "s/monitor:DP-2/monitor:DP-1/" ./themes/themes/yellow/hypr/hyprland.conf
fi
else
echo "When you log on hyprland, run this script again to set you monitor and refresh rate"
sleep 4
fi
clear
ifconfig
echo "Type your network interface name, example: (wlan0/eth0/enp3s0) "
read interface
sed -i "s/wlan0/$interface/" ./waybar/config.jsonc
sed -i "s/wlan0/$interface/" ./themes/themes/blue/waybar/config.jsonc
sed -i "s/wlan0/$interface/" ./themes/themes/dawn/waybar/config.jsonc
sed -i "s/wlan0/$interface/" ./themes/themes/green/waybar/config.jsonc
sed -i "s/wlan0/$interface/" ./themes/themes/lavender/waybar/config.jsonc
sed -i "s/wlan0/$interface/" ./themes/themes/mauve/waybar/config.jsonc
sed -i "s/wlan0/$interface/" ./themes/themes/moon/waybar/config.jsonc
sed -i "s/wlan0/$interface/" ./themes/themes/peach/waybar/config.jsonc
sed -i "s/wlan0/$interface/" ./themes/themes/pink/waybar/config.jsonc
sed -i "s/wlan0/$interface/" ./themes/themes/red/waybar/config.jsonc
sed -i "s/wlan0/$interface/" ./themes/themes/sapphire/waybar/config.jsonc
sed -i "s/wlan0/$interface/" ./themes/themes/tokyo-night/waybar/config.jsonc
sed -i "s/wlan0/$interface/" ./themes/themes/yellow/waybar/config.jsonc
clear
cp -r ./fastfetch ./hypr ./kitty ./rofi ./waybar -t ~/.config
cp -r ./themes -t ~/Documents/
sudo cp -r ./cursor/hypr-dots -t /usr/share/icons/
sudo cp -r ./icons/* -t /usr/share/icons/
sudo cp -r ./gtktheme/hypr-dots -t /usr/share/themes/
cp -r ./.zshrc ./.p10k.zsh -t ~/
swww init &> /dev/null
swww img ~/.config/hypr/wallpaper.jpg &> /dev/null
killall waybar &> /dev/null
waybar &> /dev/null &
cd ..
rm -rf hypr-dots
hyprctl setcursor hypr-dots 24