-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathexample.cfg
70 lines (66 loc) · 1.72 KB
/
example.cfg
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
61
62
63
64
65
66
67
68
69
70
// #RRGGBB or #RRGGBBAA work.
// You can omit or keep the hashtag.
background = "000000"
foreground_inactive = "000000ff"
foreground_active = "ffffff"
text_inactive = "ffffff"
text_active = "000000"
// Window size, in pixels.
width = 160
height = 160
// Optional. Only needed for displaying text.
// Will try to find a fallback if unspecified but needed.
font = "monospace:size=12"
// If a key is pressed for fewer milliseconds than `time_threshold`, it will be
// shown for `threshold_life` milliseconds with text saying how long it was
// pressed for.
//
// These values are optional, but you must set both if you want to use them.
time_threshold = 30
threshold_life = 10
// The list of keys/elements to display.
// x, y, w, and h specify the bounds of the rectangle.
// scancode is the scancode of the key to listen for.
// Use wev: https://git.sr.ht/~sircmpwn/wev
//
// If time_threshold (a value in milliseconds) is specified and the key is
// pressed for shorter than the threshold, an indicator will pop up in its place
// showing how long it was pressed for.
keys = (
{
x = 50, y = 10, w = 40, h = 40,
scancode = 25,
},
{
x = 10, y = 50, w = 40, h = 40,
scancode = 38,
},
{
x = 50, y = 50, w = 40, h = 40,
scancode = 39
},
{
x = 90, y = 50, w = 40, h = 40,
scancode = 40
},
{
x = 10, y = 100, w = 40, h = 20,
scancode = 65
},
{
x = 10, y = 120, w = 40, h = 20,
scancode = 58
},
{
x = 50, y = 100, w = 40, h = 20,
scancode = 44
},
{
x = 50, y = 120, w = 40, h = 20,
scancode = 45
},
{
x = 90, y = 100, w = 40, h = 40,
scancode = 46
}
)