Skip to content

Instantly share code, notes, and snippets.

@adnan360
Last active October 13, 2023 22:58
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save adnan360/193e7ba589e93ef9b9c6c7dc1946a510 to your computer and use it in GitHub Desktop.
Save adnan360/193e7ba589e93ef9b9c6c7dc1946a510 to your computer and use it in GitHub Desktop.
Basic Guide on how to install and use Weston (Wayland) on Void Linux (without SystemD)

How to Install and Use Weston (Wayland) on Void Linux (without SystemD)

sudo xbps-install weston
sudo usermod -a -G weston-launch `whoami`

Reboot to update the group assignment.

Now we can prepare the config. Let's create the file:

mkdir -p ~/.config
nano ~/.config/weston.ini

Then put something like this below. Change as you need.

[core]
xwayland=true

[keyboard]
keymap_layout=gb

[output]
name=LVDS1
mode=preferred
#mode=1680x1050
#transform=90

[launcher]
icon=/usr/share/icons/gnome/24x24/apps/utilities-terminal.png
path=/usr/bin/weston-terminal

[launcher]
icon=/usr/share/icons/hicolor/24x24/apps/firefox.png
path=/usr/bin/firefox

Then run from a tty:

weston-launch

If any error is shown for XDG_RUNTIME_DIR, then run:

mkdir -p /tmp/westontmp
export XDG_RUNTIME_DIR=/tmp/westontmp

Press Ctrl+Alt+Backspace to logout. Super+Tab to switch between apps. Other basic keyboard shortcuts here.

Ref:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment