v0.4.0 c0db34c

wayland.go RawHistoryFolder

1package ports
2
3import "time"
4
5// Wayland commands contain no credentials or lock ownership. The visual owns
6// ext-session-lock; this connection observes capabilities, idle and power only.
7type WaylandCommand interface{ waylandCommand() }
8type SetDeadlines struct {
9	Generation uint64
10	Deadlines  []time.Duration
11}
12type OutputPower struct{ On bool }
13
14func (SetDeadlines) waylandCommand() {}
15func (OutputPower) waylandCommand()  {}
16
17type WaylandEvent interface{ waylandEvent() }
18
19// Proxy and Cycle identify one notification lifetime and its idle/resume cycle.
20// After is a distinct deadline, not an inferred policy action. Core maps it.
21type WaylandIdle struct {
22	Generation, Proxy, Cycle uint64
23	Seat                     uint32
24	After                    time.Duration
25}
26type WaylandActivity struct {
27	Proxy, Cycle uint64
28	Seat         uint32
29}
30type WaylandCapabilities struct{ Capabilities Capabilities }
31type WaylandPowerFailed struct{ Output uint64 }
32
33func (WaylandIdle) waylandEvent()         {}
34func (WaylandActivity) waylandEvent()     {}
35func (WaylandCapabilities) waylandEvent() {}
36func (WaylandPowerFailed) waylandEvent()  {}
37
38type WaylandOutput struct {
39	Lifetime       uint64
40	Global         uint32
41	Name           string
42	PowerSupported bool
43}
44type Capabilities struct {
45	Globals map[string]uint32
46	Seats   []uint32
47	Outputs []WaylandOutput
48	Missing []string
49}
50
51// Requirements describe enabled features, not a particular compositor brand.
52type WaylandRequirements struct {
53	Idle, InputWake, OutputPower, Lock, Visual bool
54}

Keyboard shortcuts

Single-key shortcuts are on. ctrl k and esc work whatever this says.

ctrl k :
go to a section, branch, tag, file or repository
?
this list
j k
move the row cursor down / up
enter
open the row under the cursor; on Files, a directory opens or closes in place
↑ ↓ ← → home end
in the file tree (focus on a row): previous / next row, close / open a directory or go to its parent / first entry, first / last row. They never open a file
l h
on Files: open a directory or a file / close a directory or go up to its parent, then to the parent page. Elsewhere: into the side panel (on a merge request, its files) / back to the content; there j k move between its controls
g g G
first / last row
/
filter the list; on Files, find a file anywhere in the repository (esc clears, enter opens the best match)
b
switch branch or tag
g s g f g c g b g m g i g r g a
tabs: summary, files, commits, branches & tags, merge requests, issues, releases, actions (when available)
g h
home
w
wide mode: use the whole width of the screen, or not (remembered)
y
copy a permalink pinned to the commit
d u x
diff: split / unified / collapse or expand all
e E
diff: the whole file in view / every file, with the lines the hunks hide
n
merge request: next note in the diff
esc
close a dialog, leave a field

Branches 2

Tags 9

↑↓ moveenter openesc close