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/
Evo2 has quit [Remote host closed the connection]
<mekss> river with nouveau works fine, but opengl stuff (alacritty and chromium) are flickering as hell. Maybe i can fix that
<elshize> mekss: fwiw I do use proprietary though on fedora; and not running the newest river either because of some annoying deps I'm waiting fedora to update
<elshize> but at the same time, not the greatest experience, got some flickering here and there. but nouveau didn't work at all, so I'm stuck with that
<mekss> elshize, I get flickering only in x11. in river everything pretty smooth
Evo2 has joined #river
Guest58 has joined #river
Guest58 has quit [Quit: Client closed]
hspak has quit [Quit: The Lounge - https://thelounge.chat]
hspak has joined #river
Evo2 has quit [Ping timeout: 250 seconds]
Evo2 has joined #river
Evo2 has quit [Ping timeout: 250 seconds]
notzmv has quit [Ping timeout: 245 seconds]
waleee has quit [Ping timeout: 250 seconds]
Evo2 has joined #river
Evo2 has quit [Ping timeout: 250 seconds]
Evo2 has joined #river
snakedye has quit [Ping timeout: 256 seconds]
Evo2 has quit [Ping timeout: 256 seconds]
Evo2 has joined #river
Evo2 has quit [Ping timeout: 256 seconds]
Evo2 has joined #river
notzmv has joined #river
monaaraj has joined #river
monaaraj has quit [Ping timeout: 256 seconds]
monaaraj has joined #river
Guest22 has joined #river
<kraem> hi, `riverctl toggle-fullscreen` makes chromium go into presentation mode for me (without the tab+address bar). my google-fu isn't helping me find any settings / flags to disable this behaviour and keep the tab+address bar visible in fullscreen. did anyone encounter this?
doaN[m] has quit [Quit: You have been kicked for being idle]
<monaaraj> Yep! Happens in firefox too, only I did find a method to disable it in firefox, though I don't think that can help there. It's not particularly a bug, it's an intended feature in most mainstream browsers I've seen
Guest22 has quit [Quit: Client closed]
<kraem> thanks. yeah i was able to disable it in firefox with browser.fullscreen.autohide - can't find the equivalent for chromium on linux though. on macos people seem to be able to go to fullscreen / presentation mode by adding shift to cmd+f
<kraem> i can't seem to alter the padding of rivertile in runtime with `riverctl send-layout-cmd rivertile "{-,}{outer,view}-padding 0"`. is that not supported or am i doing something wrong?
<ifreund> kraem: that's right, rivertile doesn't support setting the padding at runtime currently
<kraem> thanks :)
<novakane> oh, that's a good thing to add to rivercarro
<novakane> ifreund: doing this I saw https://github.com/riverwm/river/blob/master/rivertile/main.zig#L173 we could use saturating arithmetic now no?
snakedye has joined #river
<novakane> `output.main_count +| @intCast(u32, arg)` should works if I correctly followed the changelog
<novakane> huh why I have a parse error here, that's literally the same thing that `main-count`
<novakane> ah nvm I'm dumb
<novakane> hmm or not... I thought I forgot to change something in the parse command for the cli flag but there is no need
<ifreund> novakane: yes for sure! I knew there was some place I wanted to use the new saturating operators but couldn't remember where
<ifreund> patches welcome :)
<ifreund> there's probably other places we could use them as well
<novakane> ifreund: sure, I'll finish this on rivercarro and I'll change it here and look around if I found some other places
<ifreund> thanks!
<novakane> any idea why I have this parse error above?
<novakane> with '+/-' before the value
<ifreund> could you post the error?
<novakane> failed to parse argument: error.InvalidCharacter
<ifreund> from the zig compiler? or rivertile?
<novakane> changing it with `riverctl send-layout-cmd rivercarro "outer-padding +10"` throw this
<novakane> though it works for all others command so I don't get it why
<ifreund> not sure, must be a new bug somewhere
<ifreund> I gotta run though, cya later o7
<novakane> o7
<novakane> in case you come back before I can fix this, here the whole code
<novakane> ~  riverctl send-layout-cmd rivercarro "outer-padding +10"
<novakane> ~  riverctl send-layout-cmd rivercarro "outer-padding +10"
<novakane> ~  riverctl send-layout-cmd rivercarro "outer-padding +10"
<novakane> ~ 
<novakane> ~ 
<novakane> ~  riverctl send-layout-cmd rivercarro "outer-padding +10"
<novakane> ~  riverctl send-layout-cmd rivercarro "outer-padding 10"
<novakane> whoops wrong copy paste
<ifreund> novakane: the error is probably coming from fmt.parseInt()
bfiedler has quit [Ping timeout: 250 seconds]
bfiedler has joined #river
<novakane> ifreund: yeah but why though? It does works for main-count
alebastr_ is now known as alebastr
monaaraj has quit [Ping timeout: 256 seconds]
monaaraj has joined #river
<novakane> hmm it works now and I didn't change anything lol
<novakane> allright changing gaps size at runtime should now works in rivercarro
pkap has joined #river
waleee has joined #river
pkap has quit [Quit: Client closed]
waleee has quit [Ping timeout: 240 seconds]
waleee has joined #river
monaaraj has quit [Ping timeout: 256 seconds]
monaaraj has joined #river
monaaraj has quit [Ping timeout: 256 seconds]
monaaraj has joined #river
monaaraj has quit [Ping timeout: 256 seconds]
monaaraj has joined #river
notzmv has quit [Ping timeout: 250 seconds]
monaaraj has quit [Ping timeout: 256 seconds]
monaaraj has joined #river
monaaraj has quit [Ping timeout: 256 seconds]
monaaraj has joined #river
monaaraj has quit [Ping timeout: 256 seconds]
monaaraj has joined #river
<kraem> quick question: is `riverctl default-layout $LAYOUT` suppose to call the binary (rivertile/rivercarro) or just a "namespace"?
<leon-p> kraem: the namespace
<kraem> oh it seemd all riverctl cmds just wanted a namespace
<leon-p> although in practice namespace and name of the executable are usually identical
<kraem> s/seemd/seemed/
<leon-p> yes, all layout related commands need a namespace.
<kraem> it seems they are not equal in this case? riverctl wants just the namespace as my init-script doesn't have rivercarro in its PATH and only works when i provide it the namespace, not the full path to rivercarro (except the last exec statement)
<leon-p> kraem: the full path to the executable is not it's (base-)name
<leon-p> so yes, of course the namespace is not equal to the full path (although you could write a layout gen that does that, it would not make much sense though)
<kraem> so when river is "bootstrapped" it takes the path to the executable so it later can call it when called with only the namespace?
<leon-p> no
<leon-p> the namespace is something the layout generator sets itself when it connects to river
<leon-p> river does not care about the path to the layout gen executable. It may not even launch it directly.
<kraem> oh alright. i think i need to read up on the details hehe. thanks!
<leon-p> kraem: as it so happens, i wrote a blog post on river layouts :P
<leon-p> although the namespace thing really is quite simple. The layout gen connect say, says "hi, I have layout for outputs X, y and Z, all with the namespaces foo". Then river checks if the namespace is valid. If not the layout generator is asked to disconnect. If it is valid, river checks if the namespaces matches what the user configured for the output. If it does match, the layout demand process is initiated.
<kraem> nice, thanks!
pkap has joined #river
pkap has quit [Ping timeout: 256 seconds]
pkap has joined #river
pkap has quit [Ping timeout: 256 seconds]
<kraem> leon-p: curious. the ssl cert of your site didn't work on ios but it works fine on my laptop
<kraem> novakane: just tried your patch with {inner,outer}-gaps at runtime. works perfectly :) thanks
pkap has joined #river
<leon-p> kraem: interesting indeed. But the cert is managed by sourcehut, not much I can do about it (or want to, managing a site is more annoyance than I have energy for)
pkap has quit [Ping timeout: 256 seconds]
<angry_vincent> what is passthrough mode?
<alebastr> elshize: "because of some annoying deps I'm waiting fedora to update" - is it about wlroots 0.15?
notzmv has joined #river
pkap has joined #river
<novakane> kraem: nice, glad you like, don't know why I didn't add this before tbh
<novakane> angry_vincent: a mode where river doesn't detect the keybinds, useful to use river in a nested session of river for example
<angry_vincent> ah, ok
<mekss> why would river crash after I apply kanshi configuration? It only crashes if I do >50 fps on my monitor
<mekss> sway does not crash
<angry_vincent> can i hide application, so that it is invisible but can be brought up if needed, similar to sway's scratchpad?
<kraem> novakane: do you mind if i submit a rivercarro package to nixpkgs?
pkap has quit [Ping timeout: 256 seconds]
<ifreund> mekss: I suppose you're probably hitting this: https://github.com/riverwm/river/issues/508
<ifreund> angry_vincent: send it to a tag you can't see
<ifreund> mekss: any chance you could get debug logs of the crash happening? Ideally build river in debug mode and run with `-log-level debug`
<ifreund> the easiest way to get logs is to run from a tty and redirect stderr to a file
<mekss> will do
<ifreund> for example, `river 2> out.log`
<ifreund> thanks!
<angry_vincent> ifreund: oh, nice, this is good, how do i put something to tag 13, for example? so that it is recognized as 13 an not 1 and 3?
<ifreund> $(( 1 << 13 )) ?
<ifreund> aka 8192
<ifreund> 2 to the power of 13
<angry_vincent> not sure i understood what is the key combination for this
<ifreund> angry_vincent: the example on that wiki page uses P
<ifreund> you can use whatever you like though of course
<novakane> kraem: no feel free to do so :)
<kraem> novakane: :)
waleee has quit [Ping timeout: 250 seconds]
Grawp has joined #river
<Grawp> Is there a possibility to focus an output by a mouse if there is no view displayed on it?
<leon-p> unfortunately no
<leon-p> but it would be a simple addition, if you'd like to tackle it
<ifreund> Grawp: I'm pretty sure that works if you click somewhere on the emtpy background of the output
<ifreund> well, since 0.1.1 at least
<Grawp> ifreund oops, I'm on 0.1.0, I'll have to update. (Clicking on an empty background does nothing in 0.1.0).
<Grawp> Thanks for the info.
<kraem> i just realised after having used river for one day the performance is amazing. the fans of my mbp 2012 doesn't ramp up to max level while watching hd video. i'm wondering if the optimisation is not running a separate compositor like in xorg (even though i only ran picom to get rid of screen tearing, no extra effects other than that) or if it's at the protocol level (wayland vs x). anyway, thanks
<kraem> for a great project!
<elshize> alebastr: I mean yes, wlroots 0.15 not in fedora, but when I try to compile it I think there's another wayland-related package that's outdated; so I just figured I'd wait unless until that one is resolved, can't be bothered currently to go into the dependency rabbit whole ;)
<alebastr> elshize: ah, yes. it needs wayland-server 1.20. Well, that won't be ever updated in f35 official repos, as our policy forbids breaking updates in stable releases.
<ifreund> kraem: The architecture of wayland cetainly makes things possible that aren't possible on X. I can't take too much credit for river's performance though, most of that work happens in the parts of wlroots I don't really touch :D
<ifreund> alebastr: it's not breaking though?
<alebastr> elshize: I have copr builds for latest river & wlroots 0.15. alebastr/river and alebastr/sway-testing
<ifreund> I guess it might break the build of things like SDL or firefox that want to dlopen wayland
<alebastr> ifreund: wl_output v4. and overall our wayland maint team doesn't take unnecessary risks
<ifreund> wl_output v4 isn't breaking
<ifreund> many clients have bugs though
<ifreund> a well written client won't be broken
<alebastr> it surely broke a few apps that weren't binding the protocol correctly. including everything based on chromium
<ifreund> really this is a severe shortcoming of libwayland's API
<ifreund> it shouldn't be easier to do the wrong thing that the right thing
waleee has joined #river
<novakane> this wl_output v4 release really has been a great learning lesson for wayland programmer huh :P
<alebastr> yep. too bad that gnome still haven't started using v4 it in mutter. that would break^Wencourage people to fix more applications
<elshize> alebastr: I might give those packages a try over the weekend if I find some time. thanks for the tip!
Grawp has quit [Quit: Client closed]
<leon-p> alebastr: pretty sure I read somewhere that mutter won't update interface versions if nothing in the GNOME stack uses the new events/requests. That's why the input interface versions are effectively frozen in GNOME land
<mekss> how do i build river in debug mode?
<leon-p> mekss: zig builds in debug mode by default
<leon-p> so just do `zig build`
n8_ has joined #river
<n8_> hello. I am trying to configure river/wayland to only output to an external monitor when my laptop is docked with the lid shut. Any ideas?
<n8_> To give some more detail, I have the Thinkpad T480 with a USB-C dock. The laptop screen turns off when the lid is shut, but river will still let me move programs onto the laptop's integrated display. I just checked Gnome's behavior, and it acts as if the external display is the only monitor (which is desired).
<chipps_> n8_: kanshi probably solves your problem
<n8_> chipps_: thanks for letting me know
<n8_> chipps_: have you tried this with river? i don't think I'm able to disable the output. However, I'm not certain that I am invoking kanshi correctly or that I have the correct name for the display
<n8_> ah. just adding `kanshi &` to the top of my river init was sufficient. Launching kanshi after river had started was not. Thanks again
Evo2 has quit [Ping timeout: 256 seconds]
Evo2 has joined #river