<novakane>
so the difference between all the center of views and focus the closest?
<novakane>
too much maths for me lol
<waleee>
hm bspwm seems to do some funkier stuff to decide it
<tiosgz_>
doesn't that (bspwm) work based on the tree, i.e. each subtree remembers which half is focused? (just guessing what's most likely)
<waleee>
yeah, looks like it uses rectangles for the subtrees and calculates the distance from it
<waleee>
* subtrees starting from particular node
<leon-p>
novakane: TLDR: loop through all views and find the view whose center is closest to the center of the focused view with the offset between the two centers being in the right direction.
<leon-p>
I am currently refactoring the direction code a bit, that should make it more readable
<novakane>
leon-p: allright, I wasn't sure if it was that or you just use the next view in the stack
<novakane>
Oh you published your article on river! Nice!
<leon-p>
you can imagine it like having a diagonal cross at the center of a view and the direction is just which of the four areas the "head" of the difference vector lands in
<leon-p>
the math notation is basically just me being a bit too lazy to write all that in english
<leon-p>
novakane: Yes, I rushed the last section yesterday night. Turns out we are not famous on reddit and I decided to plug my article there :P
<leon-p>
s/not/now/
<novakane>
leon-p: ok I get it, sounds good to me, math notation is just not something I know
<novakane>
leon-p: oh what subreddit?
<leon-p>
it's actually pretty simple. "f: Z -> Z, x |-> -x" defines a function that maps integers to integers, in this case just negating the number
<leon-p>
novakane: r/linux
<novakane>
doesn't looks like pretty simple seeing this though lol
<novakane>
damn that's a lot of comments and upvote, cool :)
<leon-p>
yeah, as I said, we are famous now :)
<leon-p>
at least for a day
<novakane>
2k stars when ifreund is back :P
<waleee>
leon-p: wasn't it croloris that asked for the article? (checked his twitter)
<leon-p>
waleee: I had it planned for a while, but pretty much yes
<waleee>
I was thinking more in the terms of offloading some marketing
<waleee>
oh, when did he start using matrix?
<waleee>
(or is LorisCro[m] someone else?)
notzmv has joined #river
<novakane>
leon-p: oh the idea of making a laucher mode is great
<leon-p>
novakane: TBH it's the only thing I came up with when I tried to think of usecases for modes. They are not really a feature I use myself
<novakane>
I don't use it myself too, but that's a good idea though, also snakedye said that you could use it to bind different keys for different layout generators, which is also a good idea
<novakane>
leon-p: hey you forgot about border-color-urgent in Appearance that's like 1/4 of river eye candy :P
<leon-p>
oops :D
<novakane>
anyway after 3 hours I finished reading this, it is a really great article for people that don't know about river, nice job!
<leon-p>
thanks!
<snakedye>
River crashed (more like froze) on me again. How do I get logs?
<leon-p>
snakedye: maybe send it SIGSEGV and try to get a coredump?
<novakane>
snakedye: you don't have anything with debug build and running river with -log-level debug?
<snakedye>
I'll run it with this flag from now on
<snakedye>
But I'll update first
waleee has quit [Ping timeout: 264 seconds]
waleee has joined #river
elshize has quit [Ping timeout: 265 seconds]
elshize has joined #river
Guest2 has joined #river
Guest58 has joined #river
Guest58 has quit [Client Quit]
leon-p has quit [Quit: leon-p]
Guest58 has joined #river
leon-p has joined #river
<leon-p>
hey, I think the "output commit failed" bug is back :D
<novakane>
with freeze?
Guest58 has quit [Ping timeout: 256 seconds]
<leon-p>
nope, just log-spam, which I now think is the cause of the random slowness and stuttering I sometimes had
<novakane>
oh well it never gone away to me if we not talking about freeze
<ifreund>
yes, it was never gone. It's present on all wlroots compositors on the affected drivers afaik
<novakane>
yep
<ifreund>
damage tracking papers over the problem by restarting the rendering loop instead of freezing though
<leon-p>
ifreund: how was your concert?
<ifreund>
really good :)
<leon-p>
glad to hear that!
<ifreund>
elshize: hmm, could you tell me a bit more about your setup? it seems like river was continously closing the notifications layer surface as there were no outputs but something kept restarting it. I wonder if river or something else ends up leaking process/memory untill the OOM killer decides to start killing things
leon-p has quit [Quit: leon-p]
leon-p has joined #river
leon-p has quit [Quit: leon-p]
leon-p has joined #river
<novakane>
reading some issues the other day I was thinking, wouldn't it makes sense to rename `focus-follows-cursor normal` to `enabled`?
<ifreund>
maybe, but that'd be a breaking change
<ifreund>
and what if we want to add back always?
<novakane>
fair enough, not like it's a big thing
<novakane>
I mean a big problem to have `normal`
Guest2 has quit [Quit: Client closed]
ecocode__ has quit [Ping timeout: 246 seconds]
chipps has joined #river
chipps has quit [Client Quit]
chipps has joined #river
<chipps>
Hello everyone, I just installed river from the github. What can I use as an application launcher? dmenu doesn't seem to work
<chipps>
I have little to no experience in wayland, so any help will be greatly appreciated
<chipps>
but this seems to only list applications with .desktop files, and I don't see how I can see my custom scripts in $PATH with it. How can I do that? like dmenu's dmenu_run ?
<leon-p>
chipps: fuzzel can function as a dmenu drop-in replacement with the -d flag
<chipps>
leon-p: it works, thank you so much
<leon-p>
no problem
<leon-p>
also implemented directional view swapping now
<leon-p>
ifreund: What's your opinion on the directional view operations? I was a bit fast to implement it, probably should have waited for a discussion round. But it has been requested a few times and the implementation is pretty straight forward, so I would not mind it being in river. In fact, it actuall deduplicates the focus-view and swap command code, which is nice.
<chipps>
I can't run steam anymore. Is it possible to run steam on wayland?
<leon-p>
chipps: Maybe it needs XWayland?
<leon-p>
you compiled river from source, right? In that case you need to explicitly enable XWayland support at compile time
<chipps>
oh... ookay let me do it again.
<chipps>
thanks for all the help
<leon-p>
you also need to install XWayland
chipps has quit [Quit: WeeChat 3.3]
chipps has joined #river
elshize has quit [Ping timeout: 256 seconds]
elshize has joined #river
chipps has quit [Quit: WeeChat 3.3]
ecocode__ has joined #river
leon-p has quit [Quit: leon-p]
leon-p has joined #river
<LorisCro[m]>
<waleee> "(or is Loris Cro someone else?)" <- that's probably the same person you were referring to :^)
<LorisCro[m]>
can I have a link to the blog post mentioned in that discussion?