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

Add option show input method information after idling / idle / afk #1084

Open
MrSauna opened this issue Jul 5, 2024 · 9 comments
Open

Add option show input method information after idling / idle / afk #1084

MrSauna opened this issue Jul 5, 2024 · 9 comments

Comments

@MrSauna
Copy link

MrSauna commented Jul 5, 2024

Summary

After getting away from keyboard I tend to forget which input method I was using. This can be solved by showing the input method information after idling. I would love to see this as a configuration options:

  • Show Input method information after idling
  • Idle delay

MacOS has implemented similar functionality which I've found to be useful in practice.

@rocka
Copy link
Member

rocka commented Jul 5, 2024

Just look at the tray icon, it shows the icon of activated input method.

Or you can turn on "Show Input Method Infomation when changing focus" under "Behavior" settings.

@MrSauna
Copy link
Author

MrSauna commented Jul 5, 2024

Just look at the tray icon, it shows the icon of activated input method.

That misses the part that makes the floating indicator good. You don't have to actively look for the input method information.

Or you can turn on "Show Input Method Infomation when changing focus" under "Behavior" settings.

That's different. This is not about switching anything. This is about a single input field with no changes in cursor focus happening.

This is about a single input focus having input method information appearing after idle time. This is an intuitive approach to keeping track of what input method you are using after AFK time. The intuitive part I'm speaking from experience after using such functionality on macos.

@wengxt
Copy link
Member

wengxt commented Jul 6, 2024

Please provide a screencast video on mac os to demostrate the feature.

@MrSauna
Copy link
Author

MrSauna commented Jul 6, 2024

Here's a screen recording of the feature on mac.

output.webm

Summary

  • start idling
  • 8 minutes pass by
  • indicator appears automatically

things to note:

  • Had not previously noticed but the popup even has an animation
  • the indicator stays on until user action

@rocka
Copy link
Member

rocka commented Jul 6, 2024

8 minutes, are you serious? I would consider it as a bug ...

@MrSauna
Copy link
Author

MrSauna commented Jul 6, 2024

Normal AFK is quite easily longer than 8 minutes. Go get coffee etc. But of course that should be configurable. First time measuring the delay and I'm a bit surprised it's that long myself. However, the 8 minute delay has worked quite well in practice at least for me.

@wengxt
Copy link
Member

wengxt commented Jul 6, 2024

Here's a screen recording of the feature on mac.
output.webm

Summary

* start idling

* 8 minutes pass by

* indicator appears automatically

things to note:

* Had not previously noticed but the popup even has an animation

* the indicator stays on until user action

After 8 minutes, what triggers the popup? I bet it's not a keyboard press.. is it mouse pointer movement?

@MrSauna
Copy link
Author

MrSauna commented Jul 7, 2024

It's just the idle time. Nothing from user is happening for the 8 minutes or at the 8 minute mark: no keyboard presses, no pointer movement, no ACPI type events.

It's a simple timer resetting every time user does significant actions and if it gets to the timeout it shows the popup.

I didn't test the mac implementation in depth but, I think mouse movement shouldn't reset such timer. Clicking mouse and typing should.

@wengxt
Copy link
Member

wengxt commented Jul 9, 2024

It's just the idle time. Nothing from user is happening for the 8 minutes or at the 8 minute mark: no keyboard presses, no pointer movement, no ACPI type events.

It's a simple timer resetting every time user does significant actions and if it gets to the timeout it shows the popup.

I didn't test the mac implementation in depth but, I think mouse movement shouldn't reset such timer. Clicking mouse and typing should.

On linux, usually moving mouse will light up the screen if screen is automatically closed. I would assume mac will do the same.

I mean yeah, it's possible to implement a idle monitor and display input method information when the system is not idle anymore.

org.freedesktop.ScreenSaver, X11 SYNC extension, and https://wayland.app/protocols/kde-idle are some methods that can be used.

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

No branches or pull requests

3 participants