-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
65 lines (56 loc) · 2.39 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
#!/bin/bash
echo 'This script installs and all required packages and backsup/applies all my config files for hyprland'
echo 'Do not run this as sudo/root'
echo 'This script does everything except installing sddm in case there are conflicts with exists gdm or other login managers'
echo 'This script assumes you are using bash, starship and some parts of the script may have issues in zsh'
read -p "Press enter to continue"
clear
echo 'Installing Needed Packages'
if ! command -v yay &> /dev/null
then
echo 'yay not installed - installing now'
sudo pacman -S --needed git base-devel && git clone https://aur.archlinux.org/yay-bin.git && cd yay-bin && makepkg -si
cd ..
echo 'yay is now installed - continuing'
else
echo 'yay is already installed - continuing'
fi
yay -S --needed --noconfirm qt5-wayland qt5ct qt6-wayland qt6ct qt5-svg qt5-quickcontrols2 qt5-graphicaleffects gtk3 polkit-kde-agent pipewire jq wl-clipboard cliphist python-requests pacman-contrib
yay -S --needed --noconfirm spdlog-git sdbus-cpp
yay -S --needed --noconfirm hyprland-git kitty mako nwg-panel nvim wofi xdg-desktop-portal-hyprland-git xdg-desktop-portal-gtk xwaylandvideobridge-git hyprpaper neovim swappy grim slurp btop pamixer pavucontrol network-manager-applet starship papirus-icon-theme indicator-kdeconnect-git kdeconnect ttf-jetbrains-mono-nerd noto-fonts-emoji lxappearance nwg-look-bin cliphist starship dolphin swaylock-effects wlogout brightnessctl bluez bluez-utils blueman gvfs
clear
echo 'backing up existing configs'
for DIR in btop hypr kitty mako nvim swaylock waybar wlogout wofi
do
DIRPATH=~/.config/$DIR
if [ -d "$DIRPATH" ]; then
echo -e "$CAT - Config for $DIR located, backing up."
mv $DIRPATH $DIRPATH-back
echo -e "$COK - Backed up $DIR to $DIRPATH-back."
fi
done
STARPATH=~/.config
if [ -f "starship.toml" ]; then
cp starship.toml starship-back.toml
fi
mv btop ~/.config/
mv hypr ~/.config/
mv kitty ~/.config/
mv mako ~/.config/
mv nvim ~/.config/
mv swaylock ~/.config/
mv nwg-panel ~/.config/
mv wlogout ~/.config/
mv wofi ~/.config/
mv starship.toml ~/.config/starship.toml
echo -e '\neval "$(starship init bash)"' >> ~/.bashrc
DIRPATH=~/
if [ -d "Pictures" ]; then
cp ff.png ~/Pictures/ff.png
else
mkdir ~/Pictures
cp ff.png ~/Pictures/ff.png
fi
clear
echo 'Configs successfully copied!'
echo 'Start with sddm, gdm, or the Hyprland command'