Crates.io | winlock |
lib.rs | winlock |
version | 0.1.0 |
source | src |
created_at | 2023-06-14 16:49:55.139561 |
updated_at | 2023-06-14 16:49:55.139561 |
description | A utility to customize the keyboard shortcut for session locking on Windows. |
homepage | |
repository | https://github.com/yehuthi/winlock |
max_upload_size | |
id | 890331 |
size | 31,017 |
A utility to customize the keyboard shortcut for session locking on Windows.
winlock -d # Disables the lock screen (and Win+L with it)
winlock -r # Restores the lock screen (and Win+L with it)
winlock -cwk j # Sets a shortcut Ctrl+Win+J to lock the screen (Win+L still functional)
winlock -drcwk j # Replaces Win+L with Ctrl+Win+J
winlock --help # Describes usage with more detail
Note: experimental, subject to change.
To exit gracefully send an interrupt signal (press Ctrl+C to the program). Ungraceful exits (e.g. process termination) will impede the -r
flag from functioning.
1 My own reason for making this is wanting to use Win+L inside a Windows-hosted virtual-machine (in my i3 config, where such bindings are popular and very handy). Its elevated priority means that even when the virtual-machine captures the button press, Windows does too and simultaneously locks the host screen.