ifreund changed the topic of #river to: river - a dynamic tiling wayland compositor || https://github.com/ifreund/river || channel logs: https://libera.irclog.whitequark.org/river/
Nulo has quit [Quit: WeeChat 3.2]
xd1le has joined #river
snakedye has quit [Ping timeout: 258 seconds]
leon-p has quit [Ping timeout: 272 seconds]
leon-p has joined #river
Guest89 has joined #river
Guest89 has quit [Client Quit]
xd1le has quit [Quit: xd1le]
xd1le has joined #river
ino has joined #river
<ino> hi! how do I run river natively under wayland? I noticed its running on top of xwayland. its the `river-git` package from AUR. do I need to manually build river with some flags for this?
ino has quit [Quit: Client closed]
ino has joined #river
ino has quit [Client Quit]
novakane has joined #river
ext0l has joined #river
<ext0l> i'm considering trying river out as an alternative to sway. what are the biggest things i'm most likely to miss/run into?
zachir has joined #river
<novakane> ext0l: mainly that sway is a manual tiling windows manager other than that I don't know if there is big difference
<ext0l> yeah i more mean like general compositor features. like f.ex. it sounds like idle inhibitor support is missing
<novakane> yeah idle inhibitor support is not yet implemented, tbh I didn't use sway enough to know the small features that river miss
zachir has quit [Quit: leaving]
<emersion> ext0l: you can always send patches for missing things ;)
<ext0l> haha :D
<ext0l> i have considered using it as an excuse to learn zig
ino has joined #river
<ino> I have tried both river and sway. I have also tried xmonad. river just blows everything out.
<ino> geez. haskelll still gives me trauma.
<novakane> ext0l: go for it, zig is really great
<ino> yes! you are very right novakane.
<ext0l> yeah i'm a rust person but from what i've seen it's not a good fit for something that works so heavily with wlroots
<ino> also i had a question! is there any special config to cycle through the tags/workspaces? because when i have more than 4 tags my fingers get tiread continuously pressing 1 2 3 4 etc. :)
<ext0l> (i used to love haskell in college but now... ehhh)
<ino> oh you are a rust dev! i am also learning rust. now, i am trying to write some basic algorithms in rust and see how far can i go.
<ino> previously i worked with python and nodejs. mostly for web related things.
<novakane> ino: no there is nothing to cycle through tags
<ino> owww.
<ino> its ok i will be trying to restrict myself into 3 workspaces now on.
<ino> also novakane
<ino> your assumption was right that day.
<ino> my problem was polkit related.
<ino> as I had no session so river refused to launch. i reproduced the issue today and when i installed polkit it launched normally.
<novakane> ino: ah nice that you found out
<ino> :)
<ext0l> oh, here's a semi-big thing. does river support alternate keyboard layouts?
<novakane> ext0l: you can set keyboard layout with XKB_DEFAULT_* environement variables
<ext0l> cool
<ext0l> hmm. yeah, i think tomorrow i'll try out either this or hikari
<ext0l> hikari seems like it has more features but i like the way river handles layouts (and that it's not written in C <<)
<novakane> hikari is more a floating wm no?
<ino> hikari is stacking + tiling.
<ino> from what i have seen from a yt video.
<novakane> ok, never tried it
<ext0l> yeah from the video i saw it looks like you get a "apply the given layout" keybind that you can use to tile
<ino> there is a tiling manager called leftwm written in rust. very colorful (it is presented as a theming wm) but its for x11 only.
<ext0l> eh i like wayland for now
<ext0l> anyway, off to bed. ttyl
ext0l has quit [Quit: WeeChat 3.2]
snakedye has joined #river
notzmv has quit [Ping timeout: 256 seconds]
ino has quit [Quit: Client closed]
dbuckley has quit [Ping timeout: 258 seconds]
dbuckley has joined #river
leon-p has quit [Quit: leaving]
leon-p has joined #river
notzmv has joined #river
anubhavkini has quit [*.net *.split]
anniehallmoon has quit [*.net *.split]
edrex[m] has quit [*.net *.split]
wrl has quit [*.net *.split]
yyp has quit [*.net *.split]
kennylevinsen has joined #river
dnkl has joined #river
priner has quit [Ping timeout: 240 seconds]
pltrz has quit [Ping timeout: 252 seconds]
sjtio has quit [Ping timeout: 252 seconds]
dagle has joined #river
yyp has joined #river
anniehallmoon has joined #river
anubhavkini has joined #river
edrex[m] has joined #river
wrl has joined #river
waleee has quit [Ping timeout: 268 seconds]
st4ll1 has joined #river
edrex[m] has quit [Ping timeout: 252 seconds]
anniehallmoon has quit [Ping timeout: 256 seconds]
anubhavkini has quit [Ping timeout: 256 seconds]
keithhub[m] has quit [Ping timeout: 268 seconds]
pltrz has joined #river
sjtio has joined #river
priner has joined #river
anubhavkini has joined #river
keithhub[m] has joined #river
edrex[m] has joined #river
anniehallmoon has joined #river
elshize has quit [Ping timeout: 268 seconds]
elshize has joined #river
elshize has quit [Quit: WeeChat 3.2]
elshize has joined #river
<leon-p> managed to use pywayland to write a layout generator in python
<leon-p> with a decently bad main-plus-stack layout implementation, WAYLAND_DEBUG shows that a demand with 10 views happened at [3610662.010] river_layout_v3@5.layout_demand(2, 1280, 800, 4, 45250)
<leon-p> [3610662.097] -> river_layout_v3@5.push_view_dimensions(0, 0, 640, 800, 45250)
<leon-p> [3610662.155] -> river_layout_v3@5.push_view_dimensions(640, 0, 640, 800, 45250)
<leon-p> (oops there was some log in my clipboard)
<leon-p> and the commit happened at [3708914.766]
<leon-p> from [3708913.769] to [3708914.766]
<leon-p> ifreund ^
<novakane> leon-p: does it feels laggy?
<leon-p> nope
<leon-p> at least on this device I see no difference
<leon-p> for anyone interested: https://paste.rs/EK0
<novakane> ok, thats probably the slower we'll have
<leon-p> as will be obvious, my python-foo is not that great
<leon-p> but for the mythical "average user" python is supposedly more accessible than zig or C, so I guess python layout are a win
<novakane> that's a small file to make it, that's a cool point
<leon-p> if we have anyone here who is a bit more pythonic than me, it might be a good idea to have a python layout in contrib/
<novakane> that's like 2 times slower than rivercarro but I guess if it pass the eyes test it's good
<leon-p> keep in mind though that it's a fairly simple layout. I wonder how the time changes once oyu throw in some more math
<novakane> yeah I guess for something like stacktile it wouldn't be a great choice to use python
xd1le has quit [Quit: xd1le]
<leon-p> hah, you can integrate it with matplotlib :D
ino has joined #river
ino has quit [Client Quit]
ino has joined #river
<ino> hi! is there a way to remove window title in river config? my alacritty doesnt have window title, but firefox has, and its giant. thanks!
<leon-p> ino: river disables CSD by default, firefox (or better said, gtk3) just does not support the protocol yet
<elshize> ino: I think in firefox, you'll have to go to 'customize' and there's an option there
<elshize> right click on toolbar > customize toolbar... > unclick "title bar"
<ino> Thanks leon and elsize! you are awesome. you always help noobs like me.
<ino> :] =D
<leon-p> ino: it's totally selfish: the more people now stuff, the less I have to explain :P
<ino> once i master the configs I will try to enrich the wiki section :)
<elshize> ino: and I'm a noob myself, just lucky to know something :D
<ino> elshize you are awesome! your solution perfectly worked. thank you again!!
<elshize> elshize: glad to be of help
<elshize> ino rather lol
<ino> :) :)
<elshize> just addressed myself, talking about selfa absorbed huh?
<ino> haha its oki
ino has quit [Quit: Client closed]
<elshize> hey, so here's a general question: I noticed many of you choose sourcehut for hosting your code. I actually hadn't been aware of it before discovering river. what's the reason? is it simplicity, privacy, functionality?
<leon-p> a) it's not github b) IMO email is nicer than PRs and sourcehut makes email quite simple c) IMO the CI is nicer d) it's FOSS, AGPL
<elshize> leon-p: is source hut only email-based or does it have other methods of submitting patches?
<leon-p> elshize: It's pretty much mail only currently, but if I am not mistaken, a web interface is planned. I suspect that unlike github, on sourcehut both systems will be 100% compatible without any "side" loosing any functionality, which is unlike github, where you can really only write comments via mail
<elshize> leon-p: thanks. from my reading on the website it sounds pretty cool
<elshize> I'll have to test it out
<leon-p> elshize: https://git-send-email.io/
<leon-p> that'll help yuo get a feeling for it
<elshize> thaks!
ino has joined #river
<leon-p> although it focuses on sending patches. You can also send pull requests via email and they are way cooler than githubs PRs, because they are host-agnostic (you could send me a PR for my sourcehut repo from your github repo using gits internal system)
<elshize> that's neat
<elshize> it's definitely caught my eye, looks like a cool piece of software.
<novakane> you also don't need an account to send a patch
<leon-p> most of the beauty of sourcehut really is just the beauty of git. sourcehut just doesn't hide all of it like other hosting platforms do and I really appreciate that
<elshize> I might try it out for some of my private repos first, which I have for now migrated to a self-hosted gitea.
<novakane> yep less annoying noise in the UI I would say
<leon-p> elshize: also try out the CI, it's really simple and even has exotic hosts like BSD and Plan9
<novakane> at first when you're used to github it take some time to understand some things but once you get it it's really great
<elshize> leon-p: yeah, I read about it, sounds nice. github actions get on my nerve so much
<leon-p> having that file in the repo is all that is needed to enable CI
<elshize> so unreliable, if you come back with the same code after a month, you find yourself with a different env with different compilers, etc, and a failing build :|
<novakane> note that you need a paid account for CI though
<elshize> well then, I'm definitely trying it as soon as I find some time
ino has quit [Quit: Client closed]
<elshize> novakane: makes sense, someone needs to maintain the servers
<elshize> you either have to pay in money or in your personal data
<novakane> elshize: of course and starting at $20/year with all features is fair
<elshize> yeah, these are not steep prices
<elshize> I pay some projects more money anually in donations lol
<leon-p> It really is fair. for $2 a month I get a quality service maintained by someone whos software related values roughly match mine
<novakane> yeah I'm waiting for the beta to take a paid account tbh but maybe if I want build.sr.ht one day I'll take it before
<novakane> also elshize if you already use a self-hosted gitea, you can self host sourcehut
<elshize> novakane: true, was thinking of that as well
<leon-p> cleaned up the python layout a bit and submitted a PR to add it to contrib/
<leon-p> would be nice if some python-master looked over it
<elshize> leon-p: idk if I'd call myself a master, but I have some exp so I can give it a look from the lang perspective at least
<leon-p> all my python experience is using it as a glorified calculator and to plot some data, so I am not very confident about the codes quality :P
snakedye has quit [Ping timeout: 248 seconds]
snakedye has joined #river
<ifreund> very nice, I'll try and give the PR queue some much needed attention this evening
<leon-p> elshize: thanks for your review! If you don't mind, I'll convert your suggestions into a patch in your name
<elshize> leon-p: sure, it's fine with me
novakane has quit [Quit: WeeChat 3.2]
novakane has joined #river
notzmv has quit [Ping timeout: 248 seconds]
waleee has joined #river
<novakane> feel like there was a need for this in the wiki :P https://github.com/ifreund/river/wiki#how-do-i-disable-gtk-decorations-eg-title-bar
<elshize> novakane: good idea
snakedye has quit [Ping timeout: 272 seconds]
snakedye has joined #river
notzmv has joined #river
Nulo has joined #river
<leon-p> agreed, good idea
<leon-p> I think at some point we also need a decent guide for scripting in the wiki
<leon-p> at least point out which protocol extension can be used for what purpose
<dnkl> ifreund: leon-p: just wanted to say thank you, for river. I've switched to river on all but one of my machines, and it's been nothing short of awesome
anniehallmoon has left #river [#river]
elshize has quit [Ping timeout: 248 seconds]
elshize has joined #river
<leon-p> yep, it made the linux desktop exciting again for me as well :D
nagy135 has joined #river
elshize has quit [Ping timeout: 248 seconds]
elshize has joined #river
<Nulo> dnkl: It's river not awesome! :P
<Nulo> Thank YOU for (foot|yambar|...)
<Nulo> I was excited to get back into Wayland just because of foot
<leon-p> Nulo: give us some time to figure out the future protocol extensions and river should come close to awesome in scriptability
<dnkl> Nulo: you're welcome :D
<Nulo> :D
<leon-p> oh yeah foot is awesome. I would marry URL selector mode if it was human.
<Nulo> dnkl: Can I PM you here for something about a yambar patch?
<dnkl> Nulo: sure, that, or email. Pick your poison ;)
<dnkl> leon-p: yeah, URL mode turned out better than I expected...
<novakane> it would be great to come close to awesomewm scriptabilty because it really awsome :P
<leon-p> I have now written a few shell functions that just dump URLs to stdout and it's amazing for quickly going places online
snakedye has quit [Ping timeout: 272 seconds]
snakedye has joined #river
<leon-p> novakane: it really all comes down to protocol extensions, which is why right now is exactly the right time to come up with possible use cases we should support
<dnkl> leon-p: just whish weechat had OSC8 support...
<novakane> leon-p: yeah I should re read awesome api to get some idea, my setup with it was way more complex, everything here was made only with awesome https://raw.githubusercontent.com/novakne/dotfiles_x11/master/img/previews/black_clean.png
<novakane> no 3rd party softxare
<leon-p> novakane: such UI will probably never be done by river itself, for that you'd have to use the layer_shell. However that should be even more flexible than awesomes UI
<nagy135> Hello, I m having this minor cursor issue with MPV and tag switching. When I switch tag to one with mpv, it looks like it doesnt get some event and doesnt hide cursor until I move it. Its minor, I m just curious if someone could try that and maybe guess what might be the culprit (if it is mpv related or river or someting else even).
<leon-p> novakane: but the only thing still missing for you to recreate that setup with river is a way to link foreign toplevel handles with tags. That is what I am working on with river-toplevel-v1
<leon-p> nagy135: when did you build river? Sounds like a bug that was recently solved
<leon-p> try building from master if you haven't already
<leon-p> I had the same issue, until it annoyed me enough to fix it :P
snakedye has quit [Ping timeout: 272 seconds]
<nagy135> probably week ago ...that would be awesome! I will report if it fixed it :)
snakedye has joined #river
<novakane> leon-p: right it's just that you need to learn multiple protocol instead of awesome API I guess
<ifreund> novakane: it's just a different kind of API, one could write a featureful client library in lua to abstract it a bit if one wanted to
<ifreund> dnkl: you're most welcome, thank you for foot :)
<novakane> ifreund: yeah tbh it's on my TODO list to do something in lua for river, not sure what yet :P
nagy135 has quit [Quit: WeeChat 3.2]
<ifreund> novakane: seems like the first step would be nice lua libwayland bindings if they don't exist yet
nagy135 has joined #river
<novakane> ifreund: yeah although I thought about something with C/lua since it works great together, but full would be great of course
<nagy135> leon-p: you were absolutely right, works flawlessly now ...thanks for heads up :)
<ifreund> novakane: if you want to write lua I'd say go all the way. With LuaJIT performance should be no issue
<novakane> ifreund: I guess so, I personnaly like lua and fennel, for scripting and some small use case with protocols it could be great to use
<ifreund> novakane: have you looked at janet? Fennel was a sort of testground for bakpakin's ideas before he started on janet iirc
<novakane> ifreund: yeah a little but I never use it much yet, I'm more experienced with fennel but it could be a good alternative too
elshize has quit [Quit: WeeChat 3.2]
elshize has joined #river
elshize has quit [Ping timeout: 248 seconds]
elshize has joined #river
<snakedye> novakane: if you want some flexibility with widgets, eww is nice and is migrating to an s-expression based configuration
<leon-p> eww is kinda cool, but I am not a huge fan of it using gtk
<novakane> yep I try to not use gtk as much as possible, but eww looks cool maybe I'll try it anyway one day
kennylevinsen has left #river [#river]
novakane has quit [Quit: WeeChat 3.2]
<snakedye> Once I'm done with snui (in a few millennias) no more eww :)
kennylevinsen has joined #river
elshize has quit [Quit: WeeChat 3.2]
elshize has joined #river
Nulo has quit [Read error: Connection reset by peer]
Nulo has joined #river