Wayland at last

At long last I decided to move away from my long prefered simple Openbox environment and try a real desktop environment again.

My choice fell on CachyOS with KDE Plasma. Plasma can run pretty light if configured correctly. The same goes for CachyOS. And I’ve been familiar with Arch Linux for a long time.

Here’s a collection of things a long-time Xorg user like me had to figure out the hard way.

No Xwayland please

This Plasma desktop starts Xwayland by default. Some apps might use it without the end user even noticing. But I’d rather know about it, at least for now.

To disable Xwayland integration, create this file with these contents:

$HOME/.config/systemd/user/plasma-kwin_wayland.service.d/override.conf
[Service]
ExecStart=
ExecStart=/usr/bin/kwin_wayland_wrapper

This removes the --xwayland option from the executable.

(This can also be achieved with systemctl edit plasma-kwin_wayland.service). In both cases, the first empty ExecStart= line is mandatory.

Log out/in. Now try running e.g. xterm.

Environment variables

I’ve been starting Xorg from a normal tty shell login, configured with ~/.xinitrc which is just another shell script. That gave me a lot of freedom to conditionally define environment variables and perform other actions.

Now it’s different (not necessarily harder though).

I can define environment variables for the whole session in ~/.config/environment.d/*.conf - but apparently I cannot override PATH, conditionally or not. These *.conf files also aren’t shell scripts.

There’s a second place to do this though: ~/.config/plasma-workspace/env/*.sh. These files are executed as shell scripts so something like

test -d "$HOME/.local/bin" && PATH="$HOME/.local/bin:$PATH"

is possible.

KeepassXC

KeepassXC’s AutoType does not really work under wayland. It’s the sad truth for now. It looks like there might be a solution in the upcoming release, but compiling & installing the latest develop branch checkout doesn’t help either.

Still investigating.