-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.sh
136 lines (108 loc) Β· 3.69 KB
/
setup.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
# set up script archlinux
cd $HOME
echo "Starting..."
for i in {1..2}; do
sleep 1
echo -e "\n"
done
clear
echo "Setting up yay..."
git clone https://aur.archlinux.org/yay.git
cd yay/
makepkg -si
echo "Update system..."
for i in {1..2}; do
sleep 1
echo -e "\n"
done
yay
clear
echo "Installing packages..."
for i in {1..2}; do
sleep 1
echo -e "\n"
done
echo "Setting up system utils"
yay -S alsa-utils feh kitty redshift ytfzf yt-dlp ani-cli cmatrix nmcli rsync lsd flatpak flatpak-builder tree-sitter tree-sitter-cli gutenprint sxiv ufw ninja gcc wayland-protocols libjpeg-turbo libwebp pango cairo pkgconf cmake libglvnd wayland system-config-printer simple-scan foomatic-db-gutenprint-ppds cups foomatic-db foomatic-db-ppds blueman pfetch gnome-sound-recorder
echo "Setting up fonts"
yay -S ttf-jetbrains-mono-nerd ttf-iosevka-nerd noto-fonts-emoji
fc-cache -f -v
echo "Setting up development utils"
yay -S curl wget openssh bat bat-extras fzf git htop highlight neovim ranger tmux zsh zsh-autosuggestions zsh-syntax-highlighting tree starship jq python-pillow
echo "Setting up desktop utils"
yay -S hyprland hyprpaper dunst fuzzel waybar swayidle swaylock wl-clipboard slurp grim thunar dolphin light
echo "Setting up programming languages"
yay -S nodejs npm go
echo "Setting up apps"
yay -S firefox keepassxc libreoffice-still-es mpv simple-scan zathura zathura-pdf-mupdf kdeconnect
echo "Creating dirs and symbolic links..."
for i in {1..2}; do
sleep 1
echo -e "\n"
done
clear
# Screenshots dir
mkdir $HOME/Pictures/Screenshots
# remove if anay
rm -rf $HOME/.config/dunst
rm -rf $HOME/.config/hypr
rm -rf $HOME/.config/kitty
rm -rf $HOME/.config/nvim
rm -rf $HOME/.config/ranger
rm -rf $HOME/.config/swaylock
rm -rf $HOME/.config/waybar
rm -rf $HOME/.config/ytfzf
rm -rf $HOME/.config/fuzzel
rm -rf $HOME/.config/starship.toml
rm -rf $HOME/.tmux.conf
# copy the configs
ln -s $HOME/dotfiles/.tmux.conf $HOME/
ln -s $HOME/dotfiles/.config/dunst $HOME/.config/
ln -s $HOME/dotfiles/.config/fuzzel $HOME/.config/
ln -s $HOME/dotfiles/.config/ytfzf $HOME/.config/
ln -s $HOME/dotfiles/.config/hypr $HOME/.config/
ln -s $HOME/dotfiles/.config/kitty $HOME/.config/
ln -s $HOME/dotfiles/.config/nvim $HOME/.config/
ln -s $HOME/dotfiles/.config/ranger $HOME/.config/
ln -s $HOME/dotfiles/.config/swaylock $HOME/.config/
ln -s $HOME/dotfiles/.config/waybar $HOME/.config/
ln -s $HOME/dotfiles/.config/starship.toml $HOME/.config/
clear
echo "Installing tmp(tmux)..."
for i in {1..2}; do
sleep 1
echo -e "\n"
done
clear
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
echo "Installing ohmyzsh..."
for i in {1..2}; do
sleep 1
echo -e "\n"
done
clear
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
# == Post install reminders ==
# -- active zsh --
# rm -rf $HOME/.zshrc && ln -s $HOME/dotfiles/.zshrc $HOME/
# -- add github ssh --
# https://docs.github.com/en/authentication/connecting-to-github-with-ssh/adding-a-new-ssh-key-to-your-github-account
# -- change dotfiles remote url from http to ssh --
# git remote remove origin
# git remote set-url origin git@github.com:Luiggy102/dotfiles.git
# -- install autocpu-freq for battery life (laptop)
# git clone https://github.com/AdnanHodzic/auto-cpufreq.git
# cd auto-cpufreq && sudo ./auto-cpufreq-installer
# -- power button to suspend (laptop) --
# sudo -e /etc/systemd/logind.conf
# and change it to HandlePowerKey=ignore
# -- if light(screen brightness) dont work --
# sudo chmod +s /usr/bin/light
# -- enable fw --
# sudo ufw enable
# -- enable spell ES in neovim
# sudo nvim
# ::set spelllang=es spell
# -- enable printers (reboot after install printer packages) --
# sudo systemctl start cups
# sudo systemctl enable cups