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/
notzmv has quit [Ping timeout: 268 seconds]
elshize has joined #river
notzmv has joined #river
eShaev9z_ has joined #river
eShaev9z has quit [Ping timeout: 256 seconds]
elshize has quit [Ping timeout: 260 seconds]
peelz has quit [Quit: ZNC 1.8.2 - https://znc.in]
peelz has joined #river
peelz has quit [Changing host]
peelz has joined #river
waleee has quit [Ping timeout: 240 seconds]
haliucinas has quit [Quit: .]
haliucinas has joined #river
<LarstiQ> leon-p: thanks for your river-config (and in particular the layout.scm), I keep finding useful bits and building on it. My `all-layouts` was getting a bit long to cycle through, I've now added a `switch-layout <some-layout>` command, implemented the layouts I was missing in riverguile and ready to ditch running multiple layout generators
<LarstiQ> oh and also thanks for riverguile itself of course :)
TheAnachron has joined #river
traidare has joined #river
leopoldek has quit [Remote host closed the connection]
maralorn has joined #river
<maralorn> leon-p: I am using riverguile now. Really nice.
<maralorn> I think I will upstream my package to nixos.
<maralorn> Do you plan on having something like releases sometime soon?
<maralorn> However my scheme foo is not very strong yet. I was thinking about writing e.g. a function like "hsplit :: Box -> (Box, Box)" but since Boxes are represented as lists the implementation feels inelegant.
fitrh has joined #river
<LarstiQ> maralorn: I basically ported https://github.com/areif-dev/river-bsp-layout/blob/main/src/lib.rs#L86, don't know if that would meet your elegance standards but it doesn't look too bad to me :)
<maralorn> Ah, nice examples. Thanks.
<maralorn> Well that function is fine. But it takes all parameters as arguments.
<maralorn> Although is there a trick to pass a list as parameters to a function?
<maralorn> btw. does -> and : in function names have any semantic in the language or is that just a convention (by you)?
<LarstiQ> convention, see `Naming conventions` in https://standards.scheme.org/official/r5rs.pdf. Neither of those linked bits of code are written by me
<LarstiQ> maralorn: are you thinking of apply?
<maralorn> Sounds like it.^^
<LarstiQ> page 32 of r5rs, e.g. (apply + (list 3 4)) => 7
<maralorn> Excellent
<maralorn> Last time I wrote scheme was in 2012.^^
maralorn has quit [Quit: Client closed]
fitrh_ has joined #river
fitrh has quit [Ping timeout: 268 seconds]
fitrh_ has quit [Ping timeout: 260 seconds]
fitrh has joined #river
Cornelius-Figgle has quit [Ping timeout: 260 seconds]
Cornelius-Figgle has joined #river
<leon-p> maralorn: (split-box box) could return a list of two boxen ((x y w h) (x y w h)) and then you can just map other layouts over it
<leon-p> it's also what I did in my config. I wrote a bunch of layout primitives and then arranged sublayouts by a metalayout.
<leon-p> I might do a release in the next week or so
traidare has quit [Ping timeout: 252 seconds]
<LarstiQ> leon-p: cool!
fitrh has quit [Quit: fitrh]
traidare has joined #river
traidare has quit [Ping timeout: 260 seconds]
traidare has joined #river
TheAnachron has quit [Quit: TheAnachron]
tiosgz has joined #river
<tiosgz> i have finally got around to set a bright background and check novakane's recent issue
<tiosgz> just opening a bunch of feet and closing them reproduces it about half the time
<tiosgz> (plus there's a fcitx "workaround" forcing me to release and again press ctrl for ^d-ing, but that's unrelated to this)
<tiosgz> ifreund: ^^^
<angry_vincent> leon-p: is there a visual representation of riverguile layouts? just trying to understand it
<LarstiQ> angry_vincent: you mean for arbitrary layouts?
<LarstiQ> riverguile itself doesn't come with any layouts, that's configuration that the user provides
<angry_vincent> that's one i want to see
<angry_vincent> they are commented in layout.scm, just would be nice to see them in action, if possible
<LarstiQ> ah, you mean his own river-config ones?
<angry_vincent> yes
<angry_vincent> or anyone, who can provide that
<LarstiQ> hmm, I do use riverguile but with my own config
<LarstiQ> really the easiest way to see it is just run it
<angry_vincent> sure. i understand
<LarstiQ> since it's guile under the hood it would be fun to make a layout visualizer
<LarstiQ> would need to handle the user-command and layout-demand events, and have a little repl to allow sending those plus control over how many windows to lay out
traidare has quit [Ping timeout: 255 seconds]
tiosgz has quit [Quit: tiosgz]
traidare has joined #river
Cornelius-Figgle has quit [Remote host closed the connection]
<novakane> tiosgz: hmm I need to try with a dark background then, that's weird
<novakane> i feel like we already had something that happened only on light backgrounds, can't remember what though
leopoldek has joined #river
<ifreund> novakane: it's probably just a lot less visible with a dark background
<ifreund> novakane: ah yep, I can reproduce frame imperfection with a dark terminal on a light background on my laptop
<ifreund> will have a look
<ifreund> thanks tiosgz for reminding me to change my background color :)
<ifreund> damn, this fixes it https://0x0.st/H6_r.diff
<ifreund> I hate this signal ordering stuff
<ifreund> I guess my workaround in handleUnmap() broke with wlroots 0.17
<novakane> oh, damn, it's just that
<novakane> well glad I'm not crazy with this imperfect frame though :P
<ifreund> indeed :)
<novakane> I guess a light background test is needed in river now
<leon-p> I think there is a bug in the build-system somewhere: I can build river master just fine, but when trying to launch it, it complains about libliftoff not being installed. The build system should catch that, no?
<leon-p> IIRC that's a wlroots build-options. Maybe zig-wlroots should try to detect that? Wasn't there a header we can include to check for features?
<ifreund> leon-p: hmm, I don't think river needs to or should do anything different if wlroots was built with libliftoff support or not
<ifreund> it's only used interanally to wlroots and doesn't affect the wlroots API surface
<ifreund> if you built wlroots with libliftoff enabled you need libliftoff at runtime
<ifreund> otherwise you don't
<leon-p> I haven't build it, I am using the ones from the repos for once
<ifreund> leon-p: huh, what's the exact error message you get?
<leon-p> the typical linker error message: ./zig-out/bin/river: error while loading shared libraries: libliftoff.so.0: cannot open shared object file: No such file or directory
<leon-p> Maybe I borked my local install somehow
<ifreund> it certainly sounds like an issue with your wlroots/system install
<ifreund> neither my river or wlroots binary link against libliftoff
<ifreund> and things work fine
<leon-p> and I was so excited about being able to use wlroots from the repos because it would allow me to avoid weird behaviour...
<ifreund> hah, are you sure you don't have some leftover bit of your non-repo wlroots install around?
<ifreund> you're on arch right?
<ifreund> it doesn't look like they link libliftoff... https://archlinux.org/packages/extra/x86_64/wlroots/
<leon-p> wow, seems like I'll be having a fun afternoon
Cornelius-Figgle has joined #river
<leon-p> yeah thanks, I'll be back once I figure this out...
<leon-p> rm'ing things from /usr/local/lib feels wrong, but now it works
Guest59 has joined #river
Guest59 has quit [Client Quit]
<novakane> no more imperfect frames \o/
Guest2457 has joined #river
Guest2457 has quit [Remote host closed the connection]
<leon-p> finally fixed the keyboard group bug and also made identifier matching use globber, which should make using keyboard groups a lot more pleasant
<ifreund> very nice!
<ifreund> I've been wondering if we shouldn't default to putting all keyboards on a seat in a group tbh
<ifreund> is there a case in which that's not the right thing to do?
<leon-p> no idea, TBH
<leon-p> I guess we can just do it and if someone complains change it back?
<leon-p> although I suppose if we ever have per-keyboard layouts or maps, that would not work
<ifreund> ah, true
<ifreund> per keyboard layouts are something we should probably support
traidare has quit [Ping timeout: 268 seconds]
wuyoli has quit [Ping timeout: 255 seconds]
wuyoli has joined #river
waleee has joined #river
leopoldek has quit [Ping timeout: 252 seconds]