summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormh166 <[email protected]>2021-09-15 09:42:36 +0200
committerGitHub <[email protected]>2021-09-15 10:42:36 +0300
commit4dd3e8543fab7e01d5cdac638dfb9f285e47e9d2 (patch)
tree0858444a1923d4aeef638d9a74b7a424018616d8
parent8f11fa3b91921a6037b56ead0853928b1404de0f (diff)
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.
-rw-r--r--web/kvm/navbar-shortcuts.pug14
1 files changed, 12 insertions, 2 deletions
diff --git a/web/kvm/navbar-shortcuts.pug b/web/kvm/navbar-shortcuts.pug
index f60df5ae..b616b285 100644
--- a/web/kvm/navbar-shortcuts.pug
+++ b/web/kvm/navbar-shortcuts.pug
@@ -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}