-
Notifications
You must be signed in to change notification settings - Fork 0
/
script.sh
62 lines (36 loc) · 2.03 KB
/
script.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
#!/bin/bash
if [ "$EUID" -ne 0 ]; then
echo "Please run as root"
exit
fi
if ! grep -q "$$multilib$$" /etc/pacman.conf; then
echo -e "\n[multilib]\nInclude = /etc/pacman.d/mirrorlist" >> /etc/pacman.conf
echo "Multilib repository added to /etc/pacman.conf"
else
echo "Multilib repository is already enabled."
fi
pacman -Syu
echo "Multilib enabled and package database updated."
CONFIG_FILE="/etc/systemd/zram-generator.conf"
if ! grep -q "$$zram0$$" "$CONFIG_FILE"; then
echo -e "\n[zram0]\nzram-size = ram * 2" >> "$CONFIG_FILE"
echo "Added [zram0] configuration to $CONFIG_FILE"
else
echo "[zram0] configuration already exists in $CONFIG_FILE."
fi
echo "Configuration updated."
systemctl restart [email protected]
sudo pacman -S fastfetch neofetch zsh timeshift firefox noto-fonts-cjk spectacle flatpak libreoffice-fresh kdenlive kvantum grub-btrfs mpv elisa virt-manager prismlauncher steam git zip unzip cmatrix cryfs enfs gocryptfs kdeconnect gwenview gparted partitionmanager jre17-openjdk jre21-openjdk jre8-openjdk kclock kolourpaint krita vlc power-profiles-daemon qbittorrent unrar zsh-autosuggestions wine qemu-full
git clone https://aur.archlinux.org/yay.git
cd yay
makepkg -si
yay -S google-chrome spotify visual-studio-code-bin pfetch-rs vesktop-bin heroic-games-launcher-bin
sudo chsh -s /usr/bin/zsh
wget https://github.com/ryanoasis/nerd-fonts/blob/c09f4c09b97bce8978c4c3104c4bbb5b7549228b/patched-fonts/NerdFontsSymbolsOnly/SymbolsNerdFontMono-Regular.ttf
wget https://github.com/ryanoasis/nerd-fonts/blob/c09f4c09b97bce8978c4c3104c4bbb5b7549228b/patched-fonts/NerdFontsSymbolsOnly/SymbolsNerdFont-Regular.ttf
mkdir ~/.fonts
cp SymbolsNerdFontMono-Regular.ttf ~/.fonts && cp SymbolsNerdFont-Regular.ttf ~/.fonts
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k
cp -i .zshrc ~/.zshrc
cp -i .p10k.zsh ~/.p10k.zsh