Add tooltips to SysRq shortcuts (#64)

Provide a helpful tooltip of what that SysRq shortcut does. As most people don't often (if ever) use SysRq keys, this will be a handy quick reference. Further details can still be gathered from the linked kernel.org article.
This commit is contained in:
mh166 2021-09-15 09:42:36 +02:00 committed by GitHub
parent 8f11fa3b91
commit 4dd3e8543f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,3 +1,13 @@
-
sysrq = {
"R": "Turn off keyboard raw mode. Set it to XLATE.",
"E": "Send a SIGTERM to all processes, except for init.",
"I": "Send a SIGKILL to all processes, except for init.",
"S": "Attempt to sync all mounted filesystems.",
"U": "Attempt to remount all mounted filesystems read-only.",
"B": "Immediately reboot the system without syncing or unmounting your disks."
}
li(class="right")
a(class="menu-button" href="#") Shortcuts
div(data-dont-hide-menu class="menu")
@ -33,5 +43,5 @@ li(class="right")
hr
div(class="buttons")
div(class="buttons-row")
each key in ["R", "E", "I", "S", "U", "B"]
button(data-shortcut=`AltLeft PrintScreen Key${key}` class="row16") #{key}
each val, key in sysrq
button(data-shortcut=`AltLeft PrintScreen Key${key}` class="row16" title=`${val}`) #{key}