https://wiki.alpinelinux.org/w/api.php?action=feedcontributions&user=Myles&feedformat=atomAlpine Linux - User contributions [en]2024-03-29T12:05:17ZUser contributionsMediaWiki 1.40.0https://wiki.alpinelinux.org/w/index.php?title=Desktop_environments_and_Window_managers&diff=21504Desktop environments and Window managers2022-01-26T15:17:18Z<p>Myles: </p>
<hr />
<div>{{TOC right}}<br />
<br />
'''Alpine Linux''' has no official desktop. Older versions used Xfce, but now, all GUI and graphical interfaces are optional. many are available and is attempted to be listed below:<br />
<br />
== Desktop environments ==<br />
<br />
# [[Xfce]]<br />
# [[LXQt]]<br />
# [[KDE|KDE Plasma]]<br />
# [[Gnome]]<br />
# [[MATE]]<br />
<br />
== [https://en.wikipedia.org/wiki/Stacking_window_manager Stacking (floating) window managers] ==<br />
<br />
* X11:<br />
** [[Openbox]]<br />
<br />
* Wayland:<br />
** [[Wayfire]]<br />
<br />
== [https://en.wikipedia.org/wiki/Tiling_window_manager Tiling (dynamic) window managers] ==<br />
<br />
* X11:<br />
<br />
** [[Dwm]]<br />
<br />
** [[AwesomeWM|Awesome Window Manager]]<br />
<br />
* Wayland:<br />
<br />
** [[ Sway ]]<br />
<br />
<br />
== See Also ==<br />
* [[Installation]]<br />
* [[Alpine newbie]]<br />
* [[Post installation]]<br />
* [[Fonts]]<br />
<br />
[[Category:Desktop]]<br />
[[Category:Newbie]]</div>Myleshttps://wiki.alpinelinux.org/w/index.php?title=Sway&diff=21471Sway2022-01-11T08:01:14Z<p>Myles: </p>
<hr />
<div>[http://swaywm.org Sway] is a tiling [[Wayland]] compositor. It's a drop-in replacement for the i3 window manager.<br />
<br />
== Prerequisites ==<br />
<br />
First, install & configure eudev:<br />
<br />
<pre><br />
# apk add eudev<br />
# setup-udev<br />
</pre><br />
<br />
Then install graphics drivers appropriate to your system:<br />
<br />
<pre><br />
# apk add mesa-dri-gallium # gallium<br />
# apk add mesa-dri-classic # or classic<br />
</pre><br />
<br />
The following links contain guides for setting up the video stack.<br />
<br />
* [[Intel Video]]<br />
* [[Radeon Video]]<br />
<br />
Add yourself to the input and video groups:<br />
<br />
<pre><br />
# adduser $USER input<br />
# adduser $USER video<br />
</pre><br />
<br />
You have to log out and back in for this to take effect. <br />
<br />
Install some TTF fonts:<br />
<br />
<pre><br />
# apk add ttf-dejavu<br />
</pre><br />
<br />
Since sway 1.6.1 (more specifically, since wlroots 0.14), you need to set up libseat backend if you wish to run sway directly (without nesting it in another wayland compositor). To do that, choose one of the following methods:<br />
<br />
<dl><br />
<br />
<dt>seatd daemon</dt><br />
<dd><br />
<pre><br />
# apk add seatd<br />
# rc-update add seatd<br />
# rc-service seatd start<br />
# adduser $USER seat<br />
</pre><br />
<br />
If you are already logged in as a $USER, you will need to relogin.<br />
</dd><br />
<br />
<dt>seatd-launch</dt><br />
<dd><br />
<pre><br />
# apk add seatd-launch<br />
</pre><br />
<br />
When starting sway, you will need to prefix invocation with <code>seatd-launch</code>. <br />
Note: <code>seatd-launch</code> is a suid binary, so it might be wise to use one of the other methods from a security perspective.<br />
</dd><br />
<br />
<dt>elogind daemon</dt><br />
<dd><br />
<br />
<pre><br />
# apk add elogind polkit-elogind<br />
# rc-update add elogind<br />
# rc-service elogind start<br />
</pre><br />
<br />
Using <code>elogind</code> will automatically set the necessary permissions, so you can skip adding groups like <code>seat</code> and <code>video</code><br />
<br />
</dd><br />
<br />
</dl><br />
<br />
== Installation ==<br />
<br />
We can now install sway:<br />
<br />
<pre><br />
# apk add sway sway-doc<br />
# apk add \ # Install optional dependencies:<br />
xwayland \ # recommended for compatibility reasons<br />
foot \ # default terminal emulator<br />
dmenu \ # default application launcher<br />
swaylock \ # lockscreen tool<br />
swayidle # idle management (DPMS) daemon<br />
</pre><br />
<br />
== Running Sway ==<br />
<br />
{{Note|<br />
Skip setting XDG_RUNTIME_DIR if you are using elogind }}<br />
<br />
To run sway, first set XDG_RUNTIME_DIR to a suitable location (e.g. /tmp). Install & configure elogind to skip this step. Then run sway from the Linux console:<br />
<br />
<pre><br />
$ XDG_RUNTIME_DIR=/tmp sway<br />
</pre><br />
<br />
(if you run sway with seatd-launch, you will need to use <code>$ XDG_RUNTIME_DIR=/tmp seatd-launch sway</code>)<br />
<br />
See the [https://wiki.alpinelinux.org/wiki/Wayland Wayland] page for a permanent configuration<br />
<br />
{{Note|<br />
swaylock needs to be able to read your <code>/etc/shadow</code> file to be able to validate your password<br />
}}<br />
<br />
== Configuration and Usage ==<br />
<br />
An example config is provided at <code>/etc/sway/config</code>. Copy it to <code>~/.config/sway/config</code> and read through it to learn the default keybindings.<br />
<br />
For additional information, start at <code>man 5 sway</code> and read the [https://github.com/swaywm/sway/wiki upstream FAQ].<br />
<br />
[[Category:Desktop]]</div>Myleshttps://wiki.alpinelinux.org/w/index.php?title=Sway&diff=21470Sway2022-01-11T07:59:18Z<p>Myles: </p>
<hr />
<div>[http://swaywm.org Sway] is a tiling [[Wayland]] compositor. It's a drop-in replacement for the i3 window manager.<br />
<br />
== Prerequisites ==<br />
<br />
First, install & configure eudev:<br />
<br />
<pre><br />
# apk add eudev<br />
# setup-udev<br />
</pre><br />
<br />
Then install graphics drivers appropriate to your system:<br />
<br />
<pre><br />
# apk add mesa-dri-gallium # gallium<br />
# apk add mesa-dri-classic # or classic<br />
</pre><br />
<br />
The following links contain guides for setting up the video stack.<br />
<br />
* [[Intel Video]]<br />
* [[Radeon Video]]<br />
<br />
Add yourself to the input and video groups:<br />
<br />
<pre><br />
# adduser $USER input<br />
# adduser $USER video<br />
</pre><br />
<br />
You have to log out and back in for this to take effect. <br />
<br />
Install some TTF fonts:<br />
<br />
<pre><br />
# apk add ttf-dejavu<br />
</pre><br />
<br />
Since sway 1.6.1 (more specifically, since wlroots 0.14), you need to set up libseat backend if you wish to run sway directly (without nesting it in another wayland compositor). To do that, choose one of the following methods:<br />
<br />
<dl><br />
<br />
<dt>seatd daemon</dt><br />
<dd><br />
<pre><br />
# apk add seatd<br />
# rc-update add seatd<br />
# rc-service seatd start<br />
# adduser $USER seat<br />
</pre><br />
<br />
If you are already logged in as a $USER, you will need to relogin.<br />
</dd><br />
<br />
<dt>seatd-launch</dt><br />
<dd><br />
<pre><br />
# apk add seatd-launch<br />
</pre><br />
<br />
When starting sway, you will need to prefix invocation with <code>seatd-launch</code>. <br />
Note: <code>seatd-launch</code> is a suid binary, so it might be wise to use one of the other methods from a security perspective.<br />
</dd><br />
<br />
<dt>elogind daemon</dt><br />
<dd><br />
<br />
<pre><br />
# apk add elogind polkit-elogind<br />
# rc-update add elogind<br />
# rc-service elogind start<br />
</pre><br />
<br />
Using <code>elogind</code> will automatically set the necessary permissions, so you can skip adding groups like <code>seat</code> and <code>video</code><br />
<br />
</dd><br />
<br />
</dl><br />
<br />
== Installation ==<br />
<br />
We can now install sway:<br />
<br />
<pre><br />
# apk add sway sway-doc<br />
# apk add \ # Install optional dependencies:<br />
xwayland \ # recommended for compatibility reasons<br />
foot \ # default terminal emulator<br />
dmenu \ # default application launcher<br />
swaylock \ # lockscreen tool<br />
swayidle # idle management (DPMS) daemon<br />
</pre><br />
<br />
== Running Sway ==<br />
<br />
{{Note|<br />
You can skip this step if you are using elogind }}<br />
<br />
To run sway, first set XDG_RUNTIME_DIR to a suitable location (e.g. /tmp). Install & configure elogind to skip this step. Then run sway from the Linux console:<br />
<br />
<pre><br />
$ XDG_RUNTIME_DIR=/tmp sway<br />
</pre><br />
<br />
(if you run sway with seatd-launch, you will need to use <code>$ XDG_RUNTIME_DIR=/tmp seatd-launch sway</code>)<br />
<br />
See the [https://wiki.alpinelinux.org/wiki/Wayland Wayland] page for a permanent configuration<br />
<br />
{{Note|<br />
swaylock needs to be able to read your <code>/etc/shadow</code> file to be able to validate your password<br />
}}<br />
<br />
== Configuration and Usage ==<br />
<br />
An example config is provided at <code>/etc/sway/config</code>. Copy it to <code>~/.config/sway/config</code> and read through it to learn the default keybindings.<br />
<br />
For additional information, start at <code>man 5 sway</code> and read the [https://github.com/swaywm/sway/wiki upstream FAQ].<br />
<br />
[[Category:Desktop]]</div>Myles