Minimalistic Wayland windows manager

12 réponses [Dernière contribution]
grosbidepoilu
Hors ligne
A rejoint: 10/08/2023

https://github.com/labwc/labwc
Labwc - Wayland Compositor.
I want to try this windows manager, mais do not know if it is fully free software and is safe to install on my Trisquel PC.
Give me some advice please.

Magic Banana

I am a member!

I am a translator!

Hors ligne
A rejoint: 07/24/2010

It is distributed under the terms of the GNU GPL, which is a free software license: https://raw.githubusercontent.com/labwc/labwc/refs/heads/master/LICENSE

The easiest way to install that window manager on Trisquel 11 must be through that PPA (if you decide to trust it): https://launchpad.net/~samoilov-lex/+archive/ubuntu/labwc

To do so, here are the commands to execute in a terminal:
$ sudo add-apt-repository ppa:samoilov-lex/labwc
$ sudo apt update
$ sudo apt install labwc

grosbidepoilu
Hors ligne
A rejoint: 10/08/2023

thanks!

Avron

I am a translator!

Hors ligne
A rejoint: 08/18/2020

My suggestion would be to git clone labw, optionnally look at all the source files, install the dependencies from Trisquel repositories, disconnect from the network and then build labw. I would do that to avoid the risk that anything is downloaded during build. That way, yon only trust the source code.

The wayland window manager I want to try is dwl (from https://codeberg.org/dwl/dwl). I did git clone dwl and labw, the output of "wc -l **/*.c" is 18432 for labw and the output of "wc -l *.c" is 3233 for dwl. So perhaps labw is not that minimalistic :)

dwl is meant to be like dwm but for wayland. My primary reason for using dwm is not that it is minimalistic (but it is a nice bonus that the source code is in a single file of less than 2000 lines), but that I have exactly the same feeling like expressed by Dave Gauer at https://ratfactor.com/dwm2:

dwm puts windows exactly where I would have put them, but I don’t have to lift a finger. It’s like it was made specifically for me.

Ark74

I am a member!

I am a translator!

Hors ligne
A rejoint: 07/15/2009

You can rebuild using the trisquel-builder schroot jails along with sbuild, and make sure there is no outside network connection.

Maybe something like:

sbuild --no-run-lintian -j $(nproc) -v --dist aramo --arch amd64 -A --build-dep-resolver=aptitude *.dsc --starting-build-commands="rm /etc/resolv.conf"

Where *.dsc would target the labwc_0.6.5-1~jammy.dsc file in case you are building for aramo.

That way you don't get build libraries on your system, and you can test it out :)

andyprough
Hors ligne
A rejoint: 02/12/2015

>"dwl is meant to be like dwm but for wayland"

I've thought about trying dwl as well, but my experiences with Wayland this year have been unsatisfactory. There are several things, such as VLC's global keyboard shortcuts, which simply do not work in a Wayland session. If everything would work as it does in Xorg then I would be fine with switching over, as Wayland's memory usage and CPU usage are about the same as Xorg's. But there's enough things that don't work at all that I found myself having to leave the Wayland session on a daily basis to get my work done.

That being said, if you do try dwl I hope you will write us a detailed review.

Avron

I am a translator!

Hors ligne
A rejoint: 08/18/2020

my experiences with Wayland this year have been unsatisfactory. There are several things, such as VLC's global keyboard shortcuts, which simply do not work in a Wayland session. If everything would work as it does in Xorg then I would be fine with switching over

What VLC shortcuts are you using? With which environment did you try this with wayland? (I almost never watch videos so I probably have not tried VLC with wayland so far). Another problem I could not solve in wayland (experienced with Gnome and Plasma) is that autotype does not work with keepassxc. The abrowser add-on for keepassxc works but it requires entries to be different from what I have stored, and I probably have more than 200 passwords, so it is a bit of a hassle.

if you do try dwl I hope you will write us a detailed review.

Sure, I will. The first thing I need to figure out is how to adapt it to my keyboard layout (most problematic usually: keybindings using digits).

nparafe

I am a member!

Hors ligne
A rejoint: 10/20/2020

Using Debian (as close as FSDG compliant as it gets: without non-free firmware[1] and with icecat[2], icedove[3] and linux-libre from freesh[4]) I have installed a really minimal wayland Gnome (Bellow 300Mb). To achieve it I haven't installed GDM and I am starting gnome from tty[5].

[1]: https://trisquel.info/en/forum/installing-debian-without-non-free-firmware#comment-176132
[2]: https://icecatbrowser.org/
[3]: https://trisquel.info/en/forum/abrowser-other-distros#comment-177841 <= in bookworm change abrowser to icedove and ecne-updates to aramo-updates
[4]: https://www.fsfla.org/ikiwiki/selibre/linux-libre/freesh.en.html
[5]: https://totsipaki.net/shaarli/shaare/WVOKng

andyprough
Hors ligne
A rejoint: 02/12/2015

You can do the same with Trisquel Mini. I've posted instructions on here about how to start desktop environments in Trisquel from the tty, it should be able to be applied to starting Gnome: https://trisquel.info/en/forum/running-xorg-regular-user-trisquel-11

I think with Trisquel Mini you could get a similar startup using 300mb ram or less, depending on how much you have Gnome blinged out.

nparafe

I am a member!

Hors ligne
A rejoint: 10/20/2020

You can achieve minimal ram consumption with various X configs. My reply was about the OP and subject of this thread: "Minimalistic Wayland windows manager"

andyprough
Hors ligne
A rejoint: 02/12/2015

Good point. How do you start Gnome Wayland from the tty? Is it in one of the links you posted? I don't think I've tried that. I'm sure it could be gotten to work on Trisquel or Trisquel Mini though.

Edit: Ok, I see it in that last link you posted. Interesting!

Edit2: Yes, it works on Trisquel, I tried it, you can get to where you can log-in to Gnome wayland from the tty on Trisquel 11. Follow the first 7 steps from here in order to be able to login to a desktop from the tty on Trisquel: https://trisquel.info/en/forum/running-xorg-regular-user-trisquel-11. And then use the first 3 steps from here in order to install and use a minimal Gnome wayland: https://totsipaki.net/shaarli/shaare/WVOKng

You'll notice in the attached screenshot that I'm using mutter - mutter is the Gnome wayland compositor.

The command to start Gnome wayland from the tty, 'MOZ_ENABLE_WAYLAND=1 QT_QPA_PLATFORM=wayland XDG_SESSION_TYPE=wayland dbus-run-session gnome-shell', is too long, so I created a 'startgnome' alias in ~/.bashrc:
alias startgnome='MOZ_ENABLE_WAYLAND=1 QT_QPA_PLATFORM=wayland XDG_SESSION_TYPE=wayland dbus-run-session gnome-shell'
The alias works great to start up the Gnome wayland session.

Screenshot from 2024-12-05 22-44-12.png
nparafe

I am a member!

Hors ligne
A rejoint: 10/20/2020

It is great you have tested it and we now know that this method also works in Trisquel.
Why the steps 1-7 though? You do not need anything other than installing a base system with the absolute minimum packages (e.g. using the expert installer). In your link you mention xfce, xorg, etc which are irreverent.

andyprough
Hors ligne
A rejoint: 02/12/2015

Those steps are for someone who uses the full installation method. I prefer using the full installation method and then removing parts I don't want, such as the login manager. I want other full desktop environments I can log into from the tty, such as Mate, and window managers such as DWM. I don't use Gnome Wayland for anything, just installed it out of curiosity. Xorg is still my preferred display manager by far.