Repository navigation
Expand file tree
/
Copy pathscurry.toml.example
More file actions
45 lines (42 loc) · 1.71 KB
/
Copy pathscurry.toml.example
File metadata and controls
45 lines (42 loc) · 1.71 KB
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
# The virtual desktop, pushed to the dongle with: scurry-ctl set-config <file>
#
# This file is an input, not state. The dongle stores the layout; read it back
# with: scurry-ctl get-config
#
# Screens are rectangles in one shared coordinate space;
# whichever contains the pointer holds focus. They need not tile the plane --
# the pointer clamps rather than falling into a gap.
# Node 0 is this machine. Input stays local and is never transmitted.
#
# Sizes are *logical* units -- points on a Mac, not backing pixels. The capture
# layer measures the local screen with CGDisplayBounds and compares the cursor
# against it, so a Retina Mac described here at its 3024x1964 panel size is
# claiming a screen twice as wide as the one the cursor actually crosses: the
# pointer reaches the layout's edge at the halfway mark and hands over with
# half the display to spare.
#
# Get the right numbers with: osascript -e 'tell application "Finder" to get bounds of window of desktop'
#
# The same applies to every other screen: use what the machine reports, not what
# its panel is. A Chromebook with a 2560x1600 panel running at 2x moves its
# pointer through 1280x800, and 1280x800 is what belongs here.
[[screen]]
name = "mac"
node = 0
x = 0
y = 0
width = 1512
height = 982
# Remote screens are 1..=4, mapping onto the dongle's bonded connection slots
# in bond order. Placed to the right of the Mac, vertically centred against it.
[[screen]]
name = "linux"
node = 1
# Pin the node to a machine's Bluetooth address, from `scurry-ctl status`.
# Without it the node is whichever machine connects into that slot first, so a
# dongle reboot can silently swap two screens.
address = "f0:68:e3:e5:d1:b1"
x = 1512
y = -129
width = 1280
height = 1240