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

support for locking terminal #10

Open
jonassmedegaard opened this issue May 7, 2012 · 4 comments
Open

support for locking terminal #10

jonassmedegaard opened this issue May 7, 2012 · 4 comments
Assignees

Comments

@jonassmedegaard
Copy link

Would be cool if possible to password-protect, similar to xscreensaver-command -lock.

Perhaps integrate with vlock?

@brunobraga
Copy link
Owner

This is a great idea.... It comes down to the screensaver interaction with the keyboard... my initial thoughts were to, somehow (and for those who want it), run in background and start if the terminal stays idle for N minutes... then, getting out of it would be by hitting any key instead of ctrl+C, with the plus option of locking you've just said.

I was, however, planning to minimize package dependencies for better platform compatibility, and release plugins that could be platform dependent. This is still a work-in-progress... plan to release a first plugin by next month.

What do you reckon? A plugin to add such feature, or perhaps write the vlock clone in pure python?

@jonassmedegaard
Copy link
Author

On 12-05-07 at 06:15pm, Bruno Braga wrote:

This is a great idea.... It comes down to the screensaver interaction
with the keyboard... my initial thoughts were to, somehow (and for
those who want it), run in background and start if the terminal stays
idle for N minutes... then, getting out of it would be by hitting any
key instead of ctrl+C, with the plus option of locking you've just
said.

I was, however, planning to minimize package dependencies for better
platform compatibility, and release plugins that could be platform
dependent. This is still a work-in-progress... plan to release a first
plugin by next month.

What do you reckon? A plugin to add such feature, or perhaps write the
vlock clone in pure python?

Great that you have it on your radar. Sorry, my skills are in other
areas, so I cannot really help much with implementation details.

What do you mean by "hitting any key instead of ctrl+C"? It sure would
need to grab the CTRL+C too, or the very point of "locking" would be
lost, no?

  • Jonas

  • Jonas Smedegaard - idealist & Internet-arkitekt

  • Tlf.: +45 40843136 Website: http://dr.jones.dk/

    [x] quote me freely [ ] ask before reusing [ ] keep private

@brunobraga
Copy link
Owner

On Tue, May 8, 2012 at 7:58 PM, Jonas Smedegaard <
[email protected]

wrote:

Great that you have it on your radar. Sorry, my skills are in other
areas, so I cannot really help much with implementation details.

No worries!

What do you mean by "hitting any key instead of ctrl+C"? It sure would
need to grab the CTRL+C too, or the very point of "locking" would be
lost, no?

Just that now Ctrl+C is the only way to interrupt the program (or, more
obviously if you close the terminal window, or shutdown the machine)... by
enabling key events, any key pressed or mouse movement could be considered
to terminate the screensaver, just as it is in the graphical ones.

@EddieDover
Copy link
Collaborator

PR #61 adds the proper hooks to make something like this viable. I'll investigate it in a future feature branch.

@EddieDover EddieDover self-assigned this Jan 21, 2023
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

3 participants