Skip to content

Instantly share code, notes, and snippets.

@ilyaigpetrov
Last active June 19, 2026 11:44
Show Gist options
  • Select an option

  • Save ilyaigpetrov/6b9c0d6b53c212d302071e491a37bf4f to your computer and use it in GitHub Desktop.

Select an option

Save ilyaigpetrov/6b9c0d6b53c212d302071e491a37bf4f to your computer and use it in GitHub Desktop.
My labwc setup

My labwc Setup

Installing on Alpine

$ doas setup-wayland-base
$ doas apk add font-dejavu util-linux-login labwc foot

Launching

To launch labwc w/o Xwayland but with a dbus session:

$ (export WLR_XWAYLAND=; dbus-run-session labwc)

Configs

$ cat ~/.config/labwc/environment
XKB_DEFAULT_LAYOUT=us,ru
XKB_DEFAULT_OPTIONS=grp:alt_shift_toggle

$ cat ~/.config/labwc/autostart
# Make `tmux` preserve dbus session address:
if [ -n "$TMUX" ]; then
  `foot --hold tmux attach` &
else
  `foot --hold tmux new-session -e DBUS_SESSION_BUS_ADDRESS=$DBUS_SESSION_BUS_ADDRESS` &
fi
# Add notifications and a session locker:
swaync &
swayidle -w \
    timeout 300 'swaylock -f -c 000000' \
    before-sleep 'swaylock -f -c 000000' >/dev/null 2>&1 &
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment