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/
jao has quit [Ping timeout: 250 seconds]
eShaev9z_ has quit [Ping timeout: 250 seconds]
eShaev9z has joined #river
angry_vincent has joined #river
angry_vincent has joined #river
angry_vincent has quit [Changing host]
notzmv has joined #river
leopoldek has quit [Ping timeout: 246 seconds]
TheAnachron has joined #river
<TheAnachron> novokane not sure if you wanna know, but the latest changes made it worse, it always flickers here now. I figured out that is only the case when I use both "center" and "right" aligned items
<TheAnachron> s/novokane/novakane/
<novakane> TheAnachron: the "Render only in response to frame callbacks" commit?
<TheAnachron> yeah, exactly. I always pull latest from that branch
<novakane> damn I really can't see why, I can't reproduce whatever I tried
<novakane> now with the buffer pool and the frames callbacks implementationI don't think the problem comes from this part
<TheAnachron> Can you maybe install "remixicon" and then try to pipe my status text into zelbar?
<novakane> is it multiple scripts that you write as <name>: in your text, e.g. "status-wrapper:"?
<novakane> or is it not in bash?
<TheAnachron> Yes, it's around 5 scripts for handling the bar alone. All in posix shell (dash)
<TheAnachron> the issue also happens when I only use a single script to launch the bar. It seems to be caused by the input
<TheAnachron> try that input and see if it flickers for you as well
aryak_ has quit [Ping timeout: 240 seconds]
aryak_ has joined #river
<novakane> TheAnachron: don't you miss a printf or echo in status-display script?
<TheAnachron> the status display script actually does more than that, it's just the stdout that it returns
<TheAnachron> You dont need that logic, it flickers with the text from my gist comment.
<novakane> okay, welp can't seems to make it to flicker on my side
<TheAnachron> do you have multiple displays? If yes, do you always specify which output the bar belongs to?
<novakane> no I only have one
<TheAnachron> okay, I just modified my script and even when specifing output it does flicker. Hrmpf.
<novakane> if you could share a debug log maybe it can help, even if you're motivated a video so I see how the flickering looks
aktina has quit [Quit: ZNC 1.8.2+deb2+b1 - https://znc.in]
aktina has joined #river
<TheAnachron> yeah I will debug my stuff further, I realized that if I put a static text and display that inside status-display it wont flicker
<TheAnachron> also will probably generate a debug build, even though I have to modify my buildsystem for that.
<novakane> TheAnachron: an easy way would be to just build it and use `~/path/to/zig-out/bin/zelbar` in your run-bar script
<TheAnachron> the problem is not the packaging, the problem is that I use https://github.com/void-linux/void-packages/blob/master/common/build-style/zig-build.sh which uses -Drelease
<TheAnachron> so if I want to create a debug build, I need to write my own do_build :P
<novakane> just clone and build it from source for testing purpose no?
<TheAnachron> Yeah, I use voids build system for that which already has a build-style for zig builds, but that runs it on release by default. Dont worry, it's not a big deal, just not for now. I believe I am on the right track.
<TheAnachron> Basically my status-display sources another script and then runs awk on my status-data-file.
<novakane> something I saw in the debug log while sending a lot of data quickly is that it reads the STDIN with multiple newline in it
<novakane> not sure how I can stop a the first newline with os.read()
<TheAnachron> I only have one newline, made sure of that, but thanks for that hint.
<plumeus> oh yeah, novakane, I was just trying zelbar and I was wondering if there's a simple way to show the active tags on River.
<plumeus> oh, so I can use the output of that command to generate something, I guess
<novakane> yes there is only one newline, but it reads it multiple time in one call if it changes too fast, the parser stop at the first one though
<novakane> plumeus: I started writing something to have an easy way to do it but haven't make it works yet. I guess you could parse something like ristate though
<plumeus> Okay, I want to say your program is quite cool but I had issues compiling on NixOS as the README didn't state all the dependencies required to build
<plumeus> and the trace I get from lacking wayland and wayland-protocols is quite annoying to read.
<plumeus> and pkg-config
<plumeus> The error for lacking pixman was quite legible as it gives a simple linking error
<plumeus> or maybe those are considered zig-wayland deps and not Zelbar's
<TheAnachron> novakane you know what? I replaced the "printf"s in my status-display with bar="${bar}$(printf)" and print it once at the end
<TheAnachron> and I have no more flickers!
<TheAnachron> So it seems like it's some timing issue after all. (even though there is no newline!)
<novakane> plumeus: yes I kinda considered as wayland deps, but I can add it
<novakane> TheAnachron: ah nice! yes I'm pretty sure that something with poll() and reading the STDIN
<TheAnachron> I may eventually go back to check if I can set up an easy way to replicate it, but my bar finally works without flickering and I am very grateful for that.
<TheAnachron> ohhh. I get it now. between the printfs I read the file again and that causes the delay and even though I dont send newline it will probably still be read and depending on how fast it will cause issues
<novakane> TheAnachron: yep, see how it read it multiple time because it's too fast https://paste.sr.ht/~novakane/6cb9276c5c71d9cddddcfdec5999ac52701e29ea
<TheAnachron> novakane if I set up a test script with a delay of 0.01 it displays and then its empty, if I add 0.1 it wont display anything at all.
<TheAnachron> interesting issue, I am happy we found it :)
<TheAnachron> novakane I am guessing you don't need more input (hah, get it?) from me here, right?
<novakane> hehe, well I'll try to see if I can fix that first, and then we'll see, I have no idea how for now though lol
<TheAnachron> sorry for that bufferpool work that was not neccessary btw.
<novakane> TheAnachron: no worries that's something I wanted to do anyway, well maybe not the frame callbacks stuff but it was cool to learn it
<TheAnachron> novakane right. Will you merge "vertical" to main or is that abandoned? Asking because I might want to try it out to maximize my space.
<novakane> TheAnachron: not abandonned, I'm just not sure if I like it or not as it is right now, it works though if you want to try
fsx has joined #river
<TheAnachron> novakane I am not good in merging things, so I will probably keep my working setup for now.
<TheAnachron> I always wanted to try a vertical bar though, so I am interested in testing
<TheAnachron> I wouldn't mind not having it though,- it's a pretty low priority for me
notzmv has quit [Ping timeout: 265 seconds]
sugarbeet has quit [Ping timeout: 240 seconds]
sugarbeet has joined #river
sugarbeet has quit [Ping timeout: 240 seconds]
sugarbeet has joined #river
TheAnachron has quit [Remote host closed the connection]
notzmv has joined #river
grinja2 has quit [Ping timeout: 240 seconds]
grinja2 has joined #river
leopoldek has joined #river
waleee has joined #river
dvzrv has quit [Quit: WeeChat 3.8]
dvzrv has joined #river
waleee has quit [Ping timeout: 265 seconds]
jao has joined #river
andyrtr has quit [Ping timeout: 248 seconds]
andyrtr has joined #river
waleee has joined #river
darkbit[m] has joined #river
Guest25 has joined #river
Guest25 has quit [Client Quit]
alexherbo2 has joined #river
angry_vincent has quit [Remote host closed the connection]
waleee has quit [Ping timeout: 248 seconds]
notzmv has quit [Ping timeout: 250 seconds]
waleee has joined #river
waleee has quit [Remote host closed the connection]
waleee has joined #river
alexherbo2 has quit [Remote host closed the connection]
taupiqueur has quit [Quit: WeeChat 3.8]
waleee has quit [Ping timeout: 250 seconds]
taupiqueur has joined #river
waleee has joined #river
alexherbo2 has joined #river
waleee has quit [Ping timeout: 250 seconds]
alexherbo2 has quit [Remote host closed the connection]
waleee has joined #river
alexherbo2 has joined #river
groknull has joined #river
groknull has quit [Remote host closed the connection]
waleee has quit [Ping timeout: 250 seconds]
waleee has joined #river
haliucinas4 has joined #river
aldcor has quit [Ping timeout: 250 seconds]
aldcor has joined #river
fleisch_ie has joined #river
haliucinas has quit [Ping timeout: 250 seconds]
haliucinas4 is now known as haliucinas
fleischie has quit [Ping timeout: 250 seconds]