diff options
Diffstat (limited to 'site/2026-02-20-pleasant-arch-setup.md')
| -rw-r--r-- | site/2026-02-20-pleasant-arch-setup.md | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/site/2026-02-20-pleasant-arch-setup.md b/site/2026-02-20-pleasant-arch-setup.md index 93f35b0..2ba0ab2 100644 --- a/site/2026-02-20-pleasant-arch-setup.md +++ b/site/2026-02-20-pleasant-arch-setup.md @@ -26,13 +26,13 @@ I created the `~/.config/environment.d` directory and populated it with a few files for different types of assignments. For example here's the file I use to set my XDG base directories: -```bash +<pre><code class="language-conf"> # ~/.config/environment.d/10-user-dirs.conf XDG_CONFIG_HOME=$HOME/.config XDG_CACHE_HOME=$HOME/.cache XDG_DATA_HOME=$HOME/.local/share XDG_STATE_HOME=$HOME/.local/state -``` +</code></pre> This approach has a few benefits and a few downsides. It means my variables aren't dependent on my shell, that they're located in a common location, and @@ -55,12 +55,12 @@ offending programs on my system as well as the fix, if any is available. Most fixes tend to be environment variables, and as such I have the following file in my `environment.d` -```bash +<pre><code class="language-conf"> # ~/.config/environment.d/40-xdg-ninja.conf CARGO_HOME=$XDG_DATA_HOME/cargo RUSTUP_HOME=$XDG_DATA_HOME/rustup # ... -``` +</code></pre> ## SSH agent @@ -75,10 +75,10 @@ it instead, so long as I set the `SSH_AUTH_SOCK` environment variable manually. Therefore an invocation of `systemctl --user enable ssh-agent.service` along with creating the following environment file solves my troubles. -```bash +<pre><code class="language-conf"> # ~/.config/environment.d/30-ssh-agent.conf SSH_AUTH_SOCK=$XDG_RUNTIME_DIR/ssh-agent.socket -``` +</code></pre> ## Xwayland @@ -89,7 +89,7 @@ like niri's `spawn-at-startup`. Therefore I dropped this [service file](https://github.com/Supreeeme/xwayland-satellite/blob/main/resources/xwayland-satellite.service) into my user services. -```ini +<pre><code class="language-ini"> # ~/.config/systemd/user/xwayland-satellite.service [Unit] Description=Xwayland outside your Wayland @@ -101,23 +101,24 @@ Requisite=graphical-session.target [Service] Type=notify NotifyAccess=all -ExecStart=/usr/local/bin/xwayland-satellite ; <- this needed adjustment +ExecStart=/usr/local/bin/xwayland-satellite +# ^^ this needed adjustment ^^ StandardOutput=journal [Install] WantedBy=graphical-session.target -``` +</code></pre> X based applications also expect the `DISPLAY` environment variable to be set so I created put that into my wayland workarounds environment file. That file also contains other environment-based hints to programs that they should really use wayland pretty-please. -```bash +<pre><code class="language-conf"> # ~/.config/environment.d/20-wayland-hints.conf DISPLAY=:1 ELECTRON_OZONE_PLATFORM_HINT=wayland _JAVA_AWT_WM_NONREPARENTING=1 -``` +</code></pre> I'm not sure whether the exact number you choose for the display has any effect. |
