ifreund changed the topic of #river to: river - a dynamic tiling wayland compositor - https://github.com/ifreund/river - channel logs: https://freenode.irclog.whitequark.org/river/
maringuu has quit [Ping timeout: 250 seconds]
maringuu has joined #river
waleee-cl has quit [Quit: Connection closed for inactivity]
Alan48 has joined #river
Alan48 has quit [Client Quit]
interested_user has joined #river
<interested_user> Hi, I have gotten river to run with foot in virtual box and have been loving it so far, but the only problem is that I don't know how to change the resolution. A quick look through the man pages of river, riverctl, and rivertile doesn't seem to have what I need. Any advice?
gspe has joined #river
interested_user has quit [Quit: Connection closed]
interested_user has joined #river
yyp has joined #river
interested_user has quit [Ping timeout: 240 seconds]
yyp has quit [Remote host closed the connection]
<novakane[m]> ifreund: so I rewrite the scanner and everything looks good but I have an error with zig build test https://0x0.st/-jgH.log
<novakane[m]> and It doesn't look like it's an issue with scanner.zig
<novakane[m]> and I have zlib
yyp has joined #river
yyp has quit [Remote host closed the connection]
<ifreund> novakane[m]: hmm, I think that error means that lld was built without zlib support
<ifreund> where did you get your llvm/zig from?
<novakane[m]> Well llvm with xbps and zig from the zig website since I can't build it from the master without llvm 12
leon-p has joined #river
anthony25 has quit [Quit: Quitte]
anthony25 has joined #river
<novakane[m]> ifreund: I still pushed the new version of the scanner, I think I add everything I wanted to do, I you want to try before I fix my problem with llvm
<ifreund> novakane[m]: I'm pretty sure this is because llvm/lld for the zig builds on the website are built without zlib support
<ifreund> I'll look into fixing this before 0.8.0
<ifreund> I didn't notice since I get my llvm from nixpkgs currently
<novakane[m]> ifreund: you're probably right, it would make sense
<novakane[m]> I'm gonna wait for llvm12 in void though
<novakane[m]> well at least I'm glad it's not related to my changes in scanner.zig
<ifreund> thath would make very little sense
<novakane[m]> yeah I know, but I can break anything :P
<ifreund> heh :D
<ifreund> I must say, I kinda enjoy investigating/fixing the upstream zig issues river exposes
<novakane[m]> unrelated but how could I wrap long line like 'writer.print("...", .{...})' without zig fmt messing it up
<ifreund> intsert trailing commas
<novakane[m]> oh yeah river is really a great zig debugging tool :P
<novakane[m]> thanks
<ifreund> yeah, and once I fix these things upstream, all zig projects benefit :)
<novakane[m]> yeah that's great
<novakane[m]> I guess river is one of the most used zig project, so you have more people finding issues
<ifreund> indeed, and it dynamically links system libraries instead of statically linking everything which brings a whole new class of bugs and complexity
<novakane[m]> right, that's why we find every glibc and co bugs :p
<leon-p> dnkl: just looking at fuzzel to get a hang of rendering with pixman. Where do the magic numbers in stride.h come from?
<dnkl> leon-p: cairo, I think
<leon-p> I see, thanks
<leon-p> well, if anyone wants a popup that appears on tag change: https://git.sr.ht/~leon_plickat/river-tag-overlay
<novakane[m]> oh that's something I'm interested in
<novakane[m]> I wanted to do something like this so I can remove my bar with my small screen, I'm just too lazy :P
<leon-p> yes, using river without a bar is my use case as well. Recently I only use a bar for time and tags, so I decided to remove it to gain more space
<ifreund> that is a pretty neat idea
<ifreund> I could definitely see using this on a laptop
<novakane[m]> same I only want time, battery and tags
<novakane[m]> I had something like this on bspwm, a keybind to show a notif with time, battery, and a notif everytime I change focused tag
waleee-cl has joined #river
<novakane[m]> alright I'm done with the scanner I think :)
<novakane[m]> leon-p: river-tag-overlay looks great, I will need to change the colors though :P
<leon-p> novakane[m]: if you wait a bit, I'll probably make them configurable
<novakane[m]> yeah no worries, I just try a bit for now, I would need to mkae something to have time and battery before using this anyway
<novakane[m]> I'm kinda disappointed you didn't use zig though :P
<leon-p> :P
<leon-p> it's below 1k lines
<leon-p> that is roughly my zig threshold
<leon-p> also the things is basically me experimenting with pixman, which I'll need for another C project of mine
<novakane[m]> hey you could make river damage tracking if you want to use pixman :P
<leon-p> I'd love to, but I only have time for small-ish projects atm.
<novakane[m]> for real though I wanted to make something like this but pixman and fonts really do not motivate me
<leon-p> for simple drawing like this, pixman is really nice.
<leon-p> but fonts are a bit more involved.
<novakane[m]> yeah but pixman (lack of) doc isn't great
<dnkl> novakane[m]: pixman+fcft makes fonts pretty easy ;)
<novakane[m]> dnkl: yeah I intend to use fcft the day I'm motivated, that's was already my plan :)
<dnkl> novakane[m]: I've managed to render lines, boxes, diagonals and triangles with pixman. Still haven't found a way to do arcs though. Only thing I'm missing in pixman so far...
<novakane[m]> dnkl: you're a true artist :D
<leon-p> I suspect you have to draw the pixels yourself based on some ellipse algorithm
<leon-p> anti-aliasing will be a pain though
<dnkl> It is...
<dnkl> I use super-sampling to do some kind of anti-aliasing
<leon-p> you'd probably have to use the ellipse equation (x^2 / a^2) + (y^2 / b^2) = 1 and depending on how close a pixels center is to the line defined by the equation manipulate the alpha channel of the pixel
<leon-p> ah, interesintg. I'll have a look
<ifreund> wlroots recently dropped support for rendering ellipses with the builtin wlr_renderer due to now supporting pixman :D
<leon-p> so there is hope for motif style borders after all :D
<novakane[m]> waves motif of course
Dedguy21 has joined #river
<Dedguy21> daurnimator orphaned the river-git AUR package, do you all have a replacement maintainer in mind? I'm willing to do it, but I honestly don't have the experience, it would be the first AUR package for me, but I wouldn't mind learning how to do it.
<waleee-cl> Dedguy21: saw this yesterday, https://www.youtube.com/watch?v=CYqd2AHXosk
<Dedguy21> thanks, I usually despise watching DT, but every once in a while he does do something useful I guess.
<ifreund> Dedguy21: I don't use arch anymore, the package is orphaned and anyone is free to claim it as per the rules of the AUR
<leon-p> novakane[m]: colours are now configurable
<novakane[m]> nice!
<novakane[m]> hmm what's the format? not like --background-colour "#ffffff"?
<Dedguy21> I adopted the AUR package. I'll probably be asking some silly questions on the next update. Thanks
<novakane[m]> leon-p: I have a segfault with --square-size
<leon-p> oh, let me check
<leon-p> colour format is 0xrrggbb btw
<leon-p> ah, when the square size is to small and the square inner padding too large you can have an undeflow. I'll add a check for that real quick
<novakane[m]> Oh ok thanks
<leon-p> check added
<novakane[m]> leon-p: now that's really cool, I'm probably gonna use it
yyp has joined #river
<leon-p> novakane[m]: cool, let me know if you run into any other issues
gspe has quit [Quit: gspe]
gspe has joined #river
Dedguy21 has quit [Ping timeout: 240 seconds]
yyp has quit [Ping timeout: 268 seconds]
gspe has quit [Remote host closed the connection]
interested_user has joined #river
interested_user has quit [Client Quit]
Dedguy21 has joined #river