Skip to content

Commit d09fd32

Browse files
committed
Enable mouse cursor hiding when idle
This lets the mouse cursor be initially hidden, appear when moved, and hidden again after 10 seconds of being idle. The timing is chosen so that the cursor is normally hidden, but stays visible for relatively long period should someone attach and use a mouse. We have been hiding idle cursors in the Play web app, but have found that the mouse needs to be moved once upon boot for the web app's logic to work, which leaves the cursor permanently visible in mouse free use. This seems to be a system/engine level issue, that we can not control from the web app. By moving mouse hiding to the OS we can also remove the complexity and event handling overhead from the web runtime.
1 parent c4c9593 commit d09fd32

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

application.nix

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,13 @@ rec {
141141

142142
defaultSession = sessionName;
143143
};
144+
# Hide mouse cursor when not in use
145+
services.unclutter-xfixes = {
146+
enable = true;
147+
timeout = 10;
148+
threshold = 1;
149+
extraOptions = [ "start-hidden" ];
150+
};
144151

145152
# Firewall configuration
146153
networking.firewall = {

controller/Changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
- kiosk: Add hotplugging support for HDMI screens
88
- os: Improve installation device selection
99
- os: Add end-to-end system tests
10+
- os: Hide mouse cursor when idle
1011
- controller: Enable spatial navigation using the arrow keys
1112
- controller: Add factory reset button to System Status page
1213
- controller: Add system switch calls to System Status page

0 commit comments

Comments
 (0)