Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 2444

Raspberry Pi OS • Re: [open] How to hide Mouse Cursor in Wayland?

$
0
0
Hi,

There is a nice solution without playing with cursors: https://raspberrypi.stackexchange.com/a/145390/112073

But link to package seems to be down (server problem?), so quickest would be build this extra plugins by yourself.

Here quick howto:
  1. git clone repo: https://github.com/WayfireWM/wayfire-plugins-extra
  2. apt install few things:

    Code:

    $ sudo apt install libglibmm-2.4-dev libglm-dev libxml2-dev libpango1.0-dev libcairo2-dev wayfire-dev libwlroots-dev libwf-config-dev meson
  3. go into the cloned repo dir and run meson & ninja (without install) almost like described on that repo

    Code:

    $ meson build --prefix=/usr --buildtype=release$ ninja -C build
  4. Copy 2 files, one is lib....so with plugin, and another is config for it:

    Code:

    $ sudo cp build/src/libhide-cursor.so /usr/lib/aarch64-linux-gnu/wayfire/$ sudo cp metadata/hide-cursor.xml /usr/share/wayfire/metadata/
  5. Enable plugin(s) in wayfire.ini, edit file your fav text editor my is vim

    Code:

    vi ~/.config/wayfire.ini
  6. check if you have section core if not then add it with option plugins, add to plugins hide-cursor, don't forget about autostart (if you need it for kiosk :) )

    Code:

    [core]plugins = autostart hide-cursor
  7. Works, just reboot pi. if you move cursor it will show-up for 2s then hide again. There seems be some options to config it, you can either edit time in xml file or probably somehow in wayfire.ini (but I don't know)

Statistics: Posted by saper_2 — Tue Jan 02, 2024 6:08 pm



Viewing all articles
Browse latest Browse all 2444

Trending Articles