-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
261 lines (202 loc) · 6.44 KB
/
install.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
#!/bin/bash
# sudo usbimager
# extra packages: git vim firefox
git clone https://github.com/V1K1NGbg/dots.git
cd dots
# vim install.sh
# update
sudo pacman -Syu
# install paru dependencies
sudo pacman -S git
# install paru
sudo pacman -S --needed base-devel
git clone https://aur.archlinux.org/paru-git.git
cd paru-git
makepkg -si
cd ..
sudo rm -r paru
# remove awesome
sudo pacman -Rs awesome
# install the latest
paru -S awesome-git
# install packages (if using vim with no copy you can use cat)
paru -S acpi alacritty alsa-utils arandr autorandr bash-completion blueman bluez bluez-utils baobab bottles bulky capitaine-cursors cowsay cpupower-gui-git curl discord docker dracut fd firefox flameshot fzf gimp git github-cli glava gnome-boxes gnome-disk-utility htop i3lock-color jdk21-openjdk jdk8-openjdk keepassxc less lolcat man-db man-pages meld nano nemo nemo-compare nemo-fileroller nemo-preview neofetch network-manager-applet obs-studio parsec-bin pasystray pavucontrol pcloud-drive plymouth plymouth-theme-hexagon-hud-git prismlauncher qt6-svg ranger remmina rofi rofi-calc rpi-imager ruby-fusuma spotify-launcher tmux tree unclutter unzip vim visual-studio-code-bin vlc wget xdotool xorg-xinput xss-lock zip
# auto login
sudo vim /etc/systemd/system/getty.target.wants/getty\@tty1.service
#ExecStart=-/sbin/agetty -o '-p -- \\u' --noclear - $TERM
ExecStart=-/sbin/agetty -a victor - $TERM
# add to ~/.bash_profile
vim ~/.bash_profile
if [[ -z $DISPLAY ]] && [[ $(tty) = /dev/tty1 ]]; then
exec startx
fi
# pcom
git clone https://github.com/pijulius/picom.git
cd picom
meson setup --buildtype=release build
ninja -C build
ninja -C build install
cd ..
sudo rm -r picom/
# plymouth
sudo vim /boot/loader/entries/{TAB}.conf
#options ... quiet splash
sudo vim /etc/mkinitcpio.conf
#HOOKS=(... plymouth ...) !!!BEFORE ENCRYPT OR SOME SORT OF CRYPT!!!
sudo dracut
# set theme
sudo plymouth-set-default-theme -R hexagon_hud
# git
git config --global user.name "V1K1NGbg"
git config --global user.email "[email protected]"
git config pull.rebase true
gh auth login
# pcloud
# sign in (Google + Auth)
mkdir -p ~/Documents/BackUp
mkdir -p ~/Documents/PC
mkdir -p ~/Documents/GitHub
# Backup ~/Documents/BackUp
# Sync ~/Documents/PC <-> pCloudDrive/PC
# enable bluetooth
systemctl enable bluetooth.service
systemctl start bluetooth.service
# install nvm (link from: https://github.com/nvm-sh/nvm/)
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash
# source
source ~/.bashrc
# install node and npm
nvm install node
# install oh-my-bash
bash -c "$(curl -fsSL https://raw.githubusercontent.com/ohmybash/oh-my-bash/master/tools/install.sh)"
# !!! ONLY FON NVIDIA GPU'S !!!
# install nvidia drivers (https://wiki.archlinux.org/title/NVIDIA)
paru -S nvidia-open nvidia-utils nvidia-settings
# install requirements for gpu enabling/disabling gpu
paru -S envycontrol
# change to integrated
sudo envycontrol -s integrated
# enable tap clicking, natural scrolling and double tap
# in (/usr/share/X11/xorg.conf.d/40-libinput.conf)
sudo vim /usr/share/X11/xorg.conf.d/40-libinput.conf
# Section "InputClass"
# Identifier "... touchpad ..."
# ...
# Driver "libinput"
Option "Tapping" "on"
Option "NaturalScrolling" "true"
Option "ClickMethod" "clickfinger"
# EndSection
# enable bg layout
# in (/etc/X11/xorg.conf.d/00-keyboard.conf)
sudo vim /etc/X11/xorg.conf.d/00-keyboard.conf
# Section "InputClass"
# Identifier "system-keyboard"
# MatchIsKeyboard "on"
Option "XkbLayout" "us,bg"
# Option "XkbModel" "pc105+inet"
Option "XkbVariant" ",bas_phonetic"
# Option "XkbOptions" "terminate:ctrl_alt_bksp"
# EndSection
# Monocraft (https://github.com/IdreesInc/Monocraft/releases)
# create ~/.local/share/fonts
mkdir -p ~/.local/share/fonts
# add Monocraft-nerd-fonts-patched.ttc to the folder
mv ~/Downloads/Monocraft-nerd-fonts-patched.ttc ~/.local/share/fonts/
# reload the fonts
fc-cache
# check
fc-list | grep Monocraft
# # cursor
# vim .Xresources
# #Xcursor.theme: capitaine-cursors
# #Xcursor.size: 24
# # RESTART XORG
# # gtk
# vim ~/.config/gtk-3.0/settings.ini
# #gtk-application-prefer-dark-theme=1
# fusuma
sudo gpasswd -a $USER input
newgrp input
mkdir -p ~/.config/fusuma
# static dns
sudo vim /etc/NetworkManager/conf.d/dns-servers.conf
# [global-dns-domain-*]
# servers=::1,1.1.1.1
# # feh
# feh --bg-scale ${imageurl}
# # fix monitoor setup
# # arandr to setup ONLY LAPTOP
# autorandr --save laptop
# autorandr --default laptop
# # arandr to setup EXTEND LAPTOP
# autorandr --save laptop_external
# # # arandr to setup DUPLICATE LAPTOP
# # autorandr --save laptop_duplicate
# # generate ranger config
# ranger --copy-config=all
# vim .config/ranger/rc.conf
# # set show_hidden true
# # set colorscheme jungle
# copy nemo
# # export
# dconf dump /org/nemo/ > nemo_config
#import
dconf load /org/nemo/ < nemo_config
# copy awesome config
mkdir -p ~/.config/awesome/
# # copy gnome-terminal
# # export
# dconf dump /org/gnome/terminal/ > gnome_terminal_settings.txt
# #copy contents (https://gist.github.com/V1K1NGbg/28d6098e4013ca7b904453cf96c671cd)
# #import
# dconf load /org/gnome/terminal/ < gnome_terminal_settings.txt
# rm gnome_terminal_settings.txt
# alacritty
mkdir -p ~/.config/alacritty/
# vim
mkdir -p .vim/colors/
# flameshot
mkdir -p Documents/BackUp/screenshots
# docker
sudo systemctl enable docker.service
sudo systemctl start docker.service
sudo usermod -aG docker $USER
newgrp docker
# wireguard
nmcli connection import type wireguard file "/path/to/WG.conf" # !!! CHANGE PATH !!!
nmcli connection modify WG connection.autoconnect no # !!! CHANGE NAME !!!
# bashrc
# to remove the sourcing of the theme in oh my bash
grep -v "source" ~/.bashrc > tmpfile && mv -f tmpfile ~/.bashrc
cat .bashrc >> ~/.bashrc
# copy configs
yes | cp -rf .config/ ~
yes | cp -rf .oh-my-bash/ ~
yes | cp -rf .vim/ ~
yes | cp -rf .screenlayout/ ~
yes | cp -f .tmux.conf .vimrc .Xresources ~
# discord
# start discord and login to install the propper files
# download https://betterdiscord.app/
chmod +x ~/Downloads/BetterDiscord-Linux.AppImage
~/Downloads/BetterDiscord-Linux.AppImage
# i3lock
chmod +x ~/i3lock.sh
# RESTART
reboot
# vscode
# sign in
# firefox
# sign in
# import VIMIUM and ONE_TAB
# spotify
# sign in
# solo key
# phone integration
#--------------------------------------------
# usefull commands:
# list all installed packages
paru -Qqen > pkglist.txt
# change brightness
xrandr --output eDP-1 --brightness 0.5