Comments (9)
I usually use Ctrl-J to validate something, and would like to have that feature in i3lock also.
I think this captures the problem perfectly: everybody would want something else. However, we don't want a generic binding configurability in i3lock because it would make it a whole lot more complex and therefore potentially unsafe.
IMHO you'd be best served by implementing this as a local patch.
from i3lock.
I don't use i3lock, but I could see why the user base would consider this feature valuable by giving i3lock a "terminal" feel. Ctrl-j will enter a password that you enter from a terminal, for instance.
As for this being a gateway to bindings in i3lock, I don't think that would be the case. However, it would be a gateway to supporting any of the emacs-based terminal commands (such as ctrl-h for backspace, ctrl-u for kill line) which might be complicated and is definitely would be an increase of scope for i3lock. I'm not sure if there is a library that already handles that kind of user input but there might be.
I don't feel strongly either way about this, however. i3lock would be very easy to fork and make your own project out of with more scope.
from i3lock.
everybody would want something else
Yes maybe, but here, C-j is not really a user-special-case..
In almost every terminal program, C-j is handled as Enter
As we don't need readline abilities (like moving the cursor, etc) but only key inputs then Enter, I don't think that multiple ways to type "Enter" is too much.
I'm I clear enough?
from i3lock.
Now that I think about it, I can't imagine this exploding into either bindings or readline. If you make ctrl-j work however, people will expect ctrl-h for backspace as well.
Maybe @Airblader is not aware that this is a widely used standard in interactive unix programs and text editors (maybe from before there was an enter key or something? I don't know.).
from i3lock.
Chiming in here. I think that, ctrl-u would also be expected to work, if crtl-j is supported. ctrl-u deletes the whole line before the cursor. Thus I think it should delete the whole passphrase that was entered until that point, because the cursor is always at the end.
from i3lock.
So Ctrl+J now already went to Ctrl+J, Ctrl+U, Ctrl+H in less than 24 hours. See my point?
from i3lock.
Ctrl+U is already in the code. I know that every feature adds unwanted complexity to i3lock. But I think in this case a few lines to add support for the Ctrl+J and Ctrl+H are not that complex. To me adding them now seems like a "bug" fix, because the three keys form a whole, and Ctrl+U is alone at the moment. One option would be to remove Ctrl+U, however that would break someones workflow. So I propose that these minor features should be added.
from i3lock.
Given that we already support the keypad return key as an alternative to return, I think adding ctrl+j would be okay — it should be just another case statement.
from i3lock.
You did it, thanks all!
from i3lock.
Related Issues (20)
- Please provide an option to lock the screen only a while after blanking HOT 4
- i3lock doesn't accept correct password after entering incorrect ones. HOT 4
- Mod-key reset after screen lock. HOT 4
- Non-standard License (not sure which SPDX identifier to use) HOT 3
- Please add functional for show layers (en,ru and etc) HOT 2
- Option to compile i3lock without PAM on Linux HOT 1
- Pam interaction when time-limit on logins is configured HOT 2
- Add Space Mode HOT 2
- Better Computer Wake Handling. HOT 1
- Allow configuring of invalid password cooldown? HOT 5
- Feature Request: Keyboard Language In Password/Lock Screen HOT 2
- i3bar is shown in i3lock lock screen when it is positioned at the bottom with picom running HOT 3
- password unrecognized HOT 3
- [bug] background image rendering not taking screen rotation into account
- Custom password HOT 1
- lock circumvented (broken) when issuing setxkbmp and xkbcomp and fast typing HOT 8
- numlock indicator is unaesthetic and not useful - can't disable? HOT 2
- [bug] i3lock doesn't seem to register the first couple of keypresses of password HOT 6
- `i3lock` package from i3's official repos outdated (2.14) HOT 5
- i3lock is pausing for 30 seconds after verifying my password HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from i3lock.