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
<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>
`/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
<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