One-KVM/web/kvm/navbar-shortcuts.pug
2025-01-30 10:34:36 +02:00

84 lines
3.2 KiB
Plaintext

li.right#shortcuts-dropdown
a.menu-button(href="#") Shortcuts
.menu#shortcuts-menu
.text
b Quick keyboard shortcuts#[br]
sub Also see #[i System → Show keyboard]
hr
.buttons
.buttons-row
button.row50(data-force-hide-menu data-shortcut="CapsLock")
| • Caps Lock  
img.inline-lamp-small.hid-keyboard-caps-led.led-gray(src=`${svg_dir}/led-square.svg`)
button.row50(data-force-hide-menu data-shortcut="MetaLeft") • Left Win
hr
.buttons-row
button.row50(data-force-hide-menu data-shortcut="AltLeft ShiftLeft") • Alt+Shift
button.row50(data-force-hide-menu data-shortcut="ControlLeft KeyW") • Ctrl+W
.buttons-row
button.row50(data-force-hide-menu data-shortcut="ControlLeft ShiftLeft") • Ctrl+Shift
button.row50(data-force-hide-menu data-shortcut="AltLeft Tab") • Alt+Tab
.buttons-row
button.row50(data-force-hide-menu data-shortcut="ShiftLeft ShiftRight") • Shift+Shift
button.row50(data-force-hide-menu data-shortcut="AltLeft Enter") • Alt+Enter
.buttons-row
button.row50(data-force-hide-menu data-shortcut="MetaLeft Space") • Win+Space
button.row50(data-force-hide-menu data-shortcut="AltLeft F4") • Alt+F4
hr
.buttons-row
button.row50(data-force-hide-menu data-shortcut="ControlLeft AltLeft F1") • Ctrl+Alt+F1
button.row50(data-force-hide-menu data-shortcut="MetaLeft KeyL") • Win+L
.buttons-row
button.row50(data-force-hide-menu data-shortcut="ControlLeft AltLeft F2") • Ctrl+Alt+F2
button.row50(data-force-hide-menu data-shortcut="PrintScreen") • Print Screen
hr
.buttons-row
button.row50(data-force-hide-menu data-shortcut="ControlLeft AltLeft Delete") • Ctrl+Alt+Del
button.row50(data-force-hide-menu data-shortcut="Power") • Power
hr
.text
| &darr; &bull; Alt+SysRq+... <sup><i>linux magic
| #[a(target="_blank" href="https://www.kernel.org/doc/html/latest/admin-guide/sysrq.html") help]</i></sup>
hr
.buttons
.buttons-row
-
let sysrq = {
"F": "Call the OOM killer to kill a memory hog process",
"M": "Dump current memory info to the console",
"D": "Show all locks that are held",
"T": "Dump a list of current tasks and their information to the console",
}
each title, key in sysrq
button.row25(
data-shortcut=`AltLeft PrintScreen Key${key}`
data-shortcut-confirm="hid-sysrq-ask-switch"
style="text-align: center"
title=`${title}`
) #{key}
hr
.buttons-row
-
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 disks",
}
each title, key in sysrq
button.row16(
data-shortcut=`AltLeft PrintScreen Key${key}`
data-shortcut-confirm="hid-sysrq-ask-switch"
style="text-align: center"
title=`${title}`
) #{key}
hr
+menu_switch_table("hid-sysrq-ask-switch", true, true) Ask the magic confirmation: