<leon-p>
a wrapper script is over-complicating it a bit I think. Anyway, functions you define in a script can't be called in another if you merely execute it. YOu have to source the script with the definitions, but again that is really over-complicating it
<Pound_Hash>
Well, I have a lot of configurations to do
<leon-p>
sure, then create a script with the function definitions. But using that as a "wrapper" will not work. function definitions are not shared to children like env vars are. You'll have to source that script, treat it like a library
<Pound_Hash>
So my setup is: in `/etc/profile.d/` I have three scripts. One to determine time of day and set several environment variables. It also sources two other scripts depending on the time, one script called `light` and another called `dark`
<Pound_Hash>
These are all in /etc/profile.d
<Pound_Hash>
In the `light` and `dark` scripts, I define the specific environment variables for the respective times of day
<Pound_Hash>
Finally, river runs and loads init. In the init, I have it run the `riverctl` commands
<leon-p>
so instead of doing the profile thing with scripts containing functions, why not just turn the functions into scripts and plop them into your bin/ ?
<Pound_Hash>
I only have one function
<Pound_Hash>
The scripts are only setting environment variables, with the exception of running one `sed` command (for kakoune's config) and lastly this issue with river's colors
<leon-p>
so what exactly is the thing that is "not working" then?
<Pound_Hash>
If I define this one function in a script loaded by pam in profile.d/ , then should I try exporting it? Or should I `source` it?
<Pound_Hash>
The one thing that isn't working is setting river's colors via rivertctl
<leon-p>
are your sure whatever calls your riverctl colour script has WAYLAND_DISPLAY in its env?
<Pound_Hash>
I can put the commands in a variable and run eval
<Pound_Hash>
But that's not secure
<Pound_Hash>
I want to get in the habit of writing good code
<Pound_Hash>
River's init calls the function (or runs the eval)
<Pound_Hash>
The functions/variables have already been defined in previously run scripts (those run by pam)
<leon-p>
my best advice would be to first reduce the complexity of your setup a bit. don't export functions, just write callable scripts
<Pound_Hash>
Okay
<Pound_Hash>
I'll try
<Pound_Hash>
Thanks
Pound_Hash has quit [Remote host closed the connection]
waleee has quit [Ping timeout: 255 seconds]
Nulo has quit [Ping timeout: 272 seconds]
Nulo has joined #river
eShaev9z_ has joined #river
eShaev9z has quit [Ping timeout: 268 seconds]
xaltsc_ has joined #river
alebastr_ has joined #river
tdeo_ has joined #river
ghostbuster has joined #river
alebastr has quit [Killed (NickServ (GHOST command used by alebastr_))]
alebastr_ is now known as alebastr
DemiMarie1 has quit [*.net *.split]
ghostpepper has quit [*.net *.split]
xaltsc has quit [*.net *.split]
tdeo has quit [*.net *.split]
daurnimator has quit [*.net *.split]
tdeo_ is now known as tdeo
hill has joined #river
DemiMarie1 has joined #river
notzmv has quit [Ping timeout: 268 seconds]
snakedye has quit [Ping timeout: 252 seconds]
daurnimator has joined #river
hill has quit [Remote host closed the connection]
hill has joined #river
aryak has joined #river
aryak has quit [Ping timeout: 252 seconds]
aryak has joined #river
notzmv has joined #river
aryak has quit [Ping timeout: 252 seconds]
aryak has joined #river
daurnimator has quit [Ping timeout: 244 seconds]
daurnimator has joined #river
fitrh has joined #river
fitrh has quit [Read error: Connection reset by peer]
fitrh has joined #river
Guest86 has joined #river
Guest86 has quit [Client Quit]
fitrh_ has joined #river
fitrh has quit [Ping timeout: 252 seconds]
fitrh_ has quit [Quit: fitrh_]
snakedye has joined #river
chismoso has joined #river
<chismoso>
installed on voidlinux. opens with coloured background and a cursor. no key strokes working. already placed init to /.config/river and made it executable.
<ifreund>
chismoso: the correct path is ~/.config/river/init
<ifreund>
or $XDG_CONFIG_HOME/river/init
<chismoso>
yes. init file is in ~/.config/river
chismoso has quit [Quit: Leaving]
<ifreund>
chipps: and what is in that init file?
Abdullah has quit [Ping timeout: 268 seconds]
hill has quit [Ping timeout: 252 seconds]
hill has joined #river
hill has quit [Remote host closed the connection]
aryak has quit [Quit: ZNC 1.8.2+deb2+b1 - https://znc.in]
<novakane>
also if this is from the void repo package, don't use the init example from the master branch
<ane>
interesting, for some reason gcr-prompter, the GUI prompter doesn't start on river when using gnome-keyring as the ssh agent
<ane>
on sway it works just fine, the gui prompt appears, but on river it just fails
<ane>
i.e. doing ssh blah on sway brings up a graphical passphrase prompt; on river nothing appears and the signing fails
<ane>
I checked the output of "env" and there isn't anything obvious there ... both wm's execute the eval + export thing
aryak has joined #river
<ane>
aha, "gcr-prompter[12731]: cannot open display:"
<ane>
wtf is that
<ane>
ok wtf doing "dbus-update-activation-environment --systemd WAYLAND_DISPLAY" fixes this
plebbos has quit [Remote host closed the connection]
plebbos has joined #river
plebbos has quit [Remote host closed the connection]
plebbos has joined #river
plebbos has quit [Remote host closed the connection]
snakedye has quit [Ping timeout: 268 seconds]
snakedye has joined #river
<ifreund>
ew
<n0r>
Do windows know if they are hidden or shown?
<ifreund>
n0r: not really. If they're hidden river will stop sending them frame callbacks though to avoid pointless rendering
<NikhilSingh[m]1>
suggest any calender application CLI one will do the job too.
<tleydxdy[m]>
cal
vertical24 has joined #river
vertical24 has quit [Client Quit]
snakedye has quit [Ping timeout: 244 seconds]
snakedye has joined #river
fitrh has joined #river
snakedye has quit [Read error: Connection reset by peer]
snakedye has joined #river
fitrh has quit [Remote host closed the connection]
snakedye has quit [Ping timeout: 252 seconds]
snakedye has joined #river
snakedye has quit [Read error: Connection reset by peer]
snakedye has joined #river
DZoidberg_ has joined #river
<DZoidberg_>
I have a small question about river. Is there are equivalent to sways `assign` command?
<DZoidberg_>
for riverctl
<DZoidberg_>
Or do you this with a custom client which interacts with some river wayland protocols
<n0r>
Chromium is on tag c and when I switch to it, chromium seemed to be aware of the pressed c. So I tested with wev, opened it in tag w, held down super and pressed w a few times. Wev repeatedly noticed me releasing w, but not pressing w. (Super w is mapped to setting focused tags to tag w of course). This is weird and in the case of chromium annoying. Can I change that? Does this mean I messed up my mappings?
<tleydxdy[m]>
how did you bind the keys
<tleydxdy[m]>
also are you building from master?
<n0r>
No, river 0.1.3
<n0r>
tag=1
<tleydxdy[m]>
yeah use master
<n0r>
for key in A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
<tleydxdy[m]>
that release is super outdated
<n0r>
riverctl map normal Mod4 "$key" set-focused-tags $tag
<n0r>
I am way to dumb to compile stuff myself.
<tleydxdy[m]>
river is not very bad
<tleydxdy[m]>
take a look at the readme,
<n0r>
Yeah that assumes a ton of knowledge I really don't have. Also not sure how that would work for me at all since I'm on NixOS which handles installed software very differently.
<tleydxdy[m]>
nixos, cool, you should be able to edit it off their script ig
<tleydxdy[m]>
just tell it not to get the tag
<n0r>
Not sure how to do that. I'll look into that when I got time, at least now I know this is different in master.
<n0r>
Btw why have releases if everyone is expected to build master ;)
<tleydxdy[m]>
yeah big-releases controll the software industry, sadly
<novakane>
DZoidberg_: there is no equivalent in river and you can't do this in an other client
<DZoidberg_>
ok
<DZoidberg_>
maybe ill try to contribute that as a feature to river.
<DZoidberg_>
thanks for your response
draak has joined #river
notzmv has quit [Ping timeout: 268 seconds]
waleee has joined #river
snakedye has quit [Ping timeout: 268 seconds]
snakedye has joined #river
Abdullah has joined #river
elshize has quit [Ping timeout: 268 seconds]
elshize has joined #river
draak has quit [Quit: WeeChat 3.6]
<ifreund>
n0r: yeah it's been waaay too long since the last river release, I've been waiting on wlroots 0.16.0 but I expected that to release a month or 2 ago :/
<alebastr>
ifreund: river master still uses wlroots 0.15, right? Have you considered making another release before updating to 0.16?
<ifreund>
alebastr: I'd rather not, I'd like 0.2.0 to drop wlr-input-inhibit for ext-session-lock
<ifreund>
which has been ready in wlroots master since like january
Pound_Hash has joined #river
notzmv has joined #river
snakedye has quit [Ping timeout: 255 seconds]
snakedye has joined #river
Pound_Hash has quit [Quit: Pound_Hash]
Guest42 has joined #river
snakedye has quit [Remote host closed the connection]
snakedye has joined #river
<Guest42>
how can I setup fibonacci tiling layout without a layout generator