ifreund changed the topic of #river to: river - a dynamic tiling wayland compositor || https://github.com/riverwm/river || channel logs: https://libera.irclog.whitequark.org/river/
<kindablue> hello is there any way to get dimensions and coordinates of a view in river?
<kindablue> I can't seem to figure out how to take a screenshot of the active view
Axenntio has joined #river
Axenntio has quit [Remote host closed the connection]
waleee has quit [Ping timeout: 268 seconds]
Guest30 has joined #river
Guest30 has quit [Client Quit]
leon-p has joined #river
Guest30 has joined #river
Guest30 has quit [Client Quit]
Guest73 has joined #river
Guest73 has quit [Quit: Client closed]
snakedye has quit [Ping timeout: 250 seconds]
<ifreund> kindablue: no, not currently
novakane has joined #river
snakedye has joined #river
wisnu has joined #river
wisnu has quit [Client Quit]
wsn-13 has joined #river
<dnkl> ifreund: I think perhaps me being unused to zig was an advantage... I don't yet have the ability to skim through code quickly, and had to go fairly slow
<dnkl> hopefully there'll be some progress on IME now :D
wsn-13 has quit [Ping timeout: 256 seconds]
snakedye has quit [Ping timeout: 265 seconds]
snakedye has joined #river
novakane has quit [Quit: WeeChat 3.3]
novakane has joined #river
<novakane> dnkl: well obviously there more chance that the IME PR progress now that river doesn't crash :P
<novakane> I think overall the implementation without keyboard grab is mostly done, at least for me I don't saw too much wrong thing
<novakane> maybe ifreund gonna disagree with this statement though^^
snakedye has quit [Ping timeout: 264 seconds]
snakedye has joined #river
snakedye has quit [Read error: Connection reset by peer]
snakedye has joined #river
elshize has quit [Remote host closed the connection]
leon-p has quit [Ping timeout: 265 seconds]
leon-p has joined #river
<ifreund> what you have so far looked pretty good to me, just gotta finish it up and fix the bugs :)
wsn-13 has joined #river
<novakane> ifreund: btw could you point me in the right direction on how to fix `@intCast(u32, input_method.current.preedit.cursor_begin)` directly from zig-wayland?
<novakane> afaik this is the only remaining problem of the current implementation
<ifreund> you know where to access the function in zig wayland right?
<ifreund> the wl.Resource you need is in the wlr.TextMethodV3 sturct
<ifreund> s/Method/Input/
<ifreund> could also replace that wl.Resource with the proper wrapper type in the bindings for more type safety
<ifreund> (you'll currently need to @ptrCast() it to make the call)
pipeweed[m] has left #river [#river]
<novakane> not really, I'm not sure how to access zig-wayland function in river
<novakane> is that something I need to change in river or in zig-wayland or wlroots
<ifreund> you need to edit river's build.zig to generate the marshalling code for text input v3
<ifreund> then you can do @import("wayland").server.zwp.TextInputV3.sendPreeditString()
<ifreund> the first argument will be a *zwp.TextInputV3, this is the same pointer as the *wl.Resource field of the wlroots struct though
<ifreund> does that clear things up?
<novakane> I guess there is no example on how to generate this in build.zig yet?
<novakane> oh duh I overthinked this
<ifreund> :d
<ifreund> s/d/D/
<novakane> ifreund: does this looks like I understand correctly https://paste.sr.ht/~novakane/59261a17c3170b05fbb401cb00b82f19c494f008
<novakane> it works at least lol
<ifreund> novakane: yep, though I'd put the comment at the call site and get rid of the `const sendPreeditString = ...`
<novakane> no problem, well it was way more complicated and hard in my head before your explanation, thanks :D
wsn-13 has quit [Quit: Client closed]
<novakane> I can't really take inspiration in sway code for the keyboard_grab implementation, it's way too different from river one :(
waleee has joined #river
<ifreund> pretty sure I looked at sway's input code, went "that looks complicated" and wrote my own
<novakane> haha I get you, for now I still have no idea on how to integrate this in Keyboard.zig though
snakedye has quit [Ping timeout: 264 seconds]
snakedye has joined #river
novakane has quit [Quit: WeeChat 3.3]
novakane has joined #river
snakedye has quit [Ping timeout: 264 seconds]
snakedye has joined #river
<novakane> oh so earlier I forced push the fix for IME without using git add before \o/
novakane has quit [Quit: WeeChat 3.3]
novakane has joined #river
<novakane> I'm playing a bit with stacktile, and it's so easy to changes the default layout of river, with runit service, I can have rivercarro and stacktile running and just use `riverctl default-layout <foo>`
<novakane> that was really a great design
<snakedye> You can also change the input mode to quickly remap keys :)
<novakane> oh that's not a bad idea! You do this?
leon-p has quit [Quit: leon-p]
snakedye has quit [Ping timeout: 250 seconds]
snakedye has joined #river
<snakedye> novakane: I do it when I test my layout generator
<novakane> snakedye: I never thought of this but maybe I'll do this if I'm not to lazy :P
<novakane> I need to try kile someday too, to be on point on all layout generator :D
<snakedye> \o/
<novakane> snakedye: so how do you build the man page for kile? I'm not really an expert with cargo
<snakedye> If you have scdoc it'll build it automatically
<novakane> allright so where then? I don't see anything in target/
<snakedye> It's when you build kile
<snakedye> The man page should be in doc/ like river
<novakane> ah yeeh I see it, wasn't looking in the right place, thanks
elshize has joined #river
<elshize> hey yall, I'm unfortunate enough to have a hybrid nvidia card on my work laptop; I'm experimenting with proprietary and open source drivers; river kinda almost works fine with proprietary, but some apps have issues. trying nouveau now, and having this issue: I have an external monitor that is detected by nouveau drm, and I start apps there and move them between monitors, but the external monitor is
<elshize> all blank... any idea if this can be fixed? got logs here: https://0x0.st/-RVD.log
<elshize> I desperately don't want to go back to x11 :(
<elshize> btw, the same happens on sway, though I actually get a cursor on the other screen.
<elshize> but it works on gnome/wayland
novakane has quit [Quit: WeeChat 3.3]
Guest30 has joined #river
Guest30 has quit [Client Quit]
snakedye has quit [Ping timeout: 264 seconds]
snakedye has joined #river
<ifreund> elshize: one option would be to only use the integrated graphics card to run the compositor, you can select the card with WLR_DRM_DEVICES
<ifreund> that'd be assuming that you have a nvidia dedicated card + an intel CPU with integrated graphics, which is pretty common I believe
<ifreund> ah, from that log it seems that you have one display running off the integrated intel gpu and one running off the nvidia gpu with noveau drivers
<elshize> ifreund: yeah, I think (not sure) that the external display only works via nvidia card
<ifreund> you might not be able to physically plug the external display into the integrated gpu yeyah
<elshize> hecking sad
<elshize> it's weird that I got river running on nvidia proprietary drivers
<elshize> but then e.g. qutebrowser no longer works
<ifreund> they recently added GBM support after however many years of trying to push EGLStreams
<elshize> and tearing is bad
<ifreund> maybe they'll fix whatever outstanding bugs their GBM code has in the future, I couldn't say and it's closed source so... yeah
<ifreund> so their properitary driver now in theory supports everything wlroots/sway/river need, but obviously still has issues
<elshize> fun fact: when I try to start sway under proprietary drivers, it prints out in red that they're not supported
<elshize> and then says that you can bypass it with an arg but "don't report bugs", which is reasonable
<elshize> but the option is called something like --my-next-card-will-not-be-nvidia (or something similar, don't remember exactly)
<ifreund> yep, we could do that for river too but I don't really want to maintain the code unless we need it to filter out such bug reports
<ifreund> which we haven't gotten any of yet :D
<elshize> it just makes me sad I can't just use intel card :( I have no use for that nvidia
waleee has quit [Ping timeout: 265 seconds]
waleee has joined #river