Skip to content
bakkeby edited this page Jul 1, 2024 · 2 revisions

This patch allows for the mouse cursor to automatically hide when the user uses the keyboard.

This gives behaviour similar to that what xbanish and unclutter offer.

When the mouse cursor is hidden it is placed in the top right corner of the active monitor.

The mouse cursor will be automatically restored when moved.

The functionality depends on additional libraries:

Arch

  • libxfixes
  • libxi

Ubuntu

  • libxfixes-dev
  • libxi-dev

Void Linux

  • libXfixes-devel
  • libXi-devel

The benefit of having this functionality integrated into the window manager is that it allows for a more seamless integration with operations involving the mouse.

For example MOD+left click to move or MOD+right click to resize a window will work even if the cursor is hidden, and it is fairly straightforward to integrate the warp patch so that the cursor will appear on the focused client when shown.

Download

Clone this wiki locally