docs(readme): rewrite as polished public-facing README

- docs(readme): add title card, table of contents, and overview section
- docs(readme): fix prose typos (tiling, should, current) and structure sections
- docs(readme): add MIT license section linking LICENSE
- shell commands preserved verbatim from author's tested setup
This commit is contained in:
Łukasz Boryń 2026-06-17 10:09:07 +02:00
parent 737ed1cbb4
commit 779b53caae

181
README.md
View File

@ -1,24 +1,58 @@
# omarchy-config # omarchy-config
A general private repository to configure omarchy archlinux post-installation <table>
<tr>
<td width="40%" align="center">
<h3>omarchy-config</h3>
<p>Post-installation setup notes and helper scripts for an Omarchy (Arch Linux + Hyprland) desktop.</p>
</td>
<td width="60%">
Hi future Luke. This is past you trying to help you with installation of Omarchy archlinux. ## Table of Contents
- [Overview](#overview)
- [App cleanup](#app-cleanup)
- [Packages](#packages)
- [Default browser](#default-browser)
- [NVIDIA](#nvidia)
- [Steam](#steam)
- [Hyprland](#hyprland)
- [Monitors](#monitors)
- [Starship prompt](#starship-prompt)
- [License](#license)
# app cleanup </td>
</tr>
</table>
There are multiple web apps that do not fit my needs. The original script was taken from omarchy-cleaner script with ## Overview
A reproducible record of the steps and tweaks used to bring a fresh
[Omarchy](https://omarchy.org/) install (Arch Linux + Hyprland) to a working
daily-driver state: trimming bundled web apps, installing missing packages,
configuring the browser, NVIDIA power management, Steam, multi-monitor output,
and the shell prompt.
> Commands below are recorded as run on the author's machine. Verify package
> names and paths against your own hardware before applying.
## App cleanup
Omarchy ships several web apps that may not fit your needs. The original
selector script comes from `omarchy-cleaner`:
```bash ```bash
curl -fsSL https://raw.githubusercontent.com/maxart/omarchy-cleaner/main/omarchy-cleaner.sh | 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 The version checked in here pre-selects the items relevant to this setup:
```bash ```bash
bash webapp-cleaner.sh bash webapp-cleaner.sh
``` ```
# installing missing packages ## Packages
Install the missing base and input-method packages:
```bash ```bash
sudo pacman -Sy core extra multilib omarchy sudo pacman -Sy core extra multilib omarchy
@ -28,118 +62,77 @@ sudo pacman -S startup-notication
sudo pacman -S fcitx5-config-qt fcitx5-configtool fcitx5-gtk sudo pacman -S fcitx5-config-qt fcitx5-configtool fcitx5-gtk
``` ```
# setting default browser ## Default browser
Install binary of librewolf-bin as it is much faster than the simply installing librewolf. Install the `librewolf-bin` binary package — it is noticeably faster to set up
than building `librewolf` from source:
```bash ```bash
yay -S librewolf-bin yay -S librewolf-bin
``` ```
Now, make librewolf-bin a default browser matching the assigned keybinding Make LibreWolf the default browser so it matches the assigned keybinding:
```bash ```bash
echo 'export BROWSER=librewolf' >> /home/$USER/.config/uwsm/default echo 'export BROWSER=librewolf' >> /home/$USER/.config/uwsm/default
``` ```
# allow AI websites ### Allow AI websites
Go to `about:config` in librewolf search field and find `privacy.resistFingerprinting.reduceTimerPrecision.jitter`and set both options to `false`. In LibreWolf, open `about:config` and set
`privacy.resistFingerprinting.reduceTimerPrecision.jitter` (both options) to
`false`.
## NVIDIA
# nvidia Install the full driver stack:
You need to install all of the drivers for your AMD/Nvidia stack
```bash ```bash
sudo pacman -S nvidia-open-dkms nvidia-utils lib32-nvidia-utils lib32-vulkan-icd-loader lib32-mesa lib32-gnutls lib32-libpulse gamescope 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. Regenerate the initial ramdisk and reboot:
```bash ```bash
sudo mkinitcpio -P sudo mkinitcpio -P
sudo reboot sudo reboot
``` ```
### Power management
# steam **Kernel command-line parameters (Limine).** `+=` appends to the current
kernel settings:
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 ```bash
sudo nvim /etc/default/limine sudo nvim /etc/default/limine
# add this to file # add this to the file:
KERNEL_CMDLINE[default]+="nvidia-drm.modeset=1 pcie_aspm=off" KERNEL_CMDLINE[default]+="nvidia-drm.modeset=1 pcie_aspm=off"
``` ```
+= should append the changes to the curernt kernel settings
```bash ```bash
sudo nvim /etc/modprobe.d/nvidia.conf sudo nvim /etc/modprobe.d/nvidia.conf
# add this to that file: # add this to the file:
options nvidia-drm modeset=1 options nvidia-drm modeset=1
options nvidia NVreg_PreserveVideoMemoryAllocations=1 NVreg_TemporaryFilePath=/var/tmp NVreg_DynamicPowerManagement=0x02 options nvidia NVreg_PreserveVideoMemoryAllocations=1 NVreg_TemporaryFilePath=/var/tmp NVreg_DynamicPowerManagement=0x02
``` ```
Then rebuild initramfs Rebuild initramfs:
```bash ```bash
sudo mkinitcpio -P sudo mkinitcpio -P
``` ```
### create udev rule to force GPU on **Force the GPU always on** with a udev rule:
```bash ```bash
sudo nvim /etc/udev/rules.d/80-nvidia-pm.rules sudo nvim /etc/udev/rules.d/80-nvidia-pm.rules
# add this to file: # add this to the file:
# Keep NVIDIA GPU always on # Keep NVIDIA GPU always on
ACTION=="add", SUBSYSTEM=="pci", ATTR{vendor}=="0x10de", ATTR{class}=="0x030000", ATTR{power/control}="on" ACTION=="add", SUBSYSTEM=="pci", ATTR{vendor}=="0x10de", ATTR{class}=="0x030000", ATTR{power/control}="on"
sudo reboot sudo reboot
``` ```
**Make persistence mode permanent:**
### Rebuild Limine entries
Rebuild initramfs just to be safe:
```bash
sudo mkinitcpio -P
sudo reboot
```
### make persistence mode permanent
```bash ```bash
sudo systemctl enable nvidia-persistenced sudo systemctl enable nvidia-persistenced
@ -147,12 +140,49 @@ sudo systemctl start nvidia-persistenced
sudo reboot sudo reboot
``` ```
# setup monitors for optimal frame rate ## Steam
Arch and Omarchy run Wayland with the Hyprland tiling compositor, so X11
windows are not supported natively. Installing Steam pulls in the missing
dependencies:
```bash
sudo pacman -S steam
```
Run games with the launch option:
```
GDK_BACKEND=x11 SDL_VIDEODRIVER=x11 %command%
```
## Hyprland
Back up the existing config before editing:
```bash
cp ~/.config/hypr/hyprland.conf ~/.config/hypr/hyprland.conf.backup
```
Add the Steam and X11 environment variables to `hyprland.conf`:
```bash
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
```
## Monitors
Configure displays for optimal frame rate in `~/.config/hypr/monitors.conf`
(see the [Hyprland monitors guide](https://wiki.hyprland.org/Configuring/Monitors/)):
```bash ```bash
nvim ~/.config/hypr/monitors.conf nvim ~/.config/hypr/monitors.conf
# add these lines # add these lines:
# See https://wiki.hyprland.org/Configuring/Monitors/
env = GDK_SCALE,2 env = GDK_SCALE,2
# Laptop screen (2560x1600 @ 240Hz, scaled 1.6x) # Laptop screen (2560x1600 @ 240Hz, scaled 1.6x)
@ -164,10 +194,15 @@ monitor = DP-1, 3840x2160@60, 1600x0, 1.00, vrr, 1
# Fallback for any other monitors # Fallback for any other monitors
monitor = ,preferred,auto,auto monitor = ,preferred,auto,auto
``` ```
# starship
This config contains the initial setup of starship. Simply copy that into config location. ## Starship prompt
Copy the bundled [Starship](https://starship.rs/) config into place:
```bash ```bash
cp src/starship.toml ~/.config/ cp src/starship.toml ~/.config/
``` ```
## License
omarchy-config is licensed under the MIT License. See [LICENSE](LICENSE).