grinja2 has quit [Remote host closed the connection]
grinja2 has joined #river
romangg has joined #river
jao has quit [Ping timeout: 245 seconds]
elshize1 has quit [Ping timeout: 264 seconds]
elshize has quit [Ping timeout: 250 seconds]
eShaev9z has joined #river
eShaev9z_ has quit [Ping timeout: 240 seconds]
raven_ has joined #river
groknull has joined #river
groknull has quit [Remote host closed the connection]
groknull has joined #river
groknull has quit [Remote host closed the connection]
boombim has quit [Server closed connection]
boombim has joined #river
fitrh has joined #river
fitrh has quit [Quit: fitrh]
leopoldek has quit [Ping timeout: 264 seconds]
Ordoviz has joined #river
Ordoviz has quit [Client Quit]
taupiqueur has quit [Ping timeout: 264 seconds]
groknull has joined #river
groknull has quit [Remote host closed the connection]
flub has quit [Server closed connection]
flub has joined #river
jao has joined #river
elshize has joined #river
elshize1 has joined #river
ayushnix has joined #river
ayushnix has quit [Changing host]
ayushnix has joined #river
elshize1 has quit [Ping timeout: 246 seconds]
elshize has quit [Ping timeout: 245 seconds]
waleee has joined #river
<fleischie>
I have a question regarding zig-wayland, I hope that's ok: Does someone happen to know whether zig-wayland supports setting user data via wl_proxy? (Not just getting it, which I found.)
waleee has quit [Ping timeout: 245 seconds]
elshize has joined #river
andyrtr has quit [Ping timeout: 250 seconds]
andyrtr has joined #river
elshize1 has joined #river
tiosgz has joined #river
<tiosgz>
fleischie: seems to be on purpose, see 67e2c11ff3f2c67e4fc051b0564632676368c7d3
<fleischie>
Ah ok. Thanks tiosgz ! :)
leopoldek has joined #river
JustineSmithies has joined #river
<JustineSmithies>
I've a question about PR #852. I see there is the tag rule which I presume means you'd be able to have say foot assigned to tag 2 for instance when it was opened yes ?
<JustineSmithies>
If i've understood that PR correctly then what about multimonitor setups would it not need an optional output parameter too ?
<JustineSmithies>
I think this question should be directed at the author though leon-p
<leon-p>
I would keep those separate: one rule for output, one for tag
<leon-p>
right now the rule ignores outputs completely and the window appears on the currently focused one as usual
<JustineSmithies>
Yes that's how I thought it would work as per the code now.
<JustineSmithies>
Another whishlist rule would be to have a rule that if the app-id is matched then run a script or command using spawn.
<leon-p>
hooks are on my personal list as well, however I fear they'd be abused for scripting that should rather be done through wayland
<JustineSmithies>
I'd use for simple things like on mpv opening then move the window to x,y location and resize as I usually open mpv small in the bottom right of the active monitor until i decide to fullscreen it.
<leon-p>
either way, I'd need some feedback on that PR before I do invest too much time into rules
<leon-p>
JustineSmithies: the problem with that kind of scripting is that is violates Wayland "every frame is perfect" rule. Because the window opens and gets mapped, then the script runs and moves it, there exists at least one frame with the window in the wrong position
<leon-p>
to avoid that we could have either a position rule, or some sort of filter protocol for an external client to control certain window features before map
<JustineSmithies>
A position rule would be perfect as long as you could set location x & y and size x & y and the matched app-id window would always have those attributes on first opening ??
<leon-p>
certainly possible
<leon-p>
I'd ask ifreund for a definite yes or no, but that is how I would do it right now.
<leon-p>
with the sole exception of the riverctl list-rules command, it's acttually rather easy to add new rules
<leon-p>
especially now that I made RuleList have a variable child-type
<tiosgz>
leon-p: i think the order _action_ <filter> _argument_ is rather unintuitive; i wonder if it could be made to accept <filter> _action_ _argument_ as well (both variants in order not to be a breaking change)
<leon-p>
that's how the argument parser works, didn't feel like changing it 🤷
<JustineSmithies>
Cool and thanks leon-p for your help and advice it's appreciated. I'm away to go build a void package of river using your latest commit from your fork to test that PR out and I'll let you know how it goes.
<tiosgz>
ahh ok
<leon-p>
testing is always appreciated
<JustineSmithies>
Hmm the build failed ??
<JustineSmithies>
/builddir/river-testing-0.2.4.20230625/build.zig:7:35: error: unable to load '/builddir/river-testing-0.2.4.20230625/deps/zig-wayland/build.zig': FileNotFound
<JustineSmithies>
I maybe will have to just manually build from source.
<JustineSmithies>
Sorry forgot to say using void.
Guest94 has joined #river
<tiosgz>
phaps that's why i cannot help you... fwiw just cloning the repo, following the build steps without install and running zig-out/bin/river from there won't mess with your system
<JustineSmithies>
tiosgz: Thanks
Guest94 has quit [Client Quit]
waleee has joined #river
elshize1 has quit [Ping timeout: 260 seconds]
tiosgz has quit [Quit: tiosgz]
elshize has quit [Ping timeout: 264 seconds]
<JustineSmithies>
Haha got it built finally on my test machine now to test PR #852 ;)
<JustineSmithies>
leon-p: So for a test rule have I read the doc right ? Would riverctl rule-add tag --app-id "foot" 2 be correct ?
<leon-p>
yes
<leon-p>
just with `-app-id` and not `--app-id`
<JustineSmithies>
Yes sorry that's what I have and if I open foot it should be assigned to tag number 2 yes ?
<leon-p>
not to tag two, but the tag set that equals 2 in binary
<JustineSmithies>
leon-p: PS typo in the doc line 276 it says Requieres and should be Requires
<JustineSmithies>
leon-p: The tag rule works as expected no issues found yet.
<JustineSmithies>
Is there no riverctl rule-del tag ???
<leon-p>
there should be
<JustineSmithies>
What format ? riverctl rule-del "foot 2 ??
<JustineSmithies>
riverctl rule-del tag is accepted but not the above too many arguments
taupiqueur has quit [Ping timeout: 240 seconds]
<JustineSmithies>
722884
<JustineSmithies>
lol
<leon-p>
ah yes, you don't need to put the argument into the command when deleting the rule
<leon-p>
there can't be two rules with the exact same matching criterea, so no need to specify the tag
<JustineSmithies>
Still if i enter riverctl rule-del tag "foot" I get error: too many arguments
<JustineSmithies>
Yet riverctl list-rules tag shows the rule
<leon-p>
maybe I accidentally changed the argument count in the rule-del command as well
<JustineSmithies>
It wouldn't be fun if things worked first time ;)
<JustineSmithies>
Oh nice and now the power is out here not long now until my UPS dies. Hope they get it sorted ASAP.
taupiqueur has joined #river
<leon-p>
hey, still better than all lights in your flat mildly flickering for the last year or so
JustineSmithies has quit [Ping timeout: 246 seconds]
taupiqueur has quit [Ping timeout: 245 seconds]
ayushnix has quit [Ping timeout: 246 seconds]
leopoldek has quit [Remote host closed the connection]
leopoldek has joined #river
elshize has joined #river
elshize1 has joined #river
GatanLepage[m] has quit [Ping timeout: 255 seconds]