-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·113 lines (88 loc) · 3.75 KB
/
setup.sh
File metadata and controls
executable file
·113 lines (88 loc) · 3.75 KB
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
#!/bin/bash
# $$\ $$\ $$\ $$\ $$\ $$\ $$\
# $$ |$$ | $$ | $\ $$ | \__| $$ |$$ |
# $$ |$$ | $$ |$$$\ $$ | $$$$$$\ $$$$$$\ $$$$$$$\ $$\ $$$$$$$\ $$$$$$\ $$ |$$ |
# $$ |$$ | $$ $$ $$\$$ | \____$$\ $$ __$$\ $$ __$$\ $$ |$$ __$$\ $$ __$$\ $$ |$$ |
# \__|\__| $$$$ _$$$$ | $$$$$$$ |$$ | \__|$$ | $$ |$$ |$$ | $$ |$$ / $$ | \__|\__|
# $$$ / \$$$ |$$ __$$ |$$ | $$ | $$ |$$ |$$ | $$ |$$ | $$ |
# $$\ $$\ $$ / \$$ |\$$$$$$$ |$$ | $$ | $$ |$$ |$$ | $$ |\$$$$$$$ | $$\ $$\
# \__|\__| \__/ \__| \_______|\__| \__| \__|\__|\__| \__| \____$$ | \__|\__|
# $$\ $$ |
# \$$$$$$ |
# \______/
# Optimized with default shell change.
curr=$(pwd)
yecho(){ # Function for yellow text
echo -e "\e[93;1m$@\e[0m"
}
recho(){ # red text
echo -e "\e[93;31m$@\e[0m"
}
# Ensure the script is run as root
if [[ $EUID -ne 0 ]]; then
recho "Please run as root (e.g., sudo $0)"
exit 1
fi
# Git installation and configuration
sudo pacman -S --noconfirm git
git config --global init.defaultBranch main
# Uncomment and configure Git user if needed
# git config --global user.email "abhishekrenjan33@gmail.com"
# git config --global user.name "Ren-Gen22"
yecho "Starting to install basic packages..."
# Audio and multimedia
sudo pacman -S --noconfirm pipewire pipewire-alsa pipewire-pulse pipewire-jack wireplumber
# yayyyyy!!!!!
sudo chmod +x $curr/yayPckgs.sh
sudo -u "$SUDO_USER" -- bash -c "export PATH=$PATH; ./yayPckgs.sh"
# Basic utilities
sudo pacman -S --noconfirm nodejs npm zsh ttf-hack-nerd
# Hyprland-related packages
sudo pacman -S --noconfirm hypridle hyprlock hyprpaper hyprshot waybar mako dunst xwaylandvideobridge hyprpolkitagent
# General utilities
sudo pacman -S --noconfirm \
firefox thunar neovim udisks2 viewnior zathura libreoffice-still github-cli \
network-manager-applet pavucontrol wofi rofi cliphist vlc discord
#spoify-player
# Additional utilities and system tweaks
sudo pacman -S --noconfirm xdg-user-dirs papirus-icon-theme libnotify imagemagick
xdg-user-dirs-update
# Font packages
sudo pacman -S --noconfirm \
adobe-source-han-sans-otc-fonts adobe-source-han-serif-otc-fonts noto-fonts \
noto-fonts-cjk noto-fonts-emoji ttf-dejavu ttf-liberation ttf-font-awesome \
ttf-material-design-icons
# Adding installed fonts
fc-cache -fv
# Filesystem utilities
sudo pacman -S --noconfirm fuse3 ntfs-3g
# Custom SDDM theme setup
yecho "Applying Custom SDDM Theme"
sudo cp -r $curr/custom /usr/share/sddm/themes/
sudo cp sddm.conf.d /etc/
sudo pacman -S --noconfirm qt5-graphicaleffects qt5-quickcontrols qt5-quickcontrols2
# Bluetooth setup
sudo pacman -S --noconfirm bluez bluez-utils
sudo systemctl enable --now NetworkManager bluetooth
#systemctl --user enable mpris-proxy.service
#systemctl --user start mpris-proxy.service
yecho "Copying config files to ~/.config..."
cp -r $curr/configs/* $HOME/.config
yecho "Setting ur default shell to Zsh"
# Change the default shell to Zsh
chsh -s $(which zsh)
##Make nvim config even available in sudo or root
#sudo mkdir -p /root/.config
#sudo ln -s ~/.config/nvim /root/.config/nvim
sudo chmod +x ./sfr/sfr.sh
yecho "Setup completed successfully! Re-login to apply Zsh as your default shell."
echo "Press Enter to continue..."
read
echo "Ready for a surprise!!!"
echo "In 3.."
sleep 1
echo "2.."
sleep 1
echo "1"
clear
./sfr/sfr.sh