ChanServ changed the topic of #river to: river - a dynamic tiling Wayland compositor || https://codeberg.org/river/river || channel logs: https://libera.irclog.whitequark.org/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]
groknull has joined #river
groknull has quit [Remote host closed the connection]
Guest50 has joined #river
<Guest50> ifreund: please find a screenshot at https://0x0.st/Xs64.png Credit can go to "Anon" or similar
groknull has joined #river
groknull has quit [Remote host closed the connection]
<ifreund> Guest50: thanks!
<NickH> Plausible deniability 😉
<ifreund> I did think that theme looked suspiciously familiar...
<ifreund> anyhow, I'm off to bed for now o7
laura_ has joined #river
<laura_> Heya all. I'm wondering if there's a way to list all current keybind mappings?
<NickH> There isn't
<laura_> Ah that's a shame. Thanks for letting me know at least
<NickH> Easist way is to read you init file
<NickH> s/you/your
<laura_> Yeah I'm doing that, trying to debug why a mapping seems to have been overwritten with something else. When I manually remap it with riverctl it says it's overwriting an existing mapping and then after manually remapping it it works properly, but beforehand that mapping doesn't seem to do anything. Not the biggest deal in the world as it's not a mapping I use often, but would help to see what mystery action it's been mapped to
<laura_> nvm, just as I was typing that message I realised the problem—I renamed a script I was calling in the mapping and forgot to change it in the init script lol, my bad
groknull has joined #river
groknull has quit [Remote host closed the connection]
Guest50 has quit [Quit: Client closed]
angry_vincent has joined #river
lillian has quit [Quit: Lost terminal]
<NickH> I'm having a look at waylock. I'd put off trying it since the README.md didn't mention anything about the input-color feature.
<NickH> One of my laptops has a slightly flaky keyboard so not having feedback on keypress is less than ideal.
<NickH> So after actually digging into the code I dound the input-color option and decided to give it a try.
<NickH> So waylock is works for me once I changed /usr/local/etc/pam.d/waylock to "auth include login"
<NickH> However input-color doesn't work as I anticipated: I had assume that on each keypress the screen would briefly switch to input-color and then switch back to init-color.
<NickH> Instead it remains input-color until unlock is either succesful or fails.
<NickH> I wonder if this alternate behaviour would be considered a reasonable option?
<leon-p> I wonder if a screenlocker version of wayprompt would make sense...
waleee has quit [Ping timeout: 268 seconds]
<NickH> That would be cool.
<NickH> How hard do you think it would be to implement?
<leon-p> The important bits are already there (text input, buffer with fancy UI rendered to it)
<leon-p> the one big requried change would be to attach that buffer to a subsurface instead of a layer-surface, but that is something I want to do anyway, because I want to use a layer-surface in the background to darken the screen
<leon-p> since singel-pixel-buffer allows me to do that with basically no memory penalty
<leon-p> but that is like number 3 or 4 on the to-do list, the top two spots are riverguile's widget system right now
<leon-p> btw, I don't think I have mentioned it here yet, just in the other channel, but wayprompt now also has an ssh-askpass implementation
<leon-p> just a simple shell wrapper around the CLI version
<leon-p> but as I said, first I want to figure out how to sync scheme and wayland lifetimes so I have a better way to refer to arbitrary widget objects in scheme code than just some made-up ID. That is border-line for outputs already, but the foreign-object thing in guile really isn't made for that...
<laura_> ifreund, you're also free to use this :) no credit/anon credit is preferred (although my name's there anyway lol, still) https://0x0.st/XsIq.png
<NickH> Dracula theme?
<NickH> And wayneko!
<leon-p> my cat code is surprisingly popular
<laura_> rosé pine theme :)
<NickH> I have it on my machine, but don't usually run it
<NickH> First I've heard of that theme
<laura_> and yes, I just installed wayneko today. It's really cute, doesn't get in the way so I just have it running at all times as a little decoration
<leon-p> if it gets too distracting, I just pushed someones patch upstream introducing a "sleepiness" option to make neko sleep a lot more
<NickH> Mind you since I settled on gruvbox a couple of years ago I've not been looking
<leon-p> the only thing missing now are a few more different animal types besides neko and the dog and I think that project at least is basically done. There were more bitmaps for different characters in oneko, but they were a bit too tacky and/or tasteless IMO
<leon-p> a pufferfish would be kinda neat
<laura_> Gruvbox is really nice, it was a runner up for rosé pine when deciding on a colour scheme for my current setup
<laura_> I love wayneko though, makes me nostalgic for desktop pets back in the day
<leon-p> you can also colour the cat btw to make it fit your theme if you like
angry_vincent has quit [Ping timeout: 264 seconds]
eShaev9z_ has joined #river
eShaev9z has quit [Ping timeout: 268 seconds]
mainiomano has quit [Ping timeout: 256 seconds]
mainiomano has joined #river
laura_ has quit [Quit: nyaa~]
<leon-p> huh, I think we have a bug in the keyboard code again: press a key with keyboard focus on one surface, surface gets destroyed, keyboard focus moves to another surface, key gets released, the new surface will get the key up event
<leon-p> do we want that?
<leon-p> maybe between normal toplevels that's reasonable, but if we jump between different shells, i.e. layer-shell to toplevel, it's not so clear anymore if that is the right behaviour
<leon-p> like, many widgets get closed with escape (fuzzel, wayprompt, etc...). Should the "escape released" event really be forwarded to the focused toplevel?
tiosgz has joined #river
<tiosgz> leon-p: the surface gets the key on wl_keyboard.enter, so it definitely makes sense to send the release event
<tiosgz> i don't know if we could send no keys on enter though, which would then need no release event
<tiosgz> (but then you couldn't, for example, ctrl-d-d-d-d to close a bunch of terminals)
<leon-p> fair, but if you f.e. close fuzzel with escape, I doubt anyone would expect the focused view to also receive that event
<tiosgz> is this any different from closing a toplevel with escape?
<tiosgz> (assuming the app accepts this)
<leon-p> technically or philosophically?
<tiosgz> technically i guess. dunno what you mean now
<leon-p> here is a real-world example: you have a fullscreen video in firefox, you open some layer shell widget on top. you close the widget with escape. firefox also receives the escape key events and evits fullscreen.
<tiosgz> i recall this issue. but were escape bound to something in tiled mode as well and ff got the escape key from a just-closed toplevel, it's the same, innit?
<leon-p> or: you use Enter to confirm a selection in fuzzel or wayprompt, the focused view also receives the enter event and of course treats it like an explicit input from the user, f.e. starting some task
<leon-p> tiosgz: not quite, that old issue was about maps
<tiosgz> i believe that's a client-side misinterpretation
<tiosgz> ah
<leon-p> the client has no way to differentiante, there is no room for interpretation
<tiosgz> there is. wl_keyboard.enter is not wl_keyboard.key (or what the event is)
<tiosgz> we could work around this anyway, but i personally would prefer not to
<leon-p> why not?
<tiosgz> (in which case, mod keys would still be better passed to the enter event)
<leon-p> mods are not the issue
<tiosgz> idk, just... we're doing what we're supposed to do? personal preferences
<leon-p> arguably at least between layer-shell and views there should be separation
<tiosgz> then that's inconsistent. if we work around it, it should be everywhere (which is also way easier to do i'd say)
<leon-p> true, that's what I'd argue for
<leon-p> just that for the layer shell it's the most obvious
<tiosgz> well, anyway. i'll try to look into it tomorrow and open a pr if everything goes good (unless you're faster than me)
<tiosgz> but still i'd prefer not to have it in
<leon-p> while the other surface only gets the release event, to my knowledge there is nothing in the protocol that says clients aren't allowed to act on it. So lazy clients will respond to the release. We are basically just inviting weird behaviour here
<leon-p> again, when I close some layer shell widget, I think the focused view really should not recevie that very same event
<leon-p> I won't be faster, my social life does not allow me to do much more than complain right now 🐈
<leon-p> but you shouldn't spend time on code yet either, I would like to hear ifreund 's thoughts on this first
<tiosgz> leon-p: i believe i see what you mean, but to me an .enter,.key(...0) sequence is different from a .key(...1),.key(...0) one. i have the "advantage" of not making any client though
<leon-p> (as a related example, if you click the "X" button to close a window, you wouldn't expect that click to "pass through" to a lower window)
<leon-p> tiosgz: well, protocol events are one thing, observable behaviour another
<tiosgz> hmm. i wonder what events happen in the cursor case
<leon-p> I mean, in a perfect world, everyone would only let their client spawn actions for pointer / key / touch events if it receives matching press and release, but people are lazy
<tiosgz> don't we live in a perfect world? :D
<leon-p> I am afraid not, but I don't want to check
<leon-p> not the only keyboard annoyance with the layer-shell btw. Back when I was still maintaining lavalauncher, I wanted to add the feature to let users configure Ctrl-Click, basically holding a modifier while clicking on a button, to some action. That is basically impossible to do cleanly with the layer shell. I tried raising that issue but did not get very far...
<tiosgz> that's a focus-on-demand layer?
<leon-p> no, it's technically supposed to be a never focused layer, just a dock with buttons. I had a hacky implementation that changed keyboard focus state life.
<leon-p> you really don't want a dock to be focused, that is weird UX
<leon-p> s/life/live
<tiosgz> ah, the windows times when it happened too often that no window was focused
<tiosgz> well, back on topic. i have a similar issue with waybar's tray context menus, where i think this could be solved by giving the popups keyboard grabs. hasn't annoyed me enough yet though
angry_vincent has joined #river
<leon-p> I do want to get into writing a panel / dock again, but I'll definitely take a more ... maintainable approach next time lol
tiosgz has quit [Quit: tiosgz]
haliucinas has quit [Quit: .]
haliucinas has joined #river
leopoldek has quit [Remote host closed the connection]
ninewise has quit [Remote host closed the connection]
ninewise has joined #river
rdbo has joined #river
<ifreund> leon-p: I also think we are doing what we are supposed to do according to the protocol with regard to keyboard enter events fwiw
The_Buhs has quit [Quit: The Lounge - https://thelounge.chat]
The_Buhs has joined #river
hmht has joined #river
lbia has quit [Quit: lbia]
alexherbo2 has joined #river
IchikaZou has joined #river
IchikaZou has quit [Remote host closed the connection]
sajcho has joined #river
<sajcho> ifreund: This problem is not related to river. Sometimes our system freezes. See: https://dpaste.com/3EFRAD4CJ. Wlroots ver. 0.17.2. I'm not sure if it's my fault or wlroots.
lbia has joined #river
<ifreund> sajcho: what river version?
<ifreund> oh, it says in the log. I forgot I made it do that :D
rdbo has quit [Quit: Client closed]
hmht has quit [Quit: leaving]
<ifreund> sajcho: why do you say "this problem is not related to river"?
<ifreund> that appears to be a river log...
hmht has joined #river
<sajcho> Because I don't know what's causing it. River or wlroots.
<ifreund> how can I reproduce the issue?
<ifreund> It's almost certainly a river bug
<ifreund> a debug log would be useful as well, `river -log-level debug`
<sajcho> Good. I will try and report back.
sajcho has quit [Quit: Client closed]
sajcho has joined #river
<sajcho> Here is the river -log-level debug output. https://dpaste.com/7PRZKNAJ7. Keyboard and mouse stop responding.
lbia has quit [Quit: lbia]
lbia has joined #river
<sajcho> I tried swaywm in ver. 1.9. Same problem with keyboard and mouse.
waleee has joined #river
sajcho has quit [Quit: Client closed]
IchikaZou has joined #river
IchikaZou has quit [Remote host closed the connection]
waleee has quit [Ping timeout: 268 seconds]
waleee has joined #river
sacodya has joined #river
sacodya has quit [Ping timeout: 260 seconds]
waleee has quit [Quit: WeeChat 4.1.2]
sacodya has joined #river
sacodya has quit [Remote host closed the connection]
lordmzte has quit [Quit: The Lounge - https://thelounge.chat]
leopoldek has joined #river
lbia has quit [Quit: lbia]
angry_vincent has quit [Ping timeout: 264 seconds]
angry_vincent has joined #river
alexherbo2 has quit [Remote host closed the connection]
rdbo has joined #river
<The_Buhs> guile breaking my brain lol
<The_Buhs> I'm trying to re-create this https://bpa.st/AKKQ with this https://bpa.st/RBCA but I can't switch between tags and I have no clue what's wrong
<The_Buhs> My layout is also not working, everything spawns floating and stays that way, but I can figure that out after
lbia has joined #river
leopoldek has quit [Ping timeout: 268 seconds]
leopoldek has joined #river
rdbo has quit [Quit: Client closed]
ayushnix has quit [Read error: Connection reset by peer]
rdbo has joined #river
alexherbo2 has joined #river
alexherbo2 has quit [Remote host closed the connection]
hmht has quit [Ping timeout: 246 seconds]
rdbo has quit [Quit: Client closed]
rdbo has joined #river
alexherbo2 has joined #river
waleee has joined #river
rdbo has quit [Quit: Client closed]
rdbo has joined #river
<leon-p> The_Buhs: take a look at how I did the tags thing: https://git.sr.ht/~leon_plickat/river-config/tree/master/item/river/init#L222
<leon-p> notably, you do not need to unquote i if you already unquote the surrounding expression
<leon-p> also try running your init in a terminal, riverguile prints error messages which hopefully help debug the layout
<leon-p> and your (let* ) is invalid: your have (let* (tagmask (ash 1 i)) ...) when it should be (let* ((tagmask (ash 1 i))) ...)
eoli3n has quit [Remote host closed the connection]
alexherbo2 has quit [Remote host closed the connection]
eoli3n has joined #river
eoli3n has quit [Remote host closed the connection]
eoli3n has joined #river
angry_vincent has quit [Ping timeout: 272 seconds]
<The_Buhs> <leon-p> The_Buhs: take a look at how I did the tags thing: https://git.sr.ht/~leon_plickat/river-config/tree/master/item/river/init#L222
<The_Buhs> that's what I based mine off of but I didn't understand how to change it since I don't have river-bnf
<The_Buhs> Thanks though, the info is helpful (hopefully) :)