alexherbo2 has quit [Remote host closed the connection]
alexherbo2 has joined #river
uncomfy has joined #river
qyliss_ is now known as qyliss
uncomfy has quit [Remote host closed the connection]
leopoldek has joined #river
waleee has quit [Ping timeout: 264 seconds]
leopoldek has quit [Remote host closed the connection]
alexherbo2 has quit [Remote host closed the connection]
alexherbo2 has joined #river
alexherbo2 has quit [Remote host closed the connection]
alexherbo2 has joined #river
notzmv has joined #river
notzmv has quit [Remote host closed the connection]
notzmv has joined #river
alexherbo2 has quit [Remote host closed the connection]
alexherbo2 has joined #river
leopoldek has joined #river
traidare has quit [Ping timeout: 255 seconds]
leopoldek has quit [Remote host closed the connection]
alexherbo2 has quit [Remote host closed the connection]
lordmzte has joined #river
lordmzte has quit [Client Quit]
lordmzte has joined #river
<lordmzte>
Hello! I have an external touch display connected to my laptop, but the touch inputs map to both my laptop's screen as well as the display, instead of just the display. Does river support correctly mapping touch input here?
<lordmzte>
Oh, the display's name according to wlr-randr is also "DO NOT USE - RTK CX156A 0x00000001 (DP-1)", but that's probably just because nvidia, I assume.
<ifreund>
lordmzte: no, not yet sadly but Ive already got an issue open for that in the 0.3.0 milestone
<lordmzte>
Yea I thought so, saw that one.
<ifreund>
wlroots has the API for that, should just be some glue code in river and a new riverctl command
<lordmzte>
Oh neat! I might be able to contribute, although I've only wrtten (a decent amount of) client-side wayland code.
<lordmzte>
Will we simply have a device -> output mapping, or will it work using a transformation matrix?
<vyivel>
there's wlr_cursor_map_input_to_output()
<lordmzte>
ah
<vyivel>
also to_region() (though the name is a lie and it maps to a box instead)
* lordmzte
has no idea how the wlr api works
lordmzte has quit [Quit: WeeChat 4.2.1]
leviathan has joined #river
leviathan has quit [Client Quit]
leopoldek has joined #river
traidare has joined #river
lordmzte has joined #river
<lordmzte>
I haven't read any code yet, but I might give touch pad mapping a shot later on: one question: how would a hypothetical `map-input-to-output` command identify inputs? Outputs have names (I assume), but what about inputs (as in `wlr_input_device`)? Do they have names to identify them by, and is there a protocol river implements to query them?
<lordmzte>
I think the command would, for example, be invoked as `riverctl map-input-to-output ??? DP-1`.
<leon-p>
InputDevice.identifier
<leon-p>
after also I think we can put this into the input command
<lordmzte>
Oh nice! Wasn't even aware of those commands!
<leon-p>
note that you'll need to store the identifier as string in the InputConfig, since the output may not exist on command invocation
<leon-p>
you'll probably want to base it on #959
<lordmzte>
Oh right, I saw that PR. How close do you think it is to being merged? Does it make sense to start work before we get that in, or should big changes still be expected?
<lordmzte>
leon-p: I assume I should store it as a string so that the mapping can be declared to an output that doesn't yet exist, and then be able to apply it once an output with the configured name is connected?
<leon-p>
yeah, that was what I had in mind
<leon-p>
the PR is finished as far as I am concerned
<lordmzte>
I'd also have to undo the mapping then when the output is disconnected (unless wlr does everything already). What would be the function to "undo" a `wlr_cursor_map_input_to_output`? Doesn't seem like there's a function in wlr_cursor.
<leon-p>
🤷
<leon-p>
not familiar with any of that
<leon-p>
I actually it'll undo itself as far as wlroots internals are concerned
<lordmzte>
Seems like `wlr_cursor_map_input_to_output` just sets a field in the input dev. I guess wlr clears it when the output disconnects
<lordmzte>
The docs that `river --help` prints for the -c parameter kinda sucks, it doesn't mention that it runs that INSTEAD of the init exe
<leon-p>
send a PR
<lordmzte>
on it!
<lordmzte>
PR is out; #990
<lordmzte>
seems like CI is broken :P
pinpoxIRC has joined #river
lordmzte has quit [Quit: WeeChat 4.2.1]
waleee has joined #river
xtvl has quit [Read error: Connection reset by peer]
xtvl has joined #river
notzmv has quit [Ping timeout: 256 seconds]
Guest49 has joined #river
Guest49 has quit [Client Quit]
notzmv has joined #river
notzmv has quit [Ping timeout: 264 seconds]
traidare has quit [Ping timeout: 256 seconds]
xtvl has quit [Read error: Connection reset by peer]