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/
wsn-13 has joined #river
wsn-13 has quit [Client Quit]
wsn-13 has joined #river
wsn-13 has quit [Client Quit]
notzmv has joined #river
<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
<leon-p> interesting
<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/
<ghostbuster> thank you
<ghostbuster> is it correct to do something like: riverctl map normal $mod Return spawn alacritty
<ghostbuster> i guess i need a 'layout generator' for anything to be visible eh
<kraem> without any layout generator you'd "only" get floating windows if i'm not mistaken
notzmv has quit [Ping timeout: 250 seconds]
<ghostbuster> i copied the example config into .config/river/init and i believe it's working because mod+shift+e works to exit
<ghostbuster> but spawning alacritty doesn't cause anything to be displayed
snakedye has quit [Ping timeout: 240 seconds]
<ghostbuster> i guess rivertile is a layout generator
snakedye has joined #river
<ghostbuster> there is an error when starting: could not connect to socket /run/seatd.sock: No such file or directory
<ghostbuster> is that a problem
<novakane> but it starts normally after?
<novakane> if you use elogind that's normal that it doesn't find seatd
<ghostbuster> i normally just start sway from a virtual console
<ghostbuster> i think it starts normally but it just displays a blank screen and i can't start any apps
<novakane> but you can exit with the keybind?
<ghostbuster> yeah
<ghostbuster> i should mention that i'm using wlroots 0.16 (archlinux aur wlroots-git)
<novakane> ah well that could be a problem
<ghostbuster> the wlroots in the official repos is 0.14
<ghostbuster> so it was the only way i could test drive river
<novakane> well you could build wlroots from source too I guess
<ghostbuster> that's what i did
<ghostbuster> aur is a source package manager
<ghostbuster> or a source package repo rather
<novakane> if you start river in with `river -log-level debug` is there more info?
<ghostbuster> there is lots, but nothing that looks like an error to me
<novakane> yeah I know but building from source with checkout tag 0.15 before
<ghostbuster> oh i see
<ghostbuster> hmm now looking at the log again i do see an error
<novakane> mind sharing it in a pastebin
<ghostbuster> thread main panicked
<ghostbuster> it's possible that happened after i initiated the shutdown though
<novakane> yeah but this error is not from river though
<novakane> everything else looks good
<novakane> you could try `river -c alacritty` too to see if that works
<ghostbuster> no, and in fact that breaks mod+shift+E to exit - i guess because the init script that binds it wasn't run
Guest69 has joined #river
<novakane> did you try othes programs btw or just alacritty?
Guest69 has quit [Quit: Client closed]
<novakane> but imo the most probable answer is that because of wlroots 0.16, if not I have no idea why
sepp has joined #river
<ifreund> ghostbuster: river doesn't support wlroots master
<ifreund> it requries wlroots 0.15 as stated in the readme
<ifreund> using wlroots master despite warnings will break things, as you have found out
<ifreund> I recommend going into your wlroots-git aur package and checking out the 0.15.0 tag
pkap has joined #river
<novakane> ifreund: you see we need a check for wlroots version xD
sepp has quit [Quit: WeeChat 3.4]
<ifreund> there already is one in zig-wlroots…