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/
silv3r has quit [Ping timeout: 246 seconds]
silv3r has joined #river
talismanick has quit [Ping timeout: 240 seconds]
lbia has joined #river
talismanick has joined #river
waleee has quit [Ping timeout: 244 seconds]
<talismanick> As river supports nested sessions, I presume it's possible to sandbox a session around a single app?
snakedye has quit [Ping timeout: 276 seconds]
talismanick has quit [Remote host closed the connection]
talismanick has joined #river
anb1 has joined #river
anb1 has quit [K-Lined]
lxsameer has quit [Ping timeout: 246 seconds]
peregrinator has joined #river
vaivis has joined #river
peregrinator has quit [Read error: Connection reset by peer]
vaivis has quit [Read error: Connection reset by peer]
vaivis has joined #river
vaivis has quit [Ping timeout: 246 seconds]
vaivis has joined #river
vaivis has quit [Ping timeout: 246 seconds]
vaivis has joined #river
vaivis has quit [Ping timeout: 258 seconds]
silv3r has quit [Quit: WeeChat 3.5]
vaivis has joined #river
talismanick has quit [Read error: Connection reset by peer]
talismanick has joined #river
<ifreund> talismanick: I'm not sure quite what you mean by sandbox there
<ifreund> you can certainly run only
<ifreund> you can certainly run only a single program in a nested session, but I don't really see the point of that
vaivis has quit [Ping timeout: 246 seconds]
vaivis has joined #river
vaivis has quit [Ping timeout: 246 seconds]
snakedye has joined #river
snakedye_real has joined #river
snakedye_real has quit [Ping timeout: 252 seconds]
vaivis has joined #river
vaivis has quit [Ping timeout: 258 seconds]
talismanick has quit [Ping timeout: 250 seconds]
snakedye has quit [Ping timeout: 258 seconds]
snakedye has joined #river
lxsameer has joined #river
vaivis has joined #river
vaivis has quit [Ping timeout: 240 seconds]
vaivis has joined #river
snakedye has quit [Ping timeout: 255 seconds]
snakedye has joined #river
vaivis has quit [Ping timeout: 246 seconds]
Nooboloid has joined #river
Nooboloid has quit [Client Quit]
pmnw has joined #river
vaivis has joined #river
<pmnw> Hey. Is there some built-in way to indicate which of the defined modes is active?
<ifreund> pmnw: no, there isn't currently
<ifreund> it would probably make sense to have one though
<nor[m]> This is not exactly built-in but more of a hack: you technically could change the focused windows border color when changing modes :D
<ifreund> hah, I feel like nor[m] uses river in a way nobody else does :D
waleee has joined #river
<pmnw> ifreund: Thanks for the info. nor[m]: "a hack" is an understatement :D
<ifreund> you could also write the mode name to a file in /tmp at the same time as changing modes...
<nor[m]> ifreund: That happens with any window manager :D None is exactly right for me. But being completely foreign to coding and somewhat new (2 years) to Linux creating my own is not feasible. So I just go with what features are most important to me (currently wayland + tags = river) and just hack the configuration file in very unconventional ways xD
<pmnw> River's ability to bind a mode to None <key> is a powerful selling point to me. I can then remap Caps_Lock to Menu and have None Menu open a mode of modes of modes, and scripts behind them, so basically everything becomes a keychord. Sway always requires a modifier, but it has a red field in the status bar area that can indicate the enabled mode or even list key options. Very nice. I have to think of a way that could look in River,
<pmnw> including in a setup without the bar...
<pmnw> I even like to have a layout mode where all layout-related bindings are striped of their primary modifier (Super) so that I can just hjkl to move around without holding down Super, and then just reverse to the default mode after I'm done. That helps explain why a mode indicator would be nice.
adelaide has joined #river
<ifreund> Yeah I definitely see a use-case for a mode indicator
<tiosgz> this is a great use case for nor's approach of changing border colors imo
<tiosgz> a "label somewhere on the bar" would be quite hard to see, though you could recolour the bar too
<ifreund> It would be pretty straightforward to add an event to the river-status protocol for the current mode
<ifreund> I'm not very interested in implementing anything client side for that right now though
<ifreund> If someone wants to do a waybar implementation or similar I'd be happy to do the server side
<tiosgz> ifreund: i can try my hand at it
<tiosgz> though i'd like some suggestions as for how everyone would imagine it to behave
<pmnw> I was thinking of something like a small coloured box with a short identifier in the corner; [Layout mode] [Utilities mode] [Media mode]... Enabled for a list of modes or even everything except Normal/Locked. Speaking of hacks, first one I thought of was notify-sending the mode name to mako or fnott, but that's such a troll idea.
<tiosgz> ah wait. i guess there's a precedent with all waybar's formats & css classes
<ifreund> tiosgz: yeah, the UI aspect of it is what I wasn't really interested in dealing with xD
<ifreund> though waybar is so uber modular that you wouldn't need to make many decisions I don't think
<ifreund> the protocol change would probably just be this https://0x0.st/oBtX.diff
<tiosgz> just smash there a "format":"{mode}", innit? :P
<tiosgz> can you also add a river patch in the next days so i can then test against it?
<ifreund> tiosgz: shouldn't take me very long :)
<adelaide> Does anyone else's mako crash the entire system when the notification is too big?
<ifreund> adelaide: You're probably hitting a bug that's been fixed on river's master branch for a while :/
<adelaide> I see
<adelaide> I googled the issue last week but didn't seem to find any conversation about it
<ifreund> I'll be releasing river 0.2.0 as soon as wlroots 0.16.0 is out, which shouldn't be much more than a month now
<adelaide> For now I'll just install the master branch then
<tiosgz> ifreund: btw did you raise the correct interface's version?
<ifreund> tiosgz: yes, but I forgot to also raise the version of zriver_seat_status_v1 to 3
<tiosgz> guess i still don't fully understand some aspects of the protocols
<ifreund> clients only get to choose the version of globals they bind
<ifreund> for objects created using those globals, the version the client bound the global at is used
<tiosgz> was on my search for that doc. thanks
<ifreund> no problem!
<pmnw> Is there a way to bind a sequence of two or more riverctl commands to a key? Something like: <riverctl map programs None E spawn 'emacsclient -c -- 1>/dev/null && enter-mode normal'> so that mode gets reversed to normal after a command?
<tiosgz> you can `map -release`
<ifreund> or alternatively span a shell script that runs any arbitrary riverctl commands
<ifreund> s/span/spawn/
<pmnw> Alright, thanks. Both options will do.
<nor[m]> I just noticed the -release way has this benefit:
<nor[m]> You can loop over all "final modes" (the modes that don't lead to yet another mode, but only the normal mode after triggering an action).
<nor[m]> Then within that, loop over all relevant keys (possibly a - z). Combine -release with the mode you are in and the key and tell riverctl to enter normal mode.
<nor[m]> If you have a bunch of launch keychords and trigger-some-action-keychords and you do this right, this can kill a bunch of birds with one stone.
<pmnw> Indeed could make for an interesting customisation.
pmnw has quit [Quit: ERC 5.4 (IRC client for GNU Emacs 28.1)]
snakedye has quit [Read error: Connection reset by peer]
snakedye has joined #river
snakedye has quit [Ping timeout: 255 seconds]
snakedye has joined #river
waleee has quit [Ping timeout: 272 seconds]
vaivis has quit [Ping timeout: 244 seconds]
vaivis has joined #river
<tiosgz> oh, damn. i'm still trying to understand waybar's codebase :D
<tiosgz> thanks!
<nor[m]> ifreund: You mentioned 0.2.0. Is there already something to read on what will be new somewhere?
<ifreund> nor[m]: not really aside from the commit log
<ifreund> I guess I listed some notable features at the end of my last blog post: https://isaacfreund.com/blog/2022-05/
adelaide has quit [Remote host closed the connection]
talismanick has joined #river
lxsameer has quit [Ping timeout: 240 seconds]
Guest63 has joined #river
Guest63 has quit [Client Quit]
waleee has joined #river
vaivis has quit [Ping timeout: 246 seconds]
vaivis has joined #river
vaivis has quit [Read error: Connection reset by peer]
<anniehallmoon> ifreund: still using void Linux ?
lxsameer has joined #river
<mizzunet> How can I map a key to run ` pkexec bash -c 'kexec -l /boot/vmlinuz-linux-xanmod-edge --initrd=/boot/booster-linux-xanmod-edge.img --reuse-cmdline && kexec -e'`
<mizzunet> riverctl Control+Alt Delete spawn "pkexec bash -c 'kexec -l /boot/vmlinuz-linux-xanmod-edge --initrd=/boot/booster-linux-xanmod-edge.img --reuse-cmd
<mizzunet> line && kexec -e'"
<mizzunet> didn't work
<ifreund> anniehallmoon: yep
<ifreund> mizzunet: if the quoting is giving you trouble you can always put it in a script and run that
snakedye_real has joined #river
<tiosgz> for those interested, a river/mode waybar module is done: https://github.com/tiosgz/Waybar/tree/river-mode
<tiosgz> still need to recheck the code and copy-paste the manpage before submitting a PR
<tiosgz> pmnw: ^
snakedye has quit [Ping timeout: 255 seconds]
snakedye has joined #river
<ifreund> tiosgz: neat, I'll test it and then merge the river PR tomorrow
lxsameer has quit [Ping timeout: 246 seconds]
lxsameer has joined #river
pmnw has joined #river
snakedye has quit [Ping timeout: 258 seconds]
snakedye has joined #river
snakedye_real has quit [Quit: snakedye_real]
<NickH> Nice. This also lead me to discover that Waybar now has a river/window module. Happy days!