omarchy-config/README.md

174 lines
3.9 KiB
Markdown

# omarchy-config
A general private repository to configure omarchy archlinux post-installation
Hi future Luke. This is past you trying to help you with installation of Omarchy archlinux.
# app cleanup
There are multiple web apps that do not fit my needs. The original script was taken from omarchy-cleaner script with
```bash
curl -fsSL https://raw.githubusercontent.com/maxart/omarchy-cleaner/main/omarchy-cleaner.sh | bash
```
Here I kept the script pre-selecting several items that are useful for me
```bash
bash webapp-cleaner.sh
```
# installing missing packages
```bash
sudo pacman -Sy core extra multilib omarchy
sudo pacman -S startup-notication
sudo pacman -S fcitx5-config-qt fcitx5-configtool fcitx5-gtk
```
# setting default browser
Install binary of librewolf-bin as it is much faster than the simply installing librewolf.
```bash
yay -S librewolf-bin
```
Now, make librewolf-bin a default browser matching the assigned keybinding
```bash
echo 'export BROWSER=librewolf' >> /home/$USER/.config/uwsm/default
```
# allow AI websites
Go to `about:config` in librewolf search field and find `privacy.resistFingerprinting.reduceTimerPrecision.jitter`and set both options to `false`.
# nvidia
You need to install all of the drivers for your AMD/Nvidia stack
```bash
sudo pacman -S nvidia-open-dkms nvidia-utils lib32-nvidia-utils lib32-vulkan-icd-loader lib32-mesa lib32-gnutls lib32-libpulse gamescope
```
After installation you would need to run mkinitcpio to generate initial ramdisk environment.
```bash
sudo mkinitcpio -P
sudo reboot
```
# steam
Natively, Archlinux and Omarchy in particular, support wayland and hyprland window (tilinig) manager. Therefore, X11 is not supported and even when you install steam you will not be able to open window that is X11 based. This sho ld install all missing dependencies.
```bash
sudo pacman -S steam
```
Run all games with launch option:
```
GDK_BACKEND=x11 SDL_VIDEODRIVER=x11 %command%
```
# hyprland config
## backup all of your stuff
```bash
cp ~/.config/hypr/hyprland.conf ~/.config/hypr/hyprland.conf.backup
# add these to hyprland.config
env = STEAM_FORCE_DESKTOPUI_SCALING,1
env = SDL_VIDEODRIVER,x11
env = GDK_BACKEND,x11
# NVIDIA cursor lag fix, add only if you experience lag)
env = WLR_NO_HARDWARE_CURSORS,1
```
## Manage Nvidia power saving
### Kernel command line parameters (Limine)
```bash
sudo nvim /etc/default/limine
# add this to file
KERNEL_CMDLINE[default]+="nvidia-drm.modeset=1 pcie_aspm=off"
```
+= should append the changes to the curernt kernel settings
```bash
sudo nvim /etc/modprobe.d/nvidia.conf
# add this to that file:
options nvidia-drm modeset=1
options nvidia NVreg_PreserveVideoMemoryAllocations=1 NVreg_TemporaryFilePath=/var/tmp NVreg_DynamicPowerManagement=0x02
```
Then rebuild initramfs
```bash
sudo mkinitcpio -P
```
### create udev rule to force GPU on
```bash
sudo nvim /etc/udev/rules.d/80-nvidia-pm.rules
# add this to file:
# Keep NVIDIA GPU always on
ACTION=="add", SUBSYSTEM=="pci", ATTR{vendor}=="0x10de", ATTR{class}=="0x030000", ATTR{power/control}="on"
sudo reboot
```
### Rebuild Limine entries
Rebuild initramfs just to be safe:
```bash
sudo mkinitcpio -P
sudo reboot
```
### make persistence mode permanent
```bash
sudo systemctl enable nvidia-persistenced
sudo systemctl start nvidia-persistenced
sudo reboot
```
# setup monitors for optimal frame rate
```bash
nvim ~/.config/hypr/monitors.conf
# add these lines
# See https://wiki.hyprland.org/Configuring/Monitors/
env = GDK_SCALE,2
# Laptop screen (2560x1600 @ 240Hz, scaled 1.6x)
monitor = eDP-2, 2560x1600@240, 0x0, 1.60
# BenQ 4K external (3840x2160 @ 60Hz, no scaling, VRR enabled)
monitor = DP-1, 3840x2160@60, 1600x0, 1.00, vrr, 1
# Fallback for any other monitors
monitor = ,preferred,auto,auto
```
# starship
This config contains the initial setup of starship. Simply copy that into config location.
```bash
cp src/starship.toml ~/.config/
```