docs(readme): update guide for Omarchy 4
Omarchy 4 configures Hyprland in Lua and installs fcitx5 and Steam deps itself, so the .conf snippets and manual package steps are stale.
This commit is contained in:
parent
ad7f981e5c
commit
ef2de0d355
82
README.md
82
README.md
@ -4,14 +4,13 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<td width="40%" align="center">
|
<td width="40%" align="center">
|
||||||
<h3>omarchy-config</h3>
|
<h3>omarchy-config</h3>
|
||||||
<p>Post-installation setup notes and helper scripts for an Omarchy (Arch Linux + Hyprland) desktop.</p>
|
<p>Post-installation setup notes and helper scripts for an Omarchy 4 (Arch Linux + Hyprland) desktop.</p>
|
||||||
</td>
|
</td>
|
||||||
<td width="60%">
|
<td width="60%">
|
||||||
|
|
||||||
## Table of Contents
|
## Table of Contents
|
||||||
- [Overview](#overview)
|
- [Overview](#overview)
|
||||||
- [Configurator](#configurator)
|
- [Configurator](#configurator)
|
||||||
- [Packages](#packages)
|
|
||||||
- [Default browser](#default-browser)
|
- [Default browser](#default-browser)
|
||||||
- [NVIDIA](#nvidia)
|
- [NVIDIA](#nvidia)
|
||||||
- [Steam](#steam)
|
- [Steam](#steam)
|
||||||
@ -28,10 +27,13 @@
|
|||||||
## Overview
|
## Overview
|
||||||
|
|
||||||
A reproducible record of the steps and tweaks used to bring a fresh
|
A reproducible record of the steps and tweaks used to bring a fresh
|
||||||
[Omarchy](https://omarchy.org/) install (Arch Linux + Hyprland) to a working
|
[Omarchy](https://omarchy.org/) 4 "Quattro" install (Arch Linux + Hyprland) to
|
||||||
daily-driver state: trimming bundled web apps, installing missing packages,
|
a working daily-driver state: trimming bundled apps and web apps, installing
|
||||||
configuring the browser, NVIDIA power management, Steam, multi-monitor output,
|
desktop and developer tools (including a Rust + Python toolchain), configuring the browser, NVIDIA power
|
||||||
and the shell prompt.
|
management, Steam, multi-monitor output, and the shell prompt.
|
||||||
|
|
||||||
|
Omarchy 4 configures Hyprland in Lua (`~/.config/hypr/*.lua`), so the snippets
|
||||||
|
below use the `hl.*` API rather than the old `hyprland.conf` syntax.
|
||||||
|
|
||||||
> Commands below are recorded as run on the author's machine. Verify package
|
> Commands below are recorded as run on the author's machine. Verify package
|
||||||
> names and paths against your own hardware before applying.
|
> names and paths against your own hardware before applying.
|
||||||
@ -133,18 +135,6 @@ path can be checked unattended:
|
|||||||
./config_installer.sh --dry-run < /dev/null
|
./config_installer.sh --dry-run < /dev/null
|
||||||
```
|
```
|
||||||
|
|
||||||
## Packages
|
|
||||||
|
|
||||||
Install the missing base and input-method packages:
|
|
||||||
|
|
||||||
```bash
|
|
||||||
sudo pacman -Sy
|
|
||||||
|
|
||||||
sudo pacman -S startup-notification
|
|
||||||
|
|
||||||
sudo pacman -S fcitx5-config-qt fcitx5-configtool fcitx5-gtk
|
|
||||||
```
|
|
||||||
|
|
||||||
## Default browser
|
## Default browser
|
||||||
|
|
||||||
LibreWolf is installed by [step 2](#step-2--add). Make it the default
|
LibreWolf is installed by [step 2](#step-2--add). Make it the default
|
||||||
@ -260,13 +250,15 @@ sudo reboot
|
|||||||
|
|
||||||
## Steam
|
## Steam
|
||||||
|
|
||||||
Arch and Omarchy run Wayland with the Hyprland tiling compositor. X11 apps
|
Omarchy runs Wayland with the Hyprland tiling compositor. X11 apps run
|
||||||
run through Xwayland rather than as native Wayland windows, so games may need
|
through Xwayland rather than as native Wayland windows, so games may need X11
|
||||||
X11 forced explicitly (see the launch option below). Installing Steam pulls in
|
forced explicitly (see the launch option below). Install Steam with
|
||||||
the missing dependencies:
|
Omarchy's installer (also *Install > Gaming > Steam* in the Omarchy menu),
|
||||||
|
which adds the 32-bit graphics drivers for the detected GPU, plus `gamescope`:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
sudo pacman -S steam
|
omarchy-install-gaming-steam
|
||||||
|
omarchy-pkg-add gamescope
|
||||||
```
|
```
|
||||||
|
|
||||||
Run games with the launch option:
|
Run games with the launch option:
|
||||||
@ -280,43 +272,45 @@ GDK_BACKEND=x11 SDL_VIDEODRIVER=x11 %command%
|
|||||||
Back up the existing config before editing:
|
Back up the existing config before editing:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
cp ~/.config/hypr/hyprland.conf ~/.config/hypr/hyprland.conf.backup
|
cp ~/.config/hypr/hyprland.lua ~/.config/hypr/hyprland.lua.backup
|
||||||
```
|
```
|
||||||
|
|
||||||
Add the Steam and X11 environment variables to `hyprland.conf`:
|
Add the Steam scaling variable at the end of `hyprland.lua`. X11 is forced
|
||||||
|
per game by the Steam launch option above; setting `GDK_BACKEND` or
|
||||||
|
`SDL_VIDEODRIVER` here would push every GTK and SDL app through Xwayland and
|
||||||
|
override Omarchy's `GDK_BACKEND=wayland,x11,*` default:
|
||||||
|
|
||||||
```bash
|
```lua
|
||||||
env = STEAM_FORCE_DESKTOPUI_SCALING,1
|
hl.env("STEAM_FORCE_DESKTOPUI_SCALING", "1")
|
||||||
env = SDL_VIDEODRIVER,x11
|
|
||||||
env = GDK_BACKEND,x11
|
|
||||||
|
|
||||||
# NVIDIA cursor lag fix (add only if you experience lag)
|
-- NVIDIA cursor lag fix (add only if you experience lag)
|
||||||
env = WLR_NO_HARDWARE_CURSORS,1
|
hl.config({ cursor = { no_hardware_cursors = true } })
|
||||||
```
|
```
|
||||||
|
|
||||||
## Monitors
|
## Monitors
|
||||||
|
|
||||||
Configure displays for optimal frame rate in `~/.config/hypr/monitors.conf`
|
Configure displays for optimal frame rate in `~/.config/hypr/monitors.lua`
|
||||||
(see the [Hyprland monitors guide](https://wiki.hyprland.org/Configuring/Monitors/)):
|
(see the [Hyprland monitors guide](https://wiki.hypr.land/Configuring/Basics/Monitors/);
|
||||||
|
list outputs with `hyprctl monitors all`). Replace the default `GDK_SCALE` and
|
||||||
|
catch-all `hl.monitor` lines Omarchy wrote with:
|
||||||
|
|
||||||
```bash
|
```lua
|
||||||
nvim ~/.config/hypr/monitors.conf
|
hl.env("GDK_SCALE", "2")
|
||||||
# add these lines:
|
|
||||||
env = GDK_SCALE,2
|
|
||||||
|
|
||||||
# Laptop screen (2560x1600 @ 240Hz, scaled 1.6x)
|
-- Laptop screen (2560x1600 @ 240Hz, scaled 1.6x)
|
||||||
monitor = eDP-2, 2560x1600@240, 0x0, 1.60
|
hl.monitor({ output = "eDP-2", mode = "2560x1600@240", position = "0x0", scale = 1.6 })
|
||||||
|
|
||||||
# BenQ 4K external (3840x2160 @ 60Hz, no scaling, VRR enabled)
|
-- BenQ 4K external (3840x2160 @ 60Hz, no scaling, VRR enabled)
|
||||||
monitor = DP-1, 3840x2160@60, 1600x0, 1.00, vrr, 1
|
hl.monitor({ output = "DP-1", mode = "3840x2160@60", position = "1600x0", scale = 1, vrr = 1 })
|
||||||
|
|
||||||
# Fallback for any other monitors
|
-- Fallback for any other monitors
|
||||||
monitor = ,preferred,auto,auto
|
hl.monitor({ output = "", mode = "preferred", position = "auto", scale = "auto" })
|
||||||
```
|
```
|
||||||
|
|
||||||
## Starship prompt
|
## Starship prompt
|
||||||
|
|
||||||
Copy the bundled [Starship](https://starship.rs/) config into place:
|
Omarchy ships its own Starship config; replace it with the bundled
|
||||||
|
[Starship](https://starship.rs/) config:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
cp src/starship.toml ~/.config/
|
cp src/starship.toml ~/.config/
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user