omarchy-launch-browser reads xdg-settings and ignores $BROWSER, so the export alone never made LibreWolf the default.
omarchy-config
omarchy-configPost-installation setup notes and helper scripts for an Omarchy (Arch Linux + Hyprland) desktop. |
Table of Contents |
Overview
A reproducible record of the steps and tweaks used to bring a fresh Omarchy 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.
Quick start:
./config_installer.sh --dry-run # preview: changes nothing
./config_installer.sh # step 1: remove, step 2: add
Configurator
config_installer.sh runs two steps. Each one asks first, so either can be
skipped, and every item can be ticked or unticked in a menu. Re-running is
safe: anything already in the desired state is left alone.
Step 1 — Remove
Omarchy 4 preinstalls web apps (Basecamp, Discord, Google Contacts / Maps /
Messages / Photos, HEY, WhatsApp, X, YouTube, Zoom) and desktop apps (Aether,
cliamp, Omacalc, Omacut, Omawrite, Pinta, …). To drop all of them at once,
Omarchy provides omarchy-remove-preinstalls. Step 1 lets you pick:
- installed packages from the
REMOVABLE_PACKAGESlist at the top of the script (uncomment entries to offer more), plus every installed web app launcher — including ones you created yourself. Nothing is preselected; - packages are removed with
pacman -Rns, web apps withomarchy-webapp-remove; - it offers to disable the default shortcuts that launch removed items by
appending
hl.unbind("…")lines to~/.config/hypr/bindings.lua(a backup is made first). Omarchy's defaults live in/usr/share/omarchy/default/hypr/bindings/applications.luaand must not be edited directly.
Adapted from omarchy-cleaner.
Web apps open in Chromium unless the default browser is Chromium-based (Chrome, Brave, Edge, Vivaldi, Opera, Helium). Removing
chromiumwhile keeping web apps leaves them unable to launch — the script warns about this.
Step 2 — Add
Everything is preselected; untick what you do not want. The list lives in the
CATALOGUE array at the top of the script.
| Group | Item | Installed via |
|---|---|---|
| Desktop | LibreWolf | AUR librewolf-bin (binary, much faster than building librewolf) |
| System | herdr (terminal workspace for AI agents), caligula (disk image writer) | pacman |
| Dev CLI | just, uv, ty, jj, pi coding agent, hunk diff viewer | mise use -g |
| Rust + Python | rustup + rust-analyzer, clippy, rustfmt |
pacman, then rustup |
| Rust + Python | maturin | uv tool install |
| Rust + Python | cmake, pkgconf (for -sys crates such as rust-htslib) |
pacman |
| Profiling | cargo-binstall, perf |
pacman |
| Profiling | py-spy (py-spy record --native shows Rust frames) |
uv tool install |
Why these sources:
- mise for dev CLIs — upstream's prebuilt binaries on release day,
per-project pinning via
mise.toml, no sudo, and it is how Omarchy already ships its AI/dev CLIs. Update withmise up. ty is still beta (0.0.x), so release-day updates matter most there. Omarchy's lazy~/.local/bin/piand~/.local/bin/hunkstubs use the same backends and keep working. - pacman for system tools — updated by
omarchy-update. - No
cargo install— just, uv, ty and jj ship prebuilt binaries; compiling them needs the Rust toolchain and gets no automatic updates. - rustup instead of Arch's
rust— per-projectrust-toolchain.toml, nightly formiri, extra targets for manylinux/musllinux wheels andllvm-toolsfor PGO. Replacing therustpackage is asked first. - uv for Python-side tools — maturin and py-spy ship as wheels with the
binary inside. Manage Python versions with
uv python install.
Before installing a mise tool, the script looks for other copies on PATH
(cargo installs, AUR -git packages such as jujutsu-git, npm globals,
standalone installers). If a copy is older than the version mise would install,
it offers to remove it so it cannot shadow the new one. Copies of unknown
origin are left alone.
Summary
The run ends with a table:
| item | status | action verified |
|---|---|---|
| tool or app name | installed, removed or kept |
yes / no |
kept covers unselected items, items already in place, declined prompts and
failures. Action verified re-checks the result (package or command present,
or gone after removal); a failed action shows kept / no.
Dry run
--dry-run walks both steps and prints every command it would run plus the
summary, changing nothing (action verified is always no). Without a
terminal it selects every item and answers every prompt with yes, so the full
path can be checked unattended:
./config_installer.sh --dry-run < /dev/null
Packages
Install the missing base and input-method packages:
sudo pacman -Sy
sudo pacman -S startup-notification
sudo pacman -S fcitx5-config-qt fcitx5-configtool fcitx5-gtk
Default browser
LibreWolf is installed by step 2. Make it the default
browser — this is what the browser keybindings (SUPER + SHIFT + B,
SUPER + SHIFT + RETURN) and links opened from other apps use
(omarchy-launch-browser reads xdg-settings and explicitly ignores
$BROWSER). The Omarchy menu's Setup > Defaults > Browser does not list
LibreWolf, so set it directly. xdg-settings refuses to change anything while
$BROWSER is set ("$BROWSER is set and can't be changed with xdg-settings"),
so unset it for the command, as omarchy-default-browser does:
env -u BROWSER xdg-settings set default-web-browser librewolf.desktop
env -u BROWSER xdg-settings get default-web-browser # librewolf.desktop
Optionally, also export BROWSER for terminal tools that read it (e.g. gh).
Add the line once — appending blindly duplicates it on every run:
grep -qx 'export BROWSER=librewolf' ~/.config/uwsm/default ||
echo 'export BROWSER=librewolf' >> ~/.config/uwsm/default
Allow AI websites
claude.ai and chatgpt.com can hang LibreWolf with its fingerprinting
protection's timer jitter enabled. In about:config, set
privacy.resistFingerprinting.reduceTimerPrecision.jitter to false.
The second match in about:config,
services.sync.prefs.sync.privacy.resistFingerprinting.reduceTimerPrecision.jitter,
only controls whether Firefox Sync copies the setting to other devices; it
does not affect the hang.
NVIDIA
Install the full driver stack:
sudo pacman -S nvidia-open-dkms nvidia-utils lib32-nvidia-utils lib32-vulkan-icd-loader lib32-mesa lib32-gnutls lib32-libpulse gamescope
Regenerate the initial ramdisk and reboot:
sudo mkinitcpio -P
sudo reboot
Power management
Kernel command-line parameters (Limine). += appends to the current
kernel settings:
sudo nvim /etc/default/limine
# add this to the file:
KERNEL_CMDLINE[default]+="nvidia-drm.modeset=1 pcie_aspm=off"
sudo nvim /etc/modprobe.d/nvidia.conf
# add this to the file:
options nvidia-drm modeset=1
options nvidia NVreg_PreserveVideoMemoryAllocations=1 NVreg_TemporaryFilePath=/var/tmp NVreg_DynamicPowerManagement=0x02
Rebuild initramfs:
sudo mkinitcpio -P
Force the GPU always on with a udev rule:
sudo nvim /etc/udev/rules.d/80-nvidia-pm.rules
# add this to the file:
# Keep NVIDIA GPU always on
ACTION=="add", SUBSYSTEM=="pci", ATTR{vendor}=="0x10de", ATTR{class}=="0x030000", ATTR{power/control}="on"
sudo reboot
Make persistence mode permanent:
sudo systemctl enable nvidia-persistenced
sudo systemctl start nvidia-persistenced
sudo reboot
Steam
Arch and Omarchy run Wayland with the Hyprland tiling compositor. X11 apps run through Xwayland rather than as native Wayland windows, so games may need X11 forced explicitly (see the launch option below). Installing Steam pulls in the missing dependencies:
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:
cp ~/.config/hypr/hyprland.conf ~/.config/hypr/hyprland.conf.backup
Add the Steam and X11 environment variables to hyprland.conf:
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):
nvim ~/.config/hypr/monitors.conf
# add these lines:
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 prompt
Copy the bundled Starship config into place:
cp src/starship.toml ~/.config/
Repository layout
config_installer.sh # step 1: remove preinstalled apps/web apps; step 2: add tools
src/
starship.toml # Starship shell-prompt config (copy to ~/.config/)
LICENSE # MIT
README.md # this guide
License
omarchy-config is licensed under the MIT License. See LICENSE.