mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-11-13 12:23:38 +01:00
komorebic pan --stream reads the gestures of fingers on a touchpad from standard input, as whkd writes them for a swipe of three or four fingers (docs/gesture-stream.md in its repository): a line for each begin, move, end and cancel, with the distances in centimetres, and any field or message that it does not know ignored. The row follows the fingers while they are down, and when they lift it comes to rest with a column against an edge of the screen, going at the speed that the times of the moves say that the fingers were. Focus goes to the nearest column in view if the focused one is not. A gesture that is given up, or that is not finished when the stream stops, puts the row back to what it was. komorebic works out nothing but what it is asked to: --sensitivity multiplies the distances, --reversed flips the way that the row goes, and --paging takes a step for every two centimetres that the fingers go, as komorebic pan does, and not move the row with them. Moves that wait while one is told are added up, as whkd says that they may be. A gesture is told to komorebi on one connection, which it handles in order, as messages that are sent on a connection each are not. With ghost movement the pictures that cover the windows near the screen are taken when the fingers go down, a move of the fingers sets them where the row puts the windows and does nothing else, and when the fingers lift they glide to where it comes to rest, over the time that an animation takes, and the windows are shown. Without it the workspace is laid out a step at a time, as it is for a drag. Ten centimetres of the fingers move the row the width of the screen. The golden transcript of whkd and the swipes of its demo are fixtures of the tests that read the stream.
68 lines
3.1 KiB
Plaintext
68 lines
3.1 KiB
Plaintext
begin fingers=3 x=5.000 y=3.000 w=11.700 h=7.500 t=100048
|
|
move dx=0.006 dy=0.001 x=5.020 y=3.002 t=100128
|
|
move dx=0.007 dy=0.001 x=5.027 y=3.002 t=100136
|
|
move dx=0.008 dy=0.001 x=5.035 y=3.003 t=100144
|
|
move dx=0.009 dy=0.001 x=5.044 y=3.004 t=100152
|
|
move dx=0.010 dy=0.001 x=5.053 y=3.005 t=100160
|
|
move dx=0.011 dy=0.001 x=5.064 y=3.006 t=100168
|
|
move dx=0.011 dy=0.001 x=5.075 y=3.007 t=100176
|
|
move dx=0.012 dy=0.001 x=5.088 y=3.008 t=100184
|
|
move dx=0.013 dy=0.001 x=5.101 y=3.009 t=100192
|
|
move dx=0.014 dy=0.001 x=5.114 y=3.010 t=100200
|
|
move dx=0.014 dy=0.001 x=5.129 y=3.012 t=100208
|
|
move dx=0.015 dy=0.001 x=5.144 y=3.013 t=100216
|
|
move dx=0.016 dy=0.001 x=5.160 y=3.015 t=100224
|
|
move dx=0.016 dy=0.001 x=5.176 y=3.016 t=100232
|
|
move dx=0.017 dy=0.002 x=5.193 y=3.018 t=100240
|
|
move dx=0.017 dy=0.002 x=5.210 y=3.019 t=100248
|
|
move dx=0.018 dy=0.002 x=5.228 y=3.021 t=100256
|
|
move dx=0.018 dy=0.002 x=5.247 y=3.022 t=100264
|
|
move dx=0.019 dy=0.002 x=5.266 y=3.024 t=100272
|
|
move dx=0.019 dy=0.002 x=5.285 y=3.026 t=100280
|
|
move dx=0.020 dy=0.002 x=5.305 y=3.028 t=100288
|
|
move dx=0.020 dy=0.002 x=5.325 y=3.030 t=100296
|
|
move dx=0.020 dy=0.002 x=5.345 y=3.031 t=100304
|
|
move dx=0.021 dy=0.002 x=5.366 y=3.033 t=100312
|
|
move dx=0.021 dy=0.002 x=5.387 y=3.035 t=100320
|
|
move dx=0.021 dy=0.002 x=5.408 y=3.037 t=100328
|
|
move dx=0.021 dy=0.002 x=5.430 y=3.039 t=100336
|
|
move dx=0.022 dy=0.002 x=5.451 y=3.041 t=100344
|
|
move dx=0.022 dy=0.002 x=5.473 y=3.043 t=100352
|
|
move dx=0.022 dy=0.002 x=5.495 y=3.045 t=100360
|
|
move dx=0.022 dy=0.002 x=5.517 y=3.047 t=100368
|
|
move dx=0.022 dy=0.002 x=5.539 y=3.049 t=100376
|
|
move dx=0.022 dy=0.002 x=5.561 y=3.051 t=100384
|
|
move dx=0.022 dy=0.002 x=5.583 y=3.053 t=100392
|
|
move dx=0.022 dy=0.002 x=5.605 y=3.055 t=100400
|
|
move dx=0.022 dy=0.002 x=5.627 y=3.057 t=100408
|
|
move dx=0.022 dy=0.002 x=5.649 y=3.059 t=100416
|
|
move dx=0.022 dy=0.002 x=5.670 y=3.061 t=100424
|
|
move dx=0.021 dy=0.002 x=5.692 y=3.063 t=100432
|
|
move dx=0.021 dy=0.002 x=5.713 y=3.065 t=100440
|
|
move dx=0.021 dy=0.002 x=5.734 y=3.067 t=100448
|
|
move dx=0.021 dy=0.002 x=5.755 y=3.069 t=100456
|
|
move dx=0.020 dy=0.002 x=5.775 y=3.070 t=100464
|
|
move dx=0.020 dy=0.002 x=5.795 y=3.072 t=100472
|
|
move dx=0.020 dy=0.002 x=5.815 y=3.074 t=100480
|
|
move dx=0.019 dy=0.002 x=5.834 y=3.076 t=100488
|
|
move dx=0.019 dy=0.002 x=5.853 y=3.078 t=100496
|
|
move dx=0.018 dy=0.002 x=5.872 y=3.079 t=100504
|
|
move dx=0.018 dy=0.002 x=5.890 y=3.081 t=100512
|
|
move dx=0.017 dy=0.002 x=5.907 y=3.082 t=100520
|
|
move dx=0.017 dy=0.002 x=5.924 y=3.084 t=100528
|
|
move dx=0.016 dy=0.001 x=5.940 y=3.085 t=100536
|
|
move dx=0.016 dy=0.001 x=5.956 y=3.087 t=100544
|
|
move dx=0.015 dy=0.001 x=5.971 y=3.088 t=100552
|
|
move dx=0.014 dy=0.001 x=5.986 y=3.090 t=100560
|
|
move dx=0.014 dy=0.001 x=5.999 y=3.091 t=100568
|
|
move dx=0.013 dy=0.001 x=6.012 y=3.092 t=100576
|
|
move dx=0.012 dy=0.001 x=6.025 y=3.093 t=100584
|
|
move dx=0.011 dy=0.001 x=6.036 y=3.094 t=100592
|
|
move dx=0.011 dy=0.001 x=6.047 y=3.095 t=100600
|
|
move dx=0.010 dy=0.001 x=6.056 y=3.096 t=100608
|
|
move dx=0.009 dy=0.001 x=6.065 y=3.097 t=100616
|
|
move dx=0.008 dy=0.001 x=6.073 y=3.098 t=100624
|
|
move dx=0.007 dy=0.001 x=6.080 y=3.098 t=100632
|
|
move dx=0.006 dy=0.001 x=6.086 y=3.099 t=100640
|
|
end x=6.100 y=3.100 t=100688
|