Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* drop functions_arch * alias wget to wget2 * cinnmaon: use transparency terminal, switch to pipewire, install keyring, arc-theme and papirus-icon * add install_efistub based on ubuntu variant * switch prime offloading to system76-power * setup: install additional fonts Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
- Loading branch information
Showing
6 changed files
with
45 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,21 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Install all packages required for cinnamon to work nicely | ||
sudo pacman -Sy xorg-server cinnamon gnome-terminal gnome-screenshot lightdm lightdm-slick-greeter eog nemo-fileroller gedit evince | ||
yay -Sy xorg-server cinnamon gnome-terminal-transparency gnome-screenshot lightdm lightdm-slick-greeter nemo-fileroller gnome-keyring pipewire pipewire-pulse papirus-icon-theme arc-gtk-theme | ||
sudo localectl set-locale LANG=en_US.UTF-8 | ||
sudo locale-gen | ||
|
||
# Setup lightdm along with slick-greeter plus necessary configs | ||
sudo sed -i "s/#greeter-session=example-gtk-gnome/greeter-session=lightdm-slick-greeter/" /etc/lightdm/lightdm.conf | ||
|
||
# Install packages related to bluetooth if needed | ||
echo "Do you have any bluetooth adaptors installed? [y/n]: " | ||
read -r -n1 input | ||
read -e -p "Do you have any bluetooth adaptors installed? [y/n]: " input | ||
if [[ "$input" =~ ^[Yy]$ ]]; then | ||
sudo pacman -Sy bluez bluez-utils blueman | ||
sudo systemctl enable bluetooth.service | ||
fi | ||
|
||
# Enable some services for convenience | ||
sudo systemctl enable lightdm.service | ||
sudo systemctl enable NetworkManager.service | ||
sudo systemctl disable NetworkManager-wait-online.service | ||
sudo systemctl enable lightdm.service |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#!/usr/bin/env bash | ||
|
||
read -e -p "Enter your boot disk device (e.g. /dev/sda): " -i "/dev/sda" disk | ||
read -e -p "Enter partition number for your boot partition (e.g. if your /boot is in /dev/sda1, enter 1): " -i "1" part | ||
read -e -p "Enter loader name (e.g. vmlinuz-linux if using `linux`): " -i "vmlinuz-linux" loader | ||
read -e -p "Enter initrd name (e.g. initramfs-linux.img if using `linux`): " -i "initramfs-linux.img" initrd | ||
read -e -p "Enter label for this entry (Label is what would show up in UEFI entries): " -i "rendumOS (efistub)" label | ||
|
||
read -e -p "Do you have an Intel or AMD CPU? (Y/n): " input | ||
if [[ "$input" =~ ^[Yy]$ ]]; then | ||
read -e -p "Enter 1 for Intel and 2 for AMD: " cpu | ||
if [[ "$input" =~ ^[1]$ ]]; then | ||
sudo pacman -Sy intel-ucode | ||
microcode="intel-ucode.img" | ||
else | ||
sudo pacman -Sy amd-ucode | ||
microcode="amd-ucode.img" | ||
fi | ||
printf -v largs "%s " \ | ||
"root=UUID=$(findmnt -kno UUID /) rw" \ | ||
"initrd"=${microcode} "initrd=${initrd}" | ||
else | ||
printf -v largs "%s " \ | ||
"root=UUID=$(findmnt -kno UUID /) rw" \ | ||
"initrd=${initrd}" | ||
fi | ||
|
||
sudo efibootmgr -c -d "${disk}" -p "${part}" -L "${label}" -l "${loader}" -u "${largs%* } quiet splash" --verbose |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,14 @@ | ||
#!/usr/bin/env bash | ||
|
||
sudo pacman -Sy nvidia nvidia-settings | ||
sudo pacman -Sy nvidia nvidia-utils libvdpau-va-gl | ||
|
||
#Stuff for people with a integrated + dedicated GPU | ||
echo "Do you have Intel integrated GPU and discrete NVIDIA GPU? [y/n]: " | ||
read -r -n1 input | ||
read -e -p "Do you have Intel integrated GPU and discrete NVIDIA GPU? [y/n]: " input | ||
if [[ "$input" =~ ^[Yy]$ ]]; then | ||
git clone https://aur.archlinux.org/optimus-manager.git | ||
cd optimus-manager | ||
makepkg -si | ||
cd | ||
yay -Sy system76-power | ||
|
||
#Stuff for optimus-manager to work properly | ||
sudo systemctl enable optimus-manager.service | ||
sudo rm /etc/X11/xorg.conf /etc/X11/xorg.conf.d/90-mhwd.conf | ||
sudo systemctl disable bumblebeed.service | ||
sudo optimus-manager --set-startup intel | ||
|
||
#Power saving stuff | ||
sudo su | ||
echo "[optimus]" > /etc/optimus-manager/optimus-manager.conf | ||
echo "switching=none" >> /etc/optimus-manager/optimus-manager.conf | ||
echo "pci_power_control=no" >> /etc/optimus-manager/optimus-manager.conf | ||
echo "pci_remove=yes" >> /etc/optimus-manager/optimus-manager.conf | ||
echo "pci_reset=yes" >> /etc/optimus-manager/optimus-manager.conf | ||
fi | ||
# Stuff for system76-power to work properly | ||
sudo systemctl enable system76-power.service | ||
sudo systemctl start system76-power.service | ||
sudo system76-power graphics hybrid | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters