-
Notifications
You must be signed in to change notification settings - Fork 2
/
arch.sh
29 lines (28 loc) · 1.01 KB
/
arch.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
#!/usr/bin/env bash
set -euo pipefail
if [ "$UID" != "0" ]; then
echo "ERROR: NOT RUNNING AS ROOT!"
echo "Please run this script as root to have it work correctly!"
exit 2
fi
# create firmware file for screen and move to grub
mkdir /lib/firmware/edid
base64 --decode ~/gpdwinlinux/winmaxscreen > /lib/firmware/edid/gpdwinmax.bin
echo 'GRUB_CMDLINE_LINUX="video=eDP-1:800x1280 drm.edid_firmware=eDP-1:edid/gpdwinmax.bin fbcon=rotate:1"' >> /etc/default/grub
grub-mkconfig -o /boot/grub/grub.cfg
echo "GPD Win Max firmware installed"
sleep 2
sudo pacman -Syu --noconfirm
echo "grabbing steam, lutris, etc"
sleep 2
sudo pacman -S steam lutris python-pip --noconfirm
pip install protonup
echo "grabbing heroic launcher, flatpak protonup"
sudo yay -S heroic-games-launcher-bin
sudo pacman -S flatpak --noconfirm
flatpak install flathub net.davidotek.pupgui2
echo "all good to go! please reboot soon"
sleep 2
sudo pacman --sync --refresh --noconfirm
sudo pacman --sync --needed archlinux-keyring --noconfirm
sudo pacman -Syu --noconfirm