Hello people, just switched to Alpine and it would be great if some of the Apine users could share some dotfiles that are running Wayland compositors. I have not figured out to make swayidle work and some other stuff. By the way I am running River but this happened aswell on a fresh install with the Sway option of setup-desktop
script.
I get some errors of unknown session
with swayidle and conky, but I have set the corresponding environment variables and launching with dbus-run-session -- river
River init file:
export XDG_SESSION_DESKTOP=river
export XDG_CURRENT_DESKTOP=river
dbus-update-activation-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=river
Shell env file:
export XDG_RUNTIME_DIR="$(mkrundir)"
export XDG_SESSION_TYPE=wayland
export QT_QPA_PLATFORM=wayland
export SDL_VIDEODRIVER=wayland
export GDK_BACKEND=wayland
export MOZ_ENABLE_WAYLAND=1
export _JAVA_AWT_WM_NONREPARENTING=1
If you encountered some quirks of your own please let me know. Thanks in advance!
You are exactly right, I was running
seatd
. Switching toelogind
solved the problem.This was the output by the way:
2025-07-26 19:39:32 - [Line 750] Register idle timeout at 10000 ms 2025-07-26 19:39:32 - [Line 751] Setup idle 2025-07-26 19:39:32 - [Line 713] Command: doas /usr/sbin/zz 2025-07-26 19:39:32 - [Line 1083] Loaded config at /home/alec/.config/swayidle/config 2025-07-26 19:39:32 - [Line 439] GetSession failed: The name org.freedesktop.login1 was not provided by any .service files 2025-07-26 19:39:32 - [Line 448] GetSessionByPID failed: The name org.freedesktop.login1 was not provided by any .service files 2025-07-26 19:39:32 - [Line 450] Failed to find session 2025-07-26 19:39:32 - [Line 281] Failed to parse get BlockInhibited property: Host is unreachable 2025-07-26 19:39:32 - [Line 621] Enable idle timeouts 2025-07-26 19:39:32 - [Line 596] Register with timeout: 10000
Yep, the login1 errors are the giveaway - elogind provides that dbus interface that swayidle needs for session management, while seatd is more minimal and dosn’t implement the full logind API that many Wayland apps expect.