Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stop cursor blinking after idling for x minutes #4628

Open
Tyriar opened this issue Aug 1, 2023 · 3 comments
Open

Stop cursor blinking after idling for x minutes #4628

Tyriar opened this issue Aug 1, 2023 · 3 comments

Comments

@Tyriar
Copy link
Member

Tyriar commented Aug 1, 2023

Context: #4082 (comment)

To solve the power problem, maybe we should just detect when the terminal is focused and idle as that's the main case I'm concerned about. Something like a setTimeout(2 * 60 * 1000) which clears on focus out and resets on any input. Let's tackle that separately to #4568 though

@Tyriar
Copy link
Member Author

Tyriar commented Aug 1, 2023

The IdleDetector API looks great for this, but it requires permission https://developer.chrome.com/articles/idle-detection/

@Tyriar
Copy link
Member Author

Tyriar commented Aug 1, 2023

It also can only be used on user activation

@jerch
Copy link
Member

jerch commented Aug 1, 2023

Yeah the IdleDetector API sounds too invasive, ppl would find many reasons not to allow that.

Would a heuristic respecting things like "not focused", "no mouse move for x seconds" or "no user input/write attempt for y seconds" do? This still would fail on ppl just sitting in front of the computer staring at the display, but imho the IdleDetector API would have the same issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants