<kraem>
ifreund: i tried home row mods for a couple of days some months ago. switched back because of something i couldn't fix with qmk that annoyed me. since i can't remember what it was, maybe it's time to try again :)
<kraem>
if i start river with greetd. what'd waybar need to connect to/open the display? any speicif env vars or anything? i've got a systemd user service that has `After=graphical-session.target` but it fails with `Error reading events from display: Broken pipe` and `cannot open display:`. sorry about the slightly off topic question, hope that's ok.
<kraem>
s/speicif/specific/
novakane_ has joined #river
ghostbuster has joined #river
tdeo has quit [Ping timeout: 240 seconds]
LorisCro[m] has quit [Ping timeout: 240 seconds]
novakane has quit [Ping timeout: 240 seconds]
novakane_ is now known as novakane
tdeo has joined #river
LorisCro[m] has joined #river
waleee has quit [Ping timeout: 240 seconds]
notzmv has quit [Ping timeout: 240 seconds]
notzmv has joined #river
<ifreund>
kraem: it's probably easiest to start waybar from river's init script
<ifreund>
WAYLAND_DISPLAY is the environment variable wayland clients use to connect to river though
<kraem>
thanks. i didn't define any outputs in the waybar config as i want it displayed on all my outputs. as soon as i gave it an output it started fine.
<ifreund>
nice :)
<kraem>
oh i just realised i gave it an empty list for outputs. as soon as i excluded the key "outputs" in the config it set itself up on all outputs :) makes sense
<leon-p>
it would actually be kinda cool to have some sort of user session service manager to autostart and configure things and notify the user when something dies. With simple dependency management and scripting capabilities, it could be pretty useful. If it additionally supports the XDG autostart spec, it would not even have to be super niche.
<leon-p>
there is of course user serivces in systemd, but the divide between what a user session is in Wayland, DBUS, systemd, etc.. makes it pretty annoying to use.
<ifreund>
leon-p: I run my long running user session stuff under river like waybar or foot --server in a runsvdir
<novakane>
yep same, and for layout generator it's pretty great, for example I have service for rivercarro and stacktile running and I can just use `riverctl default-layout <namespace>` to change
<dnkl>
And I use s6
<ifreund>
dnkl: do you have your setup online somewhere? s6's documentation has always been pretty inpenetrable to me and there aren't many simple examples out there
<ifreund>
another question, do you use any s6 features that runit doesn't have? (e.g. proper dependency management)
<dnkl>
ifreund: unfortunately not... It's not the easiest setup, add it involves copying a static sv dir to a runtime from which the service manager is run...
<dnkl>
Not much dependencies in my user session
<ifreund>
yeah I have to do the same thing for runsvdir
<dnkl>
But my system services makes heavy use of it
<novakane>
heh I have a dir with all my service where I syslink to a dir for the one I want to start at boot that is syslinked to a dir in xdg_runtime_dir so :P
<ifreund>
dnkl: so are you running arch linux without systemd then?
<novakane>
ah no that a copy in runtime_dir though
<dnkl>
ifreund: artix - it's an arch derivate that offers many different init systems (but not systemd)
<ifreund>
ah yeah, I've seen that one
<novakane>
ah I also though you were using arch, almost used artix of void when I wanted to change
<ifreund>
seemed to not be as well maintained as void though from a distance, so I swtiched from arch to void instead
<dnkl>
I haven't had any issues with it, and things are being kept up-to-date, add far as I can tell
<novakane>
I guess artix is cool because of the choice of init system and I assume you probably can use the aur, but tbh now that I tried xbps I don't regret it
<dnkl>
Right now arch itself is falling being on glibc though, which is a bit worrisome
<dnkl>
But I did consider void as well, before switching to artix
<dnkl>
And yes, the AUR is working just fine :)
<novakane>
you want musl?
<ifreund>
having read some of both glibc and musl's source code, I'm hoping to switch most of my systems over to musl eventually
<ifreund>
I quite like the look of https://chimera-linux.org/ which was started by one of the void developers
<ifreund>
already running void musl on my laptop
<novakane>
ifreund: you don't have any problems with it, I hesitated a long time but I didn't want to struggle with it
<ifreund>
have you tried running steam in a glibc chroot or something? I still want to play the binding of isaac every now and then
<novakane>
Dinit? hmm never heard of it
<novakane>
I don't use games on this I still have a windows pc
<novakane>
oh, but that was a question I forgot '?', I'm on glibs ^^
<novakane>
s/glibs/glibc/
<ifreund>
ah lol
<ifreund>
no, void musl runs great
<ifreund>
you'll probably have issues running proprietary software though
<novakane>
do you need to use glibc chroot often?
<ifreund>
I haven't bothered to figure out how it works yet
<novakane>
I can imagine
<novakane>
but now I'm too lazy to change to musl xD
user181308142001 has joined #river
<user181308142001>
Hi, I am getting a strange crash on river (which may not be related to river) which shuts down my entire machine.
<user181308142001>
The crash occrus wheneven I start playing a video file in mpv, and I personally suspect the audio server might have something to do with it
<user181308142001>
here is a log https://pastebin.com/BdxfisnF , if anyone has even the slighest clue as to what is goind on, please tell me
<user181308142001>
PS. I am running river 1.0 on voidlinux aarch64-musl
user181308142001 has quit [Client Quit]
user181308142001 has joined #river
user181308142001 has quit [Client Quit]
user181308142001 has joined #river
<user181308142001>
Okay nevermind I kinda figured it out and it is not a river proble at all
<user181308142001>
In case anyone was intressted, I notices the problem only ocurred when playing audio at high volumes (with mpv in my case). I guess the battery has degraded a bit and couldn't keep up with the sudden spike (?) Since the problem does not occur with the charger pluged in
<user181308142001>
¯\_(ツ)_/¯
user181308142001 has quit [Client Quit]
<ifreund>
so, home row mods seem nice, i just need to tweak the settings a bit more it seems to allow for my pretty fast typing speed
<ifreund>
i think this is going to make using kakoune much nicer, with the number of alt+shift bindings there are
<kraem>
ifreund: nice! ping me if/when your configuration goes public :)
<kraem>
leon-p: i read your blog posts about river. i must say they're really well written
<ifreund>
kraem: sure!
raiaq has joined #river
<kraem>
i vaguely remember typing speed was the culprit when i tested home row mods. could have been something like it triggered the mods while typing too fast
<kraem>
i'm trying to figure out why my waybar systemd service isn't started at login. i thought having an after=graphical-session.target would suffice but clearly not.. T_T
<ifreund>
can't help with systemd, sorry
<kraem>
no worries. i'll get it sorted eventually
<kraem>
so i've started playing around with a nested river session. am i understand it correctly that enabling passthrough mode would send my keyboard events to the nested session?
<kraem>
yeah it seems my mapping for passthrough mode just didn't work. entering the command manually seems to do it :)
<novakane>
there is an example mapping for passthrough in the exxample/init
<kraem>
yeah i was using that one but forgot where f11 was mapped on my keyboard.. oops hehe. everything is working as expected after finding where i mapped my function row to :)
<novakane>
ah well, I guess that one of the problem of these keyboards lol
<dnkl>
kraem: can't really help with systemd, but suspect some environment variables (at least WAYLAND_DISPLAY) needs to be propagated to the waybar service.
<kraem>
novakane: can be. in this case my muscle memory was using my previous mapping though
<kraem>
dnkl: it has the required environment as i can start it after logging in. it's just i can't get it triggered on logging on
<novakane>
isn't systemd has something with dbus to get env variables
<dnkl>
Maybe obvious, but "after" enforces ordering. It doesn't automatically enable the service
elshize has quit [Ping timeout: 240 seconds]
elshize has joined #river
zaynetro[m] has left #river [#river]
<kraem>
finally solved it by defining the service with PartOf instead of After and explicitely starting the graphical-session.target in the river init script. i thought graphical-session.target was started automagically when launching river with greetd. thanks for the help :)
snakedye has joined #river
monaaraj has joined #river
Guest45 has joined #river
Guest45 has quit [Client Quit]
<leon-p>
kraem: glad you like them!
monaaraj has quit [Ping timeout: 250 seconds]
monaaraj has joined #river
waleee has joined #river
<kraem>
can i somehow have the repeat rate applied to my mapped keybindings in river? i'd like it for my volume / screen brightness buttons. right now river only reads one push of the buttons if i hold them
<ifreund>
kraem: there's a -repeat option for the map command
monaaraj has quit [Ping timeout: 250 seconds]
<kraem>
perfect thanks
monaaraj has joined #river
monaaraj has quit [Ping timeout: 256 seconds]
<kraem>
reading the man page for river i see it's sending SIGTERM to all processes started. trying to create a cleanup program which listens for that signal i can't seem to "catch" signal 15 but zsh just prints out "terminated". my google-fu isn't helping me at the moment. is this something some caveat with shells not passing on sigterm?
<kraem>
s/something//
monaaraj has joined #river
<ifreund>
kraem: maybe try a simple `trap 'echo "hello, I am dying"' TERM` in your int script?
<ifreund>
s/int/init/
<ifreund>
disclaimer: i've never tried to do this
* kraem
reads up on trap
<kraem>
actually it was working all along. of course the name of sig 15 is "terminated". i was confused because backgrounding the process in with `&` made zsh prepend the message with "zsh:"
<kraem>
sorry about the noise
<ghostbuster>
hi.. sway user here, trying to get river running for the first time - is there a good minimal example config that will let me eg. start a terminal emulator and exit river? right now i just get a blank screen when i start it
<novakane>
ghostbuster: there is an example init in example/