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!

  • Subm77@piefed.social
    link
    fedilink
    English
    arrow-up
    2
    ·
    edit-2
    1 month ago

    The Output from swayidle -d should be similar to the following lines

    2025-07-27 01:34:16 - [Line 1078] No config file found.  
    2025-07-27 01:34:16 - [Line 463] Using session: /org/freedesktop/login1/session/c4  
    2025-07-27 01:34:16 - [Line 1151] No command specified! Nothing to do, will exit  
    

    and the ouput from loginctl should list the session from the second line of the swayidle -d output.

    SESSION  UID USER   SEAT  TTY  STATE  IDLE SINCE  
         c4 1000 subm77 seat0 tty3 active no   -    
    
    1 sessions listed.  
    

    If that is not the case you could look into setting up a login manager like greetd.