From 7fc01c1d489a790d099c9ad6d4b648a8ccdb1696 Mon Sep 17 00:00:00 2001 From: izmyname <135810812+izmyname@users.noreply.github.com> Date: Sun, 17 Nov 2024 22:24:12 +0500 Subject: [PATCH] Environment-variables: add information on how to export variables using UWSM (#874) --- pages/Configuring/Environment-variables.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/pages/Configuring/Environment-variables.md b/pages/Configuring/Environment-variables.md index fbb2010..a39247a 100644 --- a/pages/Configuring/Environment-variables.md +++ b/pages/Configuring/Environment-variables.md @@ -3,6 +3,18 @@ weight: 15 title: Environment variables --- +{{< callout type=info >}} + +[uwsm](../../Useful-Utilities/Systemd-start) users should avoid placing environment variables in the `hyprland.conf` file. Instead, use `~/.config/uwsm/env` for theming, xcursor, nvidia and toolkit variables, and `~/.config/uwsm/env-hyprland` for `HYPR*` and `AQ_*` variables. The format is `export KEY=VAL`. + +```plain +export XCURSOR_SIZE=24 +``` + +See [uwsm readme](https://github.com/Vladimir-csp/uwsm?tab=readme-ov-file#4-environments-and-shell-profile) for additional information. + +{{< /callout >}} + You can use the `env` keyword to set environment variables prior to the initialization of the Display Server, e.g.: