<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>
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
<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]
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'`