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/
snakedye has quit [Ping timeout: 260 seconds]
snakedye has joined #river
leon-p has quit [Ping timeout: 268 seconds]
leon-p has joined #river
waleee has quit [Ping timeout: 252 seconds]
ext0l has joined #river
snakedye has quit [Ping timeout: 265 seconds]
leon-p has quit [Quit: leaving]
priner has quit [*.net *.split]
crypt_ has joined #river
<crypt_> hi I have a bit of code that ti am trying to get working to add a new bit of positioning code for adding a new view.
<crypt_> I have the following but it does not compile and ti am not sure why
<crypt_> const first = self.first;
<crypt_> const second = self.first.next;
<crypt_> if (second != null) {
<crypt_> any ideas?
<crypt_> this is within ViewStack
priner has joined #river
ChanServ has quit [shutting down]
ChanServ has joined #river
guest23 has joined #river
guest23 has quit [Quit: Client closed]
guest23 has joined #river
user181308142001 has joined #river
<user181308142001> Hi, does anyone know of a simple program to output the currently focused tags in river? I know this is possible with river-status-unstable-v1.h, but I cannot find a simple program that uses this protocal to print to stdout. I am willinging to do some pharsing on the data, so if there is a program that outpus all tags with more info etc., please let
<user181308142001> me know also. Thanks a lot :)
<bfiedler> user181308142001: there is ristate
user181308142001 has quit [Quit: Client closed]
yyp has quit [Ping timeout: 268 seconds]
snakedye has joined #river
<ifreund> crypt_: could you put the error you're getting in a pastebin?
ext0l has quit [Ping timeout: 265 seconds]
<guest23> hola, how to move windows from one screen to another? To current active tag on another screen? Right now it moves to the same tag, not visible one
<bfiedler> I think you can use distinct tags on both screens
yyp has joined #river
guest23 has quit [Quit: Client closed]
user181308142001 has joined #river
<user181308142001> bfiedler: thanks a lot, I was using yambar's debug logs as a placeholder, this seems much better though :)
user181308142001 has quit [Client Quit]
novakane has joined #river
<crypt_> zig build
<crypt_> ./river/view_stack.zig:89:33: error: type '?*view_stack.Node' does not support field access
<ifreund> crypt_: first is an optional pointer, so you need to either check if it's null or assert that it's not null before accessing the data
<crypt_> const second = first.next;
<crypt_> ^
<crypt_> river...The following command exited with error code 1:
<crypt_> ah i think that I have much more to learn about zig
<ifreund> zig just stopped you from writing code that would segfault if there were no views in the view stack
<crypt_> that is a good thing - just a bit confusing at the start
<ifreund> yeah the error messages definitely aren't all that great yet, the language isn't 1.0
<crypt_> well at least zig does not seem to have the new feature of the week tht rust appears to have
<ifreund> oh yes, zig is *way* simpler than rust
<ifreund> if you're already familiar with C or something similar you should be able to get up to speed on zig in a matter of days
<crypt_> the biggest issue that I have with zig is getting my head around using allocators
pkap has joined #river
<crypt_> I have been using memory managed languages like python and lua for too long
crypt_ has quit [Remote host closed the connection]
snakedye has quit [Ping timeout: 264 seconds]
crypt_ has joined #river
<crypt_> well there re times that I missed one of the features of my old x200 thinkpad. It always told you in no uncertain terms when it was about to go flat
guest23 has joined #river
<guest23> another question - why Save as dialog not opening in Chrome? Any ideas?
<guest23> and there was a fork of river with double borders which is not available at the moment, do you aware why so?
<guest23> bfiedler can you please elaborate on using distinct tags on different views? trying to fit my head around tags/views
<novakane> guest23: I recommend you read this https://github.com/ifreund/river/wiki/How-tags-work
<guest23> thanks
<guest23> make more sense now
<novakane> view is just an other word for window and tags are really powerful but it take some time to be used to it
<guest23> started yesterday, after sway it is already better
<guest23> prefer dynamic tiling
ralphptorres has joined #river
<guest23> and happy about wayland in general, switched to it couple weeks ago because of different dpi screens
<guest23> played with scale and transform in X a lot, but performance never been like with river
<novakane> yeah this is probably the main reason why we all using river instead of sway here, I can't stand manual tilling
<guest23> any suggestion for a bar with ready to use config for river? Which can be hidden by hotkey
snakedye has joined #river
elshize has quit [Remote host closed the connection]
pkap16 has joined #river
pkap16 has quit [Client Quit]
pkap has quit [Ping timeout: 264 seconds]
pkap has joined #river
pkap has quit [Client Quit]
pkap has joined #river
waleee has joined #river
<pkap> Waybar can be toggled with the SIGUSR1 signal.
<pkap> eg. `pkill -SIGUSR1 -x waybar`
ralphptorres has quit [Quit: WeeChat 3.2.1]
ralphptorres has joined #river
<guest23> thanks pkap, probably don't need a bar, strted to test river-popup-overlay
<ifreund> I use https://git.sr.ht/~leon_plickat/river-tag-overlay on my laptop as the screen is quite small for a bar
<guest23> ifreund perfect
<guest23> this is what i mean, river-tag-overlay
<guest23> need to add a binding for time/battery notification
<guest23> do you using any kind of notification for brightness/volume?
<ifreund> nope, I haven't been using my laptop hardly at all since covid started so I haven't found time to
<ifreund> simply using notify-send with mako should work pretty well though
<ifreund> this might be useful for battery notifications: https://sr.ht/~kennylevinsen/poweralertd/
<ifreund> alternative to mako: https://codeberg.org/dnkl/fnott
<guest23> thank you!
ralphptorres has quit [Quit: WeeChat 3.2.1]
ralphptorres has joined #river
guest23 has quit [Quit: Client closed]
guest23 has joined #river
pkap has left #river [#river]
pkap has joined #river
guest23 has quit [Quit: Client closed]
guest23 has joined #river
<guest23> anybody using musl void on daily basis? Curious to understand what kind of issues possible there
<ifreund> you're probably better off asking in #voidlinux
<guest23> curious to know according to the usage of Wayland and river
<guest23> but yeah, you are right, thanks
snakedye has quit [Ping timeout: 240 seconds]
snakedye has joined #river
<ifreund> guest23: I run void musl on my laptop, river works fine
ralphptorres has quit [Quit: WeeChat 3.2.1]
guest23_ has joined #river
ralphptorres has joined #river
ralphptorres has quit [Client Quit]
pkap has quit [Quit: Client closed]
pkap has joined #river
snakedye has quit [Ping timeout: 264 seconds]
snakedye has joined #river
pkap has quit [Quit: Client closed]
leon-p has joined #river
snakedye has quit [Ping timeout: 252 seconds]
guest23 has quit [Quit: Client closed]
guest23_ is now known as guest23
snakedye has joined #river
snakedye has quit [Read error: Connection reset by peer]
snakedye has joined #river
guest2396 has joined #river
waleee has quit [Quit: WeeChat 3.2.1]
guest2347 has joined #river
guest2347 has quit [Client Quit]
dbuckley has quit [Remote host closed the connection]
waleee has joined #river
dbuckley has joined #river
snakedye has quit [Read error: Connection reset by peer]
snakedye has joined #river
guest2396 has quit [Ping timeout: 256 seconds]
waleee has quit [Ping timeout: 246 seconds]
waleee has joined #river
snakedye has quit [Read error: Connection reset by peer]
leon-p has quit [Ping timeout: 260 seconds]
snakedye has joined #river
leon-p has joined #river
novakane has quit [Quit: WeeChat 3.2.1]
snakedye has quit [Read error: Connection reset by peer]
leon-p has quit [Ping timeout: 246 seconds]
snakedye has joined #river
leon-p has joined #river
snakedye has quit [Ping timeout: 246 seconds]
snakedye has joined #river
snakedye has quit [Read error: Connection reset by peer]
snakedye has joined #river
<crypt_> ifreund: thanks very much my after_top attach_mode code now works
snakedye has quit [Read error: Connection reset by peer]
<crypt_> ok i am now confused. It works fine but only on tag 1
<leon-p> crypt_: I missed that discussion, but I assume you are trying to create a new setting for attach_mode to attach views after the top view, right?
<leon-p> In that case, remember that there only is a single stack across all tags of an output
<leon-p> and the first visible view is not necessarily the top view
snakedye has joined #river
snakedye has quit [Ping timeout: 246 seconds]
<crypt_> yes I basically just did a wrapper round the attach-top that then does a swap afterwards
snakedye has joined #river
<crypt_> ah that makes sense now
<crypt_> so I need to do a filter to wind the first it
<crypt_> tem for the tag that I am looking at
<crypt_> I see that there are filter functions there
<crypt_> would I be right in saying that ti should be using the iter method for what I am wanting to do?