From 0ff8b519459a97b3eca8b4e5263404a5628e2f41 Mon Sep 17 00:00:00 2001 From: Isabella Bastaja Date: Sat, 21 Feb 2026 17:12:32 +0100 Subject: add syntax highlighting --- site/2026-02-20-pleasant-arch-setup.md | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) (limited to 'site/2026-02-20-pleasant-arch-setup.md') 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 +

 # ~/.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
-```
+
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 +

 # ~/.config/environment.d/40-xdg-ninja.conf
 CARGO_HOME=$XDG_DATA_HOME/cargo
 RUSTUP_HOME=$XDG_DATA_HOME/rustup
 # ...
-```
+
## 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 +

 # ~/.config/environment.d/30-ssh-agent.conf
 SSH_AUTH_SOCK=$XDG_RUNTIME_DIR/ssh-agent.socket
-```
+
## 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 +

 # ~/.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
-```
+
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 +

 # ~/.config/environment.d/20-wayland-hints.conf
 DISPLAY=:1
 ELECTRON_OZONE_PLATFORM_HINT=wayland
 _JAVA_AWT_WM_NONREPARENTING=1
-```
+
I'm not sure whether the exact number you choose for the display has any effect. -- cgit v1.3.1