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

Implement keyboard-triggered shutdown #16

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ssokolow
Copy link

@ssokolow ssokolow commented Feb 27, 2024

This is a draft PR because I wasn't sure how you'd want to make this configurable, so the hotkey is currently hard-coded and I'll want to revise that, but it currently assigns Ctrl+Win+Alt+ScrollLock (i.e. Control+Command+Option+F14) to shut down the USB4VC.

I chose that key combo for three reasons:

  1. Scroll Lock is quite possible the most unused key on the entire keyboard, with Mac OS just using F14 as something a user can assign their own meaning to and X11-based desktops not even mapping it to the modifier flag anymore, let alone in combination with modifiers being held down.

    (On modern Windows, I believe it's only significant use is as something KVM switches can listen for a double-tap on, and, in my experience, USB-based ones that offer that feature (i.e. not the $20 USB/VGA ones off eBay you're likely to buy for your retro stuff) do it by listening for requests to change the Scroll Lock LED, not presses on the key itself.)

  2. It uses three modifier keys, which makes it even more unlikely to collide with anything.

  3. It's easy to remember because it's almost identical to the Mac OS "fast shutdown" key combo (Control+Command+Option+Power or Control+Command+Option+Eject) and, for PC users, it's easy to remember because it's just "Use three fingers on your left hand to press the three modifier keys that are in a row, then tap Scroll Lock".

However, if anyone has a problem with it that I'm missing, I have no problem with a different default.

(Avoids the need to touch the USB4VC under normal operation in most
cases, mitigating the lack of a case to protect from ESD.)
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

Successfully merging this pull request may close these issues.

1 participant