summaryrefslogtreecommitdiff
path: root/web/kvm/navbar-shortcuts.pug
blob: b3463d635cf2abd783ec02dc055f8984a859b59a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
 
li(class="right")
	a(class="menu-button" href="#") Shortcuts
	div(data-dont-hide-menu class="menu")
		div(class="text")
			b Quick keyboard shortcuts#[br]
			sub Also see #[i System → Show keyboard]
		hr
		div(class="buttons")
			div(class="buttons-row")
				button(data-force-hide-menu data-shortcut="CapsLock" class="row50")
					| • Caps Lock  
					img(class="inline-lamp hid-keyboard-caps-led led-gray" src=`${svg_dir}/led-square.svg`)
				button(data-force-hide-menu data-shortcut="MetaLeft" class="row50") • Left Win
			hr
			div(class="buttons-row")
				button(data-force-hide-menu data-shortcut="AltLeft ShiftLeft" class="row50") • Alt+Shift
				button(data-force-hide-menu data-shortcut="ControlLeft KeyW" class="row50") • Ctrl+W
			div(class="buttons-row")
				button(data-force-hide-menu data-shortcut="ControlLeft ShiftLeft" class="row50") • Ctrl+Shift
				button(data-force-hide-menu data-shortcut="AltLeft Tab" class="row50") • Alt+Tab
			div(class="buttons-row")
				button(data-force-hide-menu data-shortcut="ShiftLeft ShiftRight" class="row50") • Shift+Shift
				button(data-force-hide-menu data-shortcut="AltLeft Enter" class="row50") • Alt+Enter
			div(class="buttons-row")
				button(data-force-hide-menu data-shortcut="MetaLeft Space" class="row50") • Win+Space
				button(data-force-hide-menu data-shortcut="AltLeft F4" class="row50") • Alt+F4
			hr
			button(data-force-hide-menu data-shortcut="ControlLeft AltLeft Delete") • Ctrl+Alt+Del
		hr
		div(class="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
		div(class="buttons")
			div(class="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(data-shortcut=`AltLeft PrintScreen Key${key}` data-shortcut-confirm="hid-sysrq-ask-switch" class="row25" style="text-align: center;" title=`${title}`) #{key}
			hr
			div(class="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(data-shortcut=`AltLeft PrintScreen Key${key}` data-shortcut-confirm="hid-sysrq-ask-switch" class="row16" style="text-align: center;" title=`${title}`) #{key}
		hr
		+menu_switch("hid-sysrq-ask-switch", "Ask the magic confirmation", true, true)