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

swaylock: capslock indicator is unhelpful #2788

Closed
colemickens opened this issue Oct 8, 2018 · 5 comments · Fixed by #3367
Closed

swaylock: capslock indicator is unhelpful #2788

colemickens opened this issue Oct 8, 2018 · 5 comments · Fixed by #3367
Labels
enhancement New feature or incremental improvement

Comments

@colemickens
Copy link
Contributor

"My friend" types his password with the Caps Lock activated. When he locks his screen and hits 'Caps Lock', the 'Caps Lock' text shows up.

Unfortunately, this text appears in the same way, with the same duration, regardless of if it is being enabled or disabled. Meaning that the user doesn't know if the next keystroke will be capitalized or not, until they've already hit the key and then see if it still says Caps Lock (meaning it was just enabled), or if the text has gone away (because it was just disabled).

I propose one of the following:

  • be more explicit -- "Caps Lock ON" that persists, with "Caps Lock OFF" that displays when disabling, until next key press. Probably the smallest UX change, but I guess it leaks a tiny bit extra additional information to any potential shoulder-surfers
  • allow users, such as my friend, to disable the Caps Lock text indicator, and instead do something like --indicator-ring-caps-lock to be able to change the ring color to indicate that Caps lock is or isn't enabled (this is more a feature request, I guess, though...)
@ddevault
Copy link
Contributor

ddevault commented Oct 8, 2018

How about both?

@colemickens
Copy link
Contributor Author

Both would be great too.

I tried peeking at the code, I see the switch statement, but it seems like it shouldn't be showing "Caps Lock" when it has just been disabled, unless there is a bug that causes the xkb->caps_lock to not be updated ahead of the switch? I also see what looks like code to specifically handle damaging/redraw when it's toggled. I'm probably missing some pertinent details. Please advise if you want help fixing/adding this, or ignore me if you or someone else can handle it.

@ddevault
Copy link
Contributor

ddevault commented Oct 8, 2018

I don't know the answer to these questions. As the person who most recently looked at this code, I'd wager you as the expert.

@emersion emersion added the enhancement New feature or incremental improvement label Oct 8, 2018
@progandy
Copy link
Contributor

Out of security considerations, i3lock went for not displaying the modifier status at all before the password entry is complete. The list of enabled modifiers is only displayed when the user is notified about a wrong password. Is that something sway should do as well?

i3/i3lock#5 (comment)

@ddevault
Copy link
Contributor

Those security considerations are pretty weak but I'm not opposed to the idea

rbnis added a commit to rbnis/sway that referenced this issue Jan 10, 2019
Implements customization for the indicator as proposed in swaywm#2788 with comments from swaywm#3367 in mind.
The default behaviour does not change exept for the caps lock text color.
rbnis added a commit to rbnis/sway that referenced this issue Jan 10, 2019
Implements customization for the indicator as proposed in swaywm#2788 with comments from swaywm#3367 in mind.
The default behaviour does not change exept for the caps lock text color.
rbnis added a commit to rbnis/sway that referenced this issue Jan 10, 2019
Implements customization for the indicator as proposed in swaywm#2788 with comments from swaywm#3367 in mind.
The default behaviour does not change exept for the caps lock text color.
RedSoxFan pushed a commit that referenced this issue Jan 10, 2019
Implements customization for the indicator as proposed in #2788 with comments from #3367 in mind.
The default behaviour does not change exept for the caps lock text color.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or incremental improvement
Development

Successfully merging a pull request may close this issue.

4 participants