ChanServ changed the topic of #river to: river - a dynamic tiling Wayland compositor || https://codeberg.org/river/river || channel logs: https://libera.irclog.whitequark.org/river/
mtm has quit [Ping timeout: 252 seconds]
mtm has joined #river
MyNetAz has quit [Remote host closed the connection]
notzmv has joined #river
talismanick has joined #river
talismanick has quit [Remote host closed the connection]
palanix_ has joined #river
palanix has quit [Ping timeout: 265 seconds]
palanix_ is now known as palanix
notzmv has quit [Ping timeout: 265 seconds]
Guest83 has joined #river
Guest83 has left #river [#river]
yqshao has joined #river
Guest78 has joined #river
Guest1031 has joined #river
Guest78 has quit [Quit: Client closed]
Guest1031 has quit [Client Quit]
elshize has quit [Ping timeout: 248 seconds]
Guest55 has joined #river
Guest55 has quit [Quit: Client closed]
Dislucky has joined #river
Dislucky has quit [Client Quit]
choucavalier has joined #river
<choucavalier> i'm trying to set up a systemd user unit for kanshi (using river on arch linux). for sway they have this unit file: https://github.com/xdbob/sway-services/blob/master/systemd/kanshi.service
<choucavalier> thing is, on river this wayland-session.target does not exist
<choucavalier> what is the right way to set up a unit that depends on river running? i'd like the kanshi daemon to start running whenever river is running
<choucavalier> forget it. i'm completely stupid. i just need to do riverctl spawn kanshi
choucavalier has left #river [WeeChat 4.4.4]
notzmv has joined #river
Guest1031 has joined #river
notzmv has quit [Ping timeout: 248 seconds]
glenneth has joined #river
Guest1031 has quit [Client Quit]
Keeto has joined #river
Keeto has quit [Ping timeout: 248 seconds]
przmk_ has quit [Remote host closed the connection]
przmk_ has joined #river
notzmv has joined #river
mtm has quit [Ping timeout: 244 seconds]
mtm has joined #river
elshize has joined #river
Keeto has joined #river
Keeto has quit [Ping timeout: 272 seconds]
voidlinux has joined #river
<voidlinux> Hi guys, i have a autostart section on my init file but this programs not autostart when i open river, did i write wrong or any other problem?
<voidlinux> Here is my init file
<voidlinux> #!/bin/bash # -------------------------------------------------------- # DEĞİŞKENLER # -------------------------------------------------------- riverctl spawn "export MOZ_ENABLE_WAYLAND=1" # -------------------------------------------------------- # ÖNTANIMLI AYARLAR # -------------------------------------------------------- TERMINAL=foot MENU="wofi --show drun" KB_LAYOUT=tr # ---------------------------------------------------
<voidlinux> ----- # PROGRAMLAR # -------------------------------------------------------- riverctl map normal Super Return spawn $TERMINAL riverctl map normal Super BackSpace spawn "$MENU" # Super+Q Odaklanılmış uygulamayı kapat riverctl map normal Super Q close # Super+Shift+{Right,Left} riverctl map normal Super+Shift Right focus-view next riverctl map normal Super+Shift Left focus-view previous # riverct
<voidlinux> l map normal Super+Control Left send-layout-cmd rivertile "main-ratio -0.05" riverctl map normal Super+Control Right send-layout-cmd rivertile "main-ratio +0.05" riverctl map normal Super+Control Up send-layout-cmd rivertile "main-count +1" riverctl map normal Super+Control Down send-layout-cmd rivertile "main-count -1" for i in $(seq 1 9) do tags=$((1 << ($i -1))) riverctl map normal Super $i set-focused-tags $tags riverctl map n
<voidlinux> romal Super+Shift $i set-view-tags $tags riverctl map normal Super+Control $i toggle-focused-tags $tags riverctl map normal Super+Shift+Control $i toggle-view-tags $tags done riverctl map normal Super+Control Z zoom riverctl map normal Super+Control Q exit riverctl keyboard-layout $KB_LAYOUT riverctl map-pointer normal Super BTN_MIDDLE toggle-float riverctl map-pointer normal Super BTN_LEFT move-view riverctl map-pointer normal
<voidlinux> Super BTN_RIGHT resize-view riverctl set-repeat 50 300 riverctl map normal Super+Shift KP_Subtract spawn "brightnessctl s 5-" riverctl map normal Super+Shift KP_Add spawn "brightnessctl s +5" # --------------------------------------------------------- # DÜZEN # --------------------------------------------------------- riverctl default-layout rivertile rivertile -view-padding 6 \ -outer-padding 6 & riverctl rule-add -app-id 'Wa
<voidlinux> ydroid' float pipewire & waybar &
<voidlinux> Or i have pastebin.com link
<voidlinux> The last 2 line are autostart programs.
voidlinux has quit [Quit: Leaving.]
voidlinux has joined #river
Keeto has joined #river
voidlinux has quit [Ping timeout: 265 seconds]
voidlinux has joined #river
voidlinux has left #river [#river]
Keeto has quit [Ping timeout: 244 seconds]
<szgy> I see only one `rivertctl spawn` on that init, on line 7 which doesn't actually spawn a program, but sets an env var.
<szgy> I would refrain from doing that on a river init, setting up env vars makes more sense on smth like `~/.profile` since it would be set up for every terminal instance.
<szgy> @voidlinux: also, beware that if you want to autostart smth when river starts you need some logic to prevent them running every time you want to update the config while river is running. Smth like checking the output of running `tty` == `tty1`
haliucinas has quit [Quit: Ping timeout (120 seconds)]
haliucinas has joined #river
<ifreund> (they are gone)
Keeto has joined #river
<szgy> (I guess they'll see it when they come back, if they use some bouncer...)
<szgy> @leon-p: I remember that you talked about using a repl to send cmds to an antares instance. Wondering how you made this considering that `antares_run` is blocking. Didn't see any guile code that indicated using threads for the repl instance or smth like that
<ifreund> szgy: afaik this is done by the scheme implementation providing a repl server which can be connected to while running a scheme program
<ifreund> the scheme implementation handles the concurrency and other magic
<szgy> ohhh, ook. Was wondering how to deal with antares blocking the main thread from lua. Using coroutines from Lua needs some change on the C code to yield on every loop I _think_
<ifreund> szgy: iirc fennel has a repl, perhaps you could look into how they do it
<ifreund> (fennel is a lispy frontend for lua)
<szgy> And I wanted to avoid bringing some thread lib and sticking to standard lua
<szgy> yeah yeah I know fennel, but if you want to use a repl (or just interact with the running instance with like a socket or some form of IPC) you need coroutines or threads
<szgy> and coroutines needs the blocking part to cooperate...
<ifreund> I see
<ifreund> well, I think you know more about this than I do, perhaps people in #fennel would be more helpful :)
<szgy> yeah maybe...
<szgy> I'm thinking its more related to how antares is run. so keen to know what leon-p thinks. Like, maybe exposing a `tick` callback (run on every frame) so that antares can play nice with languages that don't have native threads in their usual runrime
<szgy> *runtime
<ifreund> you would probably need to integrate with the event loop of anares somehow
<szgy> yep, smth along that
<szgy> don't think I can do that from luajit's ffi alone, but I may be wrong...
<ifreund> the antares C library would first need to provide an API that makes it possible to do so
<ifreund> or it would need to provide a way to integrate antares with an event loop you control somehow
<szgy> yep. I think the easiest path would be the API? but I don't actually know
Guest91 has joined #river
<Guest91> Hi, how I change resolution and refresh rate in river config? I cant find that in man page....
<szgy> Guest91: you should use other software to do that. Like kanshi or wlr-randr
<Guest91> ok and last thing what I cant find cuz prob that isnt implemented, is it possible to set blur background for terminal app with config?
<szgy> nna, river doesn't have eyecandy like that. Maybe with the new river-management-protocol, it'll become posible for window managers on top of river to implement it
<szgy> (and also, I think specifically blur background of a specific terminal is smth that should be configured on that specific terminal I think?)
Guest87 has joined #river
<Guest91> Ohh yeah, I just switched from alacritty to kitty and kitty has background_blur, but seems like that only works in macos and kde. Sadge, but I can live without that
<Guest91> btw is anyone gaming in river? I tried forza horizon 5 and it feels like I play on 60hz, but wlr-randr shows that I have current profile with 164hz. In Gnome game is running so smooth.
Keeto has quit [Ping timeout: 264 seconds]
<ifreund> Guest91: which river version are you running? VRR/adaptive sync is broken in 0.3.6
<ifreund> there's a fix on master branch, I should probably release 0.3.7 shortly
<Guest91> I have river-0.3.6_1 version, I use void distro
Guest83 has joined #river
Guest87 has quit [Quit: Client closed]
Guest91 has quit [Quit: Client closed]
<ifreund> tagged 0.3.7 with the fix :)
Guest83 has quit [Quit: Client closed]
Guest91 has joined #river
lordmzte has quit [Ping timeout: 246 seconds]
wereii has quit [Ping timeout: 252 seconds]
wereii has joined #river
Guest91 has quit [Quit: Client closed]
Guest91 has joined #river
<Guest91> ty, I will test 0.3.7 once void will accept my pull request
andycs has quit [Quit: I'm leaving, bzzZZzz!]
andycs has joined #river
lordmzte has joined #river
<leon-p> szgy: the guile repl is indeed run in another thread (or "fiber", not quite sure) which guile spawns automagically
<leon-p> this also means it's not a good idea to modify a value which is currently being used by an event handler
<leon-p> you can have a repl in a single threaded program, guile can give you an fd you can poll on
<leon-p> eventually I am going to use that, to avoid the hassle of the repl being non-thread safe by just removing threads all together
<leon-p> so eventually there will be a way to provide antares_run() with additional fd's
<leon-p> I am not sure if I want to make it possible to use a foreign event-loop; you need to do a lot of things to a Wayland fd if you poll on it, and users forgetting to do all that is something I just don't want to debug in the future
<ifreund> sounds reasonable
Guest91 has quit [Quit: Client closed]
rrix has quit [Remote host closed the connection]
rrix has joined #river
rrix has quit [Remote host closed the connection]
rrix has joined #river
Guest91 has joined #river
<leon-p> small addendum: I am also not entirely sure yet if antares internally will only listen to the Wayland socket. there is a fair amount of functionality hidden behind DBus which may enable interesting and useful features, if it was usable in a less painful way. this again would make it harder to use a foreign event loop
<Guest91> I updated to 0.3.7 and it works much better now (I didnt had adaptive-sync enabled btw). Tried now to enable adaptive-sync in 0.3.7 and I got screen-tearing or flickering I cannot tell. After 3 minutes of platying the game my pc just froze.
<ifreund> that sounds like a bug somewhere lower in the graphics stack
<ifreund> Guest91: anything in dmesg?
<Guest91> There is a lot of things going on in dmesg. This thing I have in red color
<Guest91> 8.041745] tpm_crb MSFT0101:00: [Firmware Bug]: ACPI region does not cover the entire command/response buffer. [mem 0xfed40000-0xfed4087f flags 0x201] vs fed40080 f80
<Guest91> [    8.041779] tpm_crb MSFT0101:00: [Firmware Bug]: ACPI region does not cover the entire command/response buffer. [mem 0xfed40000-0xfed4087f flags 0x201] vs fed40080 f80
Guest69 has joined #river
Guest69 has quit [Client Quit]
catman has quit [Quit: WeeChat 4.5.1]
Guest1031 has joined #river
catman has joined #river
catman_ has joined #river
catman is now known as Guest4084
catman_ is now known as catman
Guest91 has quit [Quit: Client closed]
Guest91 has joined #river
Guest1031 has quit [Quit: Client closed]
Guest4084 has quit [Ping timeout: 248 seconds]
elshize has quit [Ping timeout: 272 seconds]
Guest1031 has joined #river
notzmv has quit [Remote host closed the connection]
Guest1031 has quit [Ping timeout: 240 seconds]
notzmv has joined #river