ifreund changed the topic of #river to: river - a dynamic tiling wayland compositor || https://github.com/ifreund/river || channel logs: https://libera.irclog.whitequark.org/river/
elshize has joined #river
waleee has quit [Ping timeout: 255 seconds]
yyp has quit [Ping timeout: 258 seconds]
yyp has joined #river
leon-p has quit [Ping timeout: 258 seconds]
yyp has quit [Read error: Connection reset by peer]
yyp has joined #river
snakedye has quit [Ping timeout: 272 seconds]
tsujp has joined #river
tsujp has quit [Remote host closed the connection]
novakane has joined #river
snakedye has joined #river
dbuckley has quit [Remote host closed the connection]
dbuckley has joined #river
snakedye has quit [Ping timeout: 276 seconds]
<ifreund> dnkl, elshize: I've pushed a patch that I think should fix the crash on closing firefox to this branch: https://github.com/ifreund/river/tree/surface-tree-destroy
<ifreund> I was never able to reproduce it so if one of you wouldn't mind testing it breifly that would be great
<novakane> ifreund: what would you think of something like this for pkg-config https://zigbin.io/977379
<novakane> I need to make some test with a 3rd party programm but at least it looks like it works as intended
<novakane> not sure if the .pc file works fine yet though
<dnkl> ifreund: tested it really quick: no crash in ~10 start/quit Firefox cycles
leon-p has joined #river
<ifreund> dnkl: thanks, that's good enough for me, I'll push to master
<ifreund> novakane: that seems like a good approach
<ifreund> novakane: though maybe we should create it in the cache directory? you can use b.cache_root iirc
<ifreund> I think the river-protocols name makes sense, especially if distros split it into a separate package (I probably will for void
<novakane> ifreund: yeah sure I can use the cache dir, for the name yeah I use exactly like wayland-protocols, I think it's better
<novakane> I'll try to see how it works with rivercarro and then I'll open a PR. At least `pkg-config --list` see it
novakane has quit [Quit: WeeChat 3.2]
novakane has joined #river
<novakane> well I fixed the .pc file and looks like everything works as intended :D
<novakane> I'll open a PR and if someone want to test with a C program it would be great
leon-p has quit [Quit: leaving]
<dnkl> ifreund: thanks!
waleee has joined #river
waleee has quit [Ping timeout: 276 seconds]
leon-p has joined #river
<leon-p> I wonder if there is a good way to temporarily bind hjkl to the arrow keys. My use case is firefox: All vim like navigation addons kinda suck, so I though this might be nicer. Currently I am using a special mode with keybinds spawning `wtype -k Up`, but that is pretty slow.
<ifreund> leon-p: I built my own keyboard and run qmk on it with the arrowkeys in that layout :P
<ifreund> actually been considering moving them one uint to the right though, jkl; seems a lot more ergonomic if I can switch my muscle memory
<ifreund> Idk how to do that with xkbcommon though or whatever, probably need a custom layout with that change and then the ability to configure/switch between layouts in river
<pltrz> <ifreund "leon-p: I built my own keyboard "> i would love to do the same. what microcontroller did you use?
<ifreund> pltrz: this "Elite-C" thing which is basically a higher quality arduino nano clone with usb-c port
<leon-p> ifreund: I have seen your custom keyboard in that one photo you linked here. I am on a laptop however. While it is possible to re-flash the keyboard controller of the thinkpad X200, I am not sure it has enough memory to allow different modes. Also I'd prefer a software solution, so I can modify it more easily.
<ifreund> I built a low-profile corne https://github.com/foostan/crkbd
<leon-p> I'll look into a custom xkb layout
<ifreund> leon-p: pretty sure xkb has some way to define layers as well. You could potentially have one layout with a key to swap between hjkl arrow keys and normal
novakane has quit [Quit: WeeChat 3.2]
novakane has joined #river
inclement has quit [Ping timeout: 272 seconds]
<leon-p> I have been looking into custom xkb keymaps for about an hour now. I think the only apt description is "abandon all hope, ye who enter here".
<leon-p> it probably used to be "here be dragons", but from what I can tell the dragons are long-dead, already fossilized.
inclement has joined #river
<ifreund> oof
Guest53 has joined #river
snakedye has joined #river
snakedye has quit [Ping timeout: 258 seconds]
Guest53 has quit [Quit: Client closed]
leon-p has quit [Remote host closed the connection]
leon-p has joined #river
<leon-p> ok, another hour later and I can now finally create a simple file remapping what symbols xkb puts out for what keycodes, for multiple levels. Now I only need to find out what level scroll-lock is and I have achieved my goal
<novakane> it sounds painful
<leon-p> it got less painful after I fount this: https://www.charvolant.org/doug/xkb/html/xkb.html
<novakane> it still looks painful to me :P
leon-p has quit [Quit: Lost terminal]
leon-p has joined #river
<leon-p> TIL that renaming the kaymap file while your running compositor is using it is a bad idea
<ifreund> that website has a great intro :D
<novakane> "Before you read this, please understand that I never wanted to write this document" True programmer :P
waleee has joined #river
leon-p has quit [Remote host closed the connection]
novakane has quit [Quit: WeeChat 3.2]
novakane has joined #river
snakedye has joined #river
snakedye has quit [Ping timeout: 240 seconds]
leon-p has joined #river
<leon-p> It works! :)
<leon-p> well kinda
<leon-p> Capslock turns hjkl into arrow keys now.
<leon-p> Tried doing it with scroll lock, but could not get a custom "type" to work to switch between "levels".
<ifreund> Congrats!
<ifreund> That might be a neat blog post tbh, especially if you forget everything you've learned today in the future
<leon-p> good idea
<leon-p> Now I only need to find my other laptop again, I have the repo of my blog on there. I really should have a) marked by boxes and b) uploaded it somewhere...
novakane has quit [Quit: WeeChat 3.2]
elshize has quit [Quit: WeeChat 3.2]
snakedye has joined #river
elshize has joined #river