-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathgaming-setup.sh
More file actions
executable file
·58 lines (44 loc) · 2.12 KB
/
gaming-setup.sh
File metadata and controls
executable file
·58 lines (44 loc) · 2.12 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
#!/bin/bash
if command -v apt >>/dev/null; then
printf "\n==> Installing dependencies with apt...\n"
if ( ! command -v add-apt-repository >>/dev/null ); then
sudo apt install software-properties-common
fi
if ( ! command -v polychromatic-cli >>/dev/null ); then
# https://polychromatic.app/download/ubuntu/
sudo add-apt-repository ppa:openrazer/stable
sudo add-apt-repository ppa:polychromatic/stable
sudo apt install openrazer-meta polychromatic
fi
if ( ! command -v ail-cli >>/dev/null); then
# https://github.com/TheAssassin/AppImageLauncher
sudo add-apt-repository ppa:appimagelauncher-team/stable
sudo apt install appimagelauncher
fi
if ( ! command -v signal-desktop >>/dev/null ); then
# https://signal.org/download/linux/
# 1. Install our official public software signing key:
wget -O- https://updates.signal.org/desktop/apt/keys.asc | gpg --dearmor > signal-desktop-keyring.gpg
cat signal-desktop-keyring.gpg | sudo tee /usr/share/keyrings/signal-desktop-keyring.gpg > /dev/null
# 2. Add our repository to your list of repositories:
echo 'deb [arch=amd64 signed-by=/usr/share/keyrings/signal-desktop-keyring.gpg] https://updates.signal.org/desktop/apt xenial main' |\
sudo tee /etc/apt/sources.list.d/signal-xenial.list
# 3. Update your package database and install Signal:
sudo apt update && sudo apt install signal-desktop
fi
if ( ! command -v steam >>/dev/null ); then
sudo apt install steam-installer
fi
elif command -v pacman >>/dev/null; then
sudo pacman -S fastfetch lutris signal-desktop steam openrgb gamescope gamemode lib32-gamemode lib32-vkd3d umu-launcher linux-headers
sudo gpasswd -a $USER gamemode
sudo gpasswd -a $USER plugdev
sudo gpasswd -a $USER i2c
# https://aur.archlinux.org/packages/paru
paru -S polychromatic
# https://wiki.archlinux.org/title/Gaming#Increase_vm.max_map_count
grep "vm.max_map_count" /etc/sysctl.d/80-gamecompatibility.conf || echo "vm.max_map_count = 2147483642" | sudo tee /etc/sysctl.d/80-gamecompatibility.conf
# Apply the changes without reboot
sudo sysctl --system
fi
printf "\nDone\n"