浏览代码

Add in docs and explanation

Celly 5 年之前
父节点
当前提交
602a09d68c
共有 1 个文件被更改,包括 27 次插入2 次删除
  1. 27 2
      README.md

+ 27 - 2
README.md

@@ -1,2 +1,27 @@
-# transparent-xcursor
-A transparent xcursor cursor  
+# Transparent (hidden) cursor for X11 / Wayland
+
+#### Why?
+
+While trying to hide cursors for a kiosk in the latest Raspbian Buster, all my old tricks didn't work. This was mainly due to it using Wayland. Wayland doesn't have the `-nocursor` option that X does.
+
+Any hoo, I have never loved the old solutions I used anyways, since they requires addition software (unclutter) or, moving the mouse to 0,0 (which left 1 px showing).. Or, adding in some css, which chromium seems to break on occasion.
+
+#### How?
+
+Download the `transparent` file and overwrite any pointer file you want to hide. In the case of Wayland on Buster that file is:
+
+```
+/usr/share/icons/Adwaita/cursors/left_ptr
+```
+
+This file was generated with the `xcursorgen` command. You can duplicate the creation by running:
+
+```
+xcursorgen transparent.cfg transparent
+```
+
+or, in the case of the `left_ptr` file:
+
+```
+xcursorgen transparent.cfg left_ptr
+```