summaryrefslogtreecommitdiff
path: root/web/kvm/navbar-shortcuts.pug
blob: a9b0f6d95b5bca12f2b36e21f1e0d1717098eb9e (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
 
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 = { 
						"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",
					}
				each title, key in sysrq
					button(data-shortcut=`AltLeft PrintScreen Key${key}` class="row16" title=`${title}`) #{key}