Xfce4 & Wayland tips

Those of us who use Xfce4 with Wayland, let’s share some tips to fellow users.

Enable touchpad natural scrolling

Looks like many touchpad settings (like natural scrolling) depends on the wayland compositor.
This fix works with labwc.

Add

  <libinput>
    <device>
      <naturalScroll>yes</naturalScroll>
    </device>
  </libinput>

right before the </labwc_config> line in the end of the file.

Note that this may work with a mouse too, but currently I can’t test it. If not, probably there’s a simple way to fix it - see the manual page:

man labwc-config

Not brave enough yet :fearful: but thank you for this :+1:

Fear not, Xfce with labwc is easy.
And the bonus: it is quite fast!

Maybe I’ll give it a try once the :soccer_ball: World Cup is over and releases me from its clammy grip on my free time.

I hear you!

I believe it will.

You should have a /usr/share/doc/labwc/rc.xml.all file; it’s a complete rc.xml with all the options and annotations. The libinput section is pretty extensive, and (as I understand it) separate libinput sections can be made for any device listed with:

libinput list-devices

Here is mine for the touchpad. I usually have a mouse attached, so I disable the touchpad when a mouse is attached:

  <libinput>
    <device category="DELL097A:00 04F3:30C4 Touchpad">
      <sendEventsMode>disabledOnExternalMouse</sendEventsMode>
      <naturalScroll>yes</naturalScroll>
      <leftHanded>no</leftHanded>
      <pointerSpeed></pointerSpeed>
      <accelProfile></accelProfile>
      <tap>yes</tap>
      <tapButtonMap></tapButtonMap>
      <tapAndDrag></tapAndDrag>
      <dragLock></dragLock>
      <middleEmulation>yes</middleEmulation>
      <disableWhileTyping>yes</disableWhileTyping>
    </device>
  </libinput>

You should be able to make a separate section for a mouse.

Just to add, for the command you mentioned above package libinput-tools is needed.

Just want to make sure that switching between Wayland and X is as simple as the Arch wiki seems to say. If so, it would be interesting to check it out. Looks like the in house XFCE compositor is in first stage alpha i.e. currently only useful for those who want to help out the developer by being guinea pigs.

True, the development with the official compositor for Xfce is still considered alpha quality.

But labwc has been around for quite a while, and it is updating rather frequently. Each update has made it better. I have been using it for a long time already without issues other than some features (that I’d rarely use) which are not yet implemented.

Actually, X with Xfce4 has had problems lately…

Thanks, I think I’ll give it a try.

Hope you’ll enjoy it!

I tried it last year, but when I noticed I could not use workspaces, I got back to X.

Here they seem to work, although I’m not using them much.