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/
StopNGo has quit [Ping timeout: 256 seconds]
fitrh has joined #river
rodrgz has quit [Quit: WeeChat 3.7.1]
fitrh has quit [Quit: fitrh]
eShaev9z_ has joined #river
eShaev9z has quit [Ping timeout: 268 seconds]
aryak has joined #river
aryak_ has joined #river
aryak has quit [Ping timeout: 256 seconds]
aryak_ is now known as aryak
waleee has quit [Ping timeout: 256 seconds]
aryak has quit [Quit: ZNC 1.9.x-git-192-fecdd989 - https://znc.in]
silv3r has joined #river
silv3r has quit [Client Quit]
aryak has joined #river
StopNGo has joined #river
jao has quit [Ping timeout: 256 seconds]
alebastr has quit [Remote host closed the connection]
alebastr has joined #river
ayushnix has quit [Remote host closed the connection]
gwizon has quit [Quit: leaving]
ayushnix has joined #river
ayushnix has quit [Changing host]
ayushnix has joined #river
gwizon has joined #river
hryx has quit [Ping timeout: 256 seconds]
ayushnix has quit [Ping timeout: 260 seconds]
ayushnix has joined #river
ayushnix has quit [Changing host]
ayushnix has joined #river
questionable_ole has quit [Quit: WeeChat 3.6]
questionable_ole has joined #river
ayushnix has quit [Ping timeout: 260 seconds]
waleee has joined #river
gwizon has quit [Remote host closed the connection]
vyivel has quit [Ping timeout: 255 seconds]
ayushnix has joined #river
ayushnix has joined #river
ayushnix has quit [Changing host]
vyivel has joined #river
Ordoviz has joined #river
gwizon has joined #river
gwizon has quit [Quit: leaving]
gwizon has joined #river
eShaev9z_ has quit [Remote host closed the connection]
jao has joined #river
hryx has joined #river
ayushnix has quit [Remote host closed the connection]
ayushnix has joined #river
gwizon has quit [Ping timeout: 256 seconds]
LemanR has joined #river
<LemanR> hey all, I'm on gentoo and am wondering, can `riverctl spawn "command" ' format work? in this case " riverctl spawn "gentoo-pipewire-launcher"
<LemanR> in other words, does spawn need some key binding?
<tleydxdy[m]> try it in the shell?
<plumeus> Was going to suggest that too
<LemanR> true, after I typed that I thought that I could test it, about to do so actually lol
<LemanR> so brb
LemanR has quit [Quit: Client closed]
<plumeus> tbh, idk why `spawn` is necessarily a thing
<plumeus> it's just syntax sugar around `/bin/sh -c`, right? Could always just define it yourself in the config file
<plumeus> oh, I guess it's because `map` only takes a command that may be run with `riverctl`
<plumeus> so yeah, I don't see how `spawn` is that useful outside of the context of `riverctl map`
<plumeus> or stuff like `map-switch`, etc
LemanR has joined #river
LemanR has quit [Client Quit]
LemanR has joined #river
LemanR has quit [Client Quit]
LemanR has joined #river
LemanR has quit [Client Quit]
LemanR has joined #river
<LemanR> so it appears to work.....sometimes
LemanR has quit [Client Quit]
LemanR has joined #river
<LemanR> this is odd, using that riverctl spawn "gentoo-pipewire-launcher" works in the terminal but not on the init script.
<LemanR> btw anyone here use a init script that is not in bash they wouldn't mind sharing?
<plumeus> btw, what prevents you from just doing `gentoo-pipewire-launcher` without the `riverctl spawn` in the script?
<plumeus> I use POSIX shell
<plumeus> does that count?
<LemanR> sometimes I forget then I think it's a bluetooth issue when it's user issue
<LemanR> and sure, I just want to see what changes from bash to anything else
<LemanR> today I was frustrated for 20minutes then realized I forgot to launch that command
<plumeus> honestly, I changed very very little from the default configs
<LemanR> what I'm interested in is what would the script look like in say haskell or common lisp or C etc.
<plumeus> You did check the examples provided in the river wiki, right? I presume that wasn't enough
<LemanR> was that added in the last few months? guess I forgot those existed, I thought I had searched river github for such example
<LemanR> but thanks
<plumeus> Pretty sure it's a fairly recent addition
<plumeus> hmm, Lua was since March 7, Perl in August 31
<LemanR> well it looks like it is highly language specific.
<plumeus> Well, the ease of invoking external processes seems like so
<LemanR> I honestly have not used a non-bash language to launch a program or do that sort of activity except for creating a file
<plumeus> Just use POSIX shell, smh
<plumeus> I never needed bashisms, I think.
<LemanR> lol why is POSIX > Bash
<plumeus> well, POSIX shell is more portable, has way faster implementations like `dash`, and I just never needed Bashisms
<plumeus> idk how Bash differs from POSIX shell because I've been fairly comfortable in POSIX and never ventured.
<plumeus> https://github.com/riverwm/river/blob/master/protocol/river-control-unstable-v1.xml might be the thing to use if trying to interface with C? No idea...
LemanR has quit [Quit: Client closed]
<plumeus> And unless you're doing something fairly unique, most bash scripts probably are POSIX-compliant, or becomes so with very minimal tweaking. So yeah. `shellcheck` is my friend.
<tleydxdy[m]> bash have some niceties for interactive use imo
<tleydxdy[m]> but more complicated I'll just go with python
LemanR has joined #river
<plumeus> hmm, I do admit I never really worked with much interactive scripts bar a few "y/n" prompts or choosing from like 2-3 predefined options and making it show up in something like `dmenu`
<LemanR> similar to me as well. I'm curious why riverctl spawn "gentoo-pipewire-launcher &" doesn't work except for directly on the terminal.
<LemanR> I just tried adding dbus-launch and same thing occurs
<plumeus> btw, why do you need `riverctl spawn`?
<plumeus> Does it not work if you omit that?
<LemanR> OH i see what you mean't lol for some reason when working on this init I forget it's simply a bash script
<plumeus> *meant
<plumeus> What if it was a fish script all along?
<LemanR> would the devs be so evil o.0
<plumeus> I never used fish. The people who use it seem to love it though.
<plumeus> I would consider it but it's not a superset of POSIX shell, unlike bash.
<plumeus> or zsh
<LemanR> bash is a subset of POSIX?
<plumeus> "You'll never write `esac` again."
<plumeus> lol
<LemanR> or am I getting that backwards
<LemanR> nvm
<LemanR> and brb
<plumeus> `/bin/sh` is expected to be POSIX-compliant
<tleydxdy[m]> > interactive scripts
<tleydxdy[m]> no I mean like using it as the shell
LemanR has quit [Quit: Client closed]
<plumeus> Bash is just POSIX shell with more features and weird GNU stuff, I would think
<tleydxdy[m]> * interactive shell
<tleydxdy[m]> err I can't type today
<tleydxdy[m]> the most frequent one is {1..10} for me
<plumeus> oh, you mean you prefer bash for your terminal and stuff?
<tleydxdy[m]> yeah
<plumeus> I prefer `seq`
<plumeus> but yeah, POSIX shell for terminals would suck. Most "barely compliant" shells don't even have tab completion
<plumeus> I mean, `seq 10` or `seq 1 10` is just as legible as `{1..10}` and I think it's a POSIX utility?
<tleydxdy[m]> yeah but {01..10}
LemanR has joined #river
<plumeus> hmm, never really knew about that. Been just using `printf` for appending 0s
<tleydxdy[m]> also seq is gnu as well
<plumeus> oh well
<LemanR> -.- still not working despite testing the command on a bash script by it'self, wonder if I have to wait for some process or if this command should go on the bottom or something
<plumeus> Yeah, then something is likely wrong
<plumeus> You said it works "sometimes", are you sure it's not causing issues when you have multiple instances running or something silly like that?
<LemanR> well that issue occurs even on fresh reboot
<tleydxdy[m]> most plausible suspect is dbus
<tleydxdy[m]> it's always dbus
<LemanR> lol brb
LemanR has quit [Client Quit]
<plumeus> It's always DBus, Novideo, XWayland, some-weird-GTK-feature
LemanR has joined #river
<LemanR> i'll have to figure this out later.
<plumeus> Hmm, maybe I should give `fish` a try. I've also heard of `nushell` but I don't really see the appeal.
LemanR has quit [Client Quit]
LemanR has joined #river
<plumeus> I've liked `zsh` the most in regards to autocompletion but it wasn't that good out of the box, especially regarding the prompt and lacking ctrl-r
<LemanR> buh bye all
LemanR has quit [Quit: Client closed]
Ordoviz has quit [Ping timeout: 252 seconds]
alebastr has quit [Ping timeout: 256 seconds]
Ordoviz has joined #river
alebastr has joined #river
gwizon has joined #river
hryx has quit [Ping timeout: 256 seconds]
waleee has quit [Ping timeout: 256 seconds]
Ordoviz has quit [Ping timeout: 260 seconds]
hryx has joined #river
gwizon has quit [Ping timeout: 252 seconds]
gwizon has joined #river
hryx has quit [Ping timeout: 268 seconds]
hryx has joined #river
notzmv has quit [Ping timeout: 240 seconds]
waleee has joined #river