mirror of
https://github.com/arthur-pbty/arthur-os.git
synced 2026-08-06 04:29:34 +02:00
A pass over the install scripts, dev-tools commands, and Hyprland Lua files that I had stuffed with explain-everything preambles. Most of those rationales (which files ship where, why hyprctl setenv doesn't suffice, etc.) belong in commit messages or PR descriptions, not in code people have to read forever. Kept the few comments that document genuinely non-obvious behaviour: the keybind-env reason for hl.env in envs.lua, why the runtime PAM seds stay scripted in increase-lockout-limit, the chroot/--now distinction in chroot.sh, and the dev-pkg-test split-install reason.
47 lines
1.3 KiB
Lua
47 lines
1.3 KiB
Lua
local paths = require("default.hypr.paths")
|
|
local require_optional = require("default.hypr.require_optional")
|
|
|
|
-- GUM environment variables for styling purposes.
|
|
require_optional.module("omarchy.current.theme.gum_env")
|
|
|
|
-- Cursor size.
|
|
hl.env("XCURSOR_SIZE", "24")
|
|
hl.env("HYPRCURSOR_SIZE", "24")
|
|
|
|
-- Force all apps to use Wayland.
|
|
hl.env("GDK_BACKEND", "wayland,x11,*")
|
|
hl.env("QT_QPA_PLATFORM", "wayland;xcb")
|
|
hl.env("QT_STYLE_OVERRIDE", "kvantum")
|
|
hl.env("MOZ_ENABLE_WAYLAND", "1")
|
|
hl.env("ELECTRON_OZONE_PLATFORM_HINT", "wayland")
|
|
hl.env("OZONE_PLATFORM", "wayland")
|
|
hl.env("XDG_SESSION_TYPE", "wayland")
|
|
|
|
-- Allow better support for screen sharing (Google Meet, Discord, etc).
|
|
hl.env("XDG_CURRENT_DESKTOP", "Hyprland")
|
|
hl.env("XDG_SESSION_DESKTOP", "Hyprland")
|
|
|
|
-- Use XCompose file.
|
|
hl.env("XCOMPOSEFILE", paths.home .. "/.XCompose")
|
|
|
|
-- hyprctl setenv doesn't reach keybind dispatcher env; use hl.env.
|
|
hl.env("OMARCHY_PATH", paths.omarchy_path)
|
|
|
|
local bin_dir = paths.omarchy_path .. "/bin"
|
|
local kept = {}
|
|
for entry in (os.getenv("PATH") or "/usr/local/bin:/usr/bin"):gmatch("[^:]+") do
|
|
if entry ~= bin_dir then table.insert(kept, entry) end
|
|
end
|
|
table.insert(kept, 1, bin_dir)
|
|
hl.env("PATH", table.concat(kept, ":"))
|
|
|
|
hl.config({
|
|
xwayland = {
|
|
force_zero_scaling = true,
|
|
},
|
|
|
|
ecosystem = {
|
|
no_update_news = true,
|
|
},
|
|
})
|