<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.alpinelinux.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Billy</id>
	<title>Alpine Linux - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.alpinelinux.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Billy"/>
	<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/wiki/Special:Contributions/Billy"/>
	<updated>2026-05-04T00:47:23Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.40.0</generator>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=LabWC&amp;diff=22823</id>
		<title>LabWC</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=LabWC&amp;diff=22823"/>
		<updated>2022-12-29T20:07:47Z</updated>

		<summary type="html">&lt;p&gt;Billy: fixed the command line to make it work the old one was not working&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[https://labwc.github.io LabWC] is a stacking [[Wayland]] compositor. Although [https://github.com/labwc/labwc#1-what-is-this it wasn&#039;t intended like that], it can serve as a drop-in replacement for the [[Openbox]] window manager (the same way [[Sway]] is for [[I3wm]]).&lt;br /&gt;
&lt;br /&gt;
This wiki was written starting from a fresh install using the Alpine 3.16 x86 extended .iso. The steps begin from the first reboot after running setup-alpine and performing a sys install to disk. &lt;br /&gt;
&lt;br /&gt;
Many steps below were taken from the [https://wiki.alpinelinux.org/wiki/Sway wiki entry for installing Sway], as both are wlroots-based Wayland compositors. Another interesting page, because of the same reasons, is the [[River]] compositor&#039;s.&lt;br /&gt;
&lt;br /&gt;
== Prerequisites ==&lt;br /&gt;
{{Note|These steps posted as both Sway and LabWC prerequisites could be applied to almost all wlroots-based Wayland compositors.}}&lt;br /&gt;
&lt;br /&gt;
First, install &amp;amp; configure eudev:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# apk add eudev&lt;br /&gt;
# setup-devd udev&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then install the mesa gallium drivers:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# apk add mesa-dri-gallium&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The following links contain guides for setting up the video stack.&lt;br /&gt;
&lt;br /&gt;
* [[Intel Video]]&lt;br /&gt;
* [[Radeon Video]]&lt;br /&gt;
&lt;br /&gt;
Add yourself to the input and video groups:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# adduser $USER input&lt;br /&gt;
# adduser $USER video&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You have to log out and back in for this to take effect. &lt;br /&gt;
&lt;br /&gt;
Install some TTF fonts:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# apk add ttf-dejavu&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Since wlroots 0.14, you need to set up libseat backend if you wish to run labwc directly (without nesting it in another wayland compositor). To do that, [[Repositories#Enabling_the_community_repository|enable the community repository]] and choose one of the following methods:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;dl&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;dt&amp;gt;Option 1: seatd daemon (recommended)&amp;lt;/dt&amp;gt;&lt;br /&gt;
&amp;lt;dd&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# apk add seatd&lt;br /&gt;
# rc-update add seatd&lt;br /&gt;
# rc-service seatd start&lt;br /&gt;
# adduser $USER seat&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you are already logged in as a $USER, you will need to relogin.&lt;br /&gt;
&amp;lt;/dd&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;dt&amp;gt;Option 2: seatd-launch&amp;lt;/dt&amp;gt;&lt;br /&gt;
&amp;lt;dd&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# apk add seatd-launch&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When starting labwc, you will need to prefix invocation with &amp;lt;code&amp;gt;seatd-launch&amp;lt;/code&amp;gt;.  &lt;br /&gt;
Note: &amp;lt;code&amp;gt;seatd-launch&amp;lt;/code&amp;gt; is a suid binary, so it might be wise to use one of the other methods from a security perspective.&lt;br /&gt;
&amp;lt;/dd&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;dt&amp;gt;Option 3: elogind daemon&amp;lt;/dt&amp;gt;&lt;br /&gt;
&amp;lt;dd&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# apk add elogind polkit-elogind&lt;br /&gt;
# rc-update add elogind&lt;br /&gt;
# rc-service elogind start&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using &amp;lt;code&amp;gt;elogind&amp;lt;/code&amp;gt; will automatically set the necessary permissions, so you can skip adding groups like &amp;lt;code&amp;gt;seat&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;video&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/dd&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/dl&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
&lt;br /&gt;
We can now install labwc:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# apk add labwc labwc-doc&lt;br /&gt;
# apk add                \ # Install optional dependencies:&lt;br /&gt;
    xwayland             \ # recommended for compatibility reasons&lt;br /&gt;
    foot                 \ # default terminal emulator&lt;br /&gt;
    rofi                  \ # default application launcher (dmenu could be used instead)&lt;br /&gt;
    swaylock             \ # lockscreen tool&lt;br /&gt;
    swaybg               \ # wallpaper daemon&lt;br /&gt;
    swayidle               # idle management (DPMS) daemon&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note that almost all optional dependencies are the same than Sway&#039;s. Another interesting packages are specified into the [https://github.com/labwc/labwc#6-integrate project&#039;s README], as it can be [https://labwc.github.io/integration.html#waybar waybar] (included into the Alpine&#039;s repository) as navigation bar.&lt;br /&gt;
&lt;br /&gt;
== Running LabWC ==&lt;br /&gt;
&lt;br /&gt;
To run labwc, first set XDG_RUNTIME_DIR to a suitable location (e.g. create a .run folder in your home directory and set it to ~/.run). Then run labwc from the Linux console (dbus-launch is used because pipewire needs it, it is included in dbus-x11 and you may omit it):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ XDG_RUNTIME_DIR=~/.run dbus-launch labwc&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
(if you run labwc with seatd-launch, you will need to use &amp;lt;code&amp;gt;$ XDG_RUNTIME_DIR=~/.run dbus-launch seatd-launch labwc&amp;lt;/code&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
You can also create a simple alias in your shell rc file (e.g. .zshrc), like:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
alias labwcinit=&amp;quot;XDG_RUNTIME_DIR=~/.run dbus-launch seatd-launch labwc&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
See the [https://wiki.alpinelinux.org/wiki/Wayland Wayland] page for a permanent configuration (recommended).&lt;br /&gt;
&lt;br /&gt;
{{Note|&lt;br /&gt;
swaylock needs to be able to read your &amp;lt;code&amp;gt;/etc/shadow&amp;lt;/code&amp;gt; file to be able to validate your password&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
== Configuration and Usage ==&lt;br /&gt;
&lt;br /&gt;
LabWC aims to implement the [http://openbox.org/wiki/Help:Contents openbox 3.4] specification, so many things working in OpenBox should be compatible.&lt;br /&gt;
&lt;br /&gt;
Moreover, the project provides [https://github.com/labwc/labwc#4-configure examples for all the configuration files] and some themes, explaining where it must be located each one of them.&lt;br /&gt;
&lt;br /&gt;
For additional information, labwc [https://labwc.github.io/manual.html manpages] and [https://github.com/labwc/labwc/wiki wiki] can be consulted.&lt;br /&gt;
&lt;br /&gt;
[[Category:Desktop]]&lt;/div&gt;</summary>
		<author><name>Billy</name></author>
	</entry>
</feed>