<Guest12>
understand how toggle-view-tags work. Can someone explain to me what is supposed to happen when I toggle-view-tags. I have tried the example use case https://github.com/riverwm/river/wiki/How-tags-work#example-use-case in the wiki and it worked like expected and If I understand it well, it uses the first 3 tag actions I mentioned but not the 4.
<Guest12>
I understand bitwise operations quite well.
<NickH>
When viewing multiple tags you can use it to ether start viewing or stop viewing the clients on one of the tags
<NickH>
Sorry, wrong!
<NickH>
That command is for toggling a client being visble on a given tag.
<NickH>
I forget names of the commands and just remember what my keybindings do!
<NickH>
...or set of tags come to think of it, but I don't use it that way.
<Guest12>
toggling a client being visble on a given tag, isn't that what toggle-focused-tags does ?
<NickH>
No, toggle-foucsed-tags does what I mistakenly described first
<NickH>
One is for viewing multple tags, the other is for views/clients being on multiple tags
Guest12 has quit [Quit: Client closed]
kotto has quit [Quit: WeeChat 4.1.3]
eShaev9z has quit [Ping timeout: 256 seconds]
eShaev9z has joined #river
Guest98 has joined #river
Guest98 has quit [Client Quit]
Guest98 has joined #river
Guest98 has left #river [#river]
<LarstiQ>
ifreund: cheers, I'll give it a try (because zig on native Asahi crashes with unreachable code trying to build river)
Bunbun has joined #river
<Bunbun>
Hello, I was wondering if there's a way to send messages to river through ipc, anybody know?
<LarstiQ>
Bunbun: how do you mean exactly, do you count the Wayland protocols as ipc? Riverctl?
gwizon has quit [Quit: Lost terminal]
<Bunbun>
well, my ultimate goal is to write a config in fennel (lua) without executing riverctl and instead sending messages directly to river
<bunbun>
yea, but idk it existed lol, and scheme is one of my favorite langs
<LarstiQ>
glad to be of help then :)
<bunbun>
i wrote my own wallpaper deamon in scheme lol
<LarstiQ>
NickH: ah that was yours, thanks for writing it, I found it very educational!
<NickH>
LarstiQ: I got the boiler plate code for that from leon-p :-)
elshize has quit [Ping timeout: 256 seconds]
<leon-p>
note that using a language with Wayland support instead of shelling out to riverctl isn't merely more elegant: Switching from shell to riverguile cut down my init execution time from 1s to .45s on my workstation.
<leon-p>
Wayland cleints have an inherent "slowness" at launch: The time between binding the display and the end of the initial registry burst is within human perception
<NickH>
My bash init is far more elegant than my python init 🤣
<bunbun>
@leon-p `;;; WARNING: compilation of /home/bunbun/.config/river/./keybinds.scm failed:
<bunbun>
;;; no code for module (riverguile)` my sadness is palpable
<leon-p>
You need to set GUILE_LOAD_PATH to include /usr/local/share/guile/3.0
<bunbun>
ohhhhh
<bunbun>
okay
<bunbun>
thanks, i've never actually used guile, only scheme
<leon-p>
also note that the module only defines macros and it useless unless you also use riverguile as interpreter
<bunbun>
i'm doing that
bunbun has left #river [#river]
<NickH>
leon-p: have you stopped working on stacktile?
<leon-p>
🤷 no idea
<NickH>
Hmm... can river-guile used as layout-manager provide a similar experience to stacktile?
<leon-p>
the configuration is different of course, but every layout achievable in stacktile can be written in riverguile
<NickH>
Oss, sorry s/river-guile/riverguile ... not sure why I was writign it that way
bunbun has joined #river
<bunbun>
@leon-p ```bash tagsArr=({1..9} 0); for i in ${!tagsArr[@]}; do; tags=$((1 << $i)); riverctl map normal $mainMod ${tagsArr[$i]} set-focused-tags $tags; riverctl map normal $mainMod+Shift ${tagsArr[$i]} set-view-tags $tags; done``` any idea how i could do something like this? i tried what i hoped would work but it didn't lol
<leon-p>
you mean in riverguile? Use (for-each proc list)
<leon-p>
I have an example of that in my init
<bunbun>
is there a clean way to do the ({1..9} 0), the only way i could think of was to just do 1 2 3 4 5 6 7 8 9 0, but that isn't very clean imo
<leon-p>
(iota 10)
<bunbun>
that'll end with 0?
<LarstiQ>
rotate the list?
<bunbun>
maybe
<leon-p>
I don't see how the order of the list is relevant TBH
<bunbun>
cause the keybinds, i use 0 to switch to the 10th tag
<leon-p>
Ah.
<leon-p>
(append (iota 9 1) '(0))
<bunbun>
thanks, that's perfect
waleee has joined #river
hspak has quit [Quit: Ping timeout (120 seconds)]
hspak has joined #river
waleee has quit [Ping timeout: 240 seconds]
waleee has joined #river
bunbun has quit [Quit: bunbun]
waleee has quit [Ping timeout: 256 seconds]
traidare has joined #river
waleee has joined #river
leopoldek has quit [Remote host closed the connection]
<ifreund>
I haven't looked too closely but I think you'll probably need to patch zig to make it work, I think there's an open PR
traidare has quit [Ping timeout: 276 seconds]
<LarstiQ>
yeah I've tried https://github.com/ziglang/zig/pull/17382 but that gets me (or last time, it has changed a bit) into an infinite semantic analysis building river
traidare has joined #river
<LarstiQ>
and I don't understand the build.zig well enough to see why that might be the case
<ifreund>
LarstiQ: in any case, cross compiling isn't going to help you here, it will produce a binary expecting 4k pages unless you use that patch or something else
<LarstiQ>
ifreund: yeah, I'll still use that branch but in a long-shot hoping that if we're not also _running_ on Asahi that maybe avoids a pitfall
<LarstiQ>
otherwise I'm at the mercy of other people fixing this because the zig issue seems like a deeper rabbithole than I can manage
traidare has quit [Ping timeout: 252 seconds]
TheAnachron has joined #river
iamzim has joined #river
traidare has joined #river
elshize has joined #river
kotto has joined #river
Guest77 has joined #river
alexherbo2 has quit [Remote host closed the connection]
TheAnachron has quit [Quit: TheAnachron]
alexherbo2 has joined #river
Guest77 is now known as MrBrownFR
MrBrownFR has quit [Client Quit]
iamzim has left #river [#river]
gwizon has joined #river
alexherbo2 has quit [Remote host closed the connection]
leopoldek has joined #river
tiosgz has joined #river
<tiosgz>
not really river-related, but has anyone made firefox (actually, seems to be rooted in gtk?) to interact with selection, not clipboard on shift-ins (most important), ctrl-ins and ctrl-del?
<tiosgz>
i've tried to look into it, but seems like gtk is hella complicated and i should be studying now instead
<tiosgz>
(if nobody's got a solution but someone's interested, pls ping me in about a week so i try harder)
<LarstiQ>
tiosgz: somewhat but I'm not satisfied with the result. Good studyings!
<tiosgz>
LarstiQ: how? have you got a pointer for me? and thanks :)
gwizon has quit [Remote host closed the connection]
<LarstiQ>
tiosgz: pretty awful `wl-paste -w wl-copy --primary` is doing best so far, and ctrl-middle-click iirc. Sorry for getting your hopes up higher than that
<LarstiQ>
but yeah that clipboard dependence is high on the remaining list of my annoyances
<tiosgz>
ahh, ok. i think i'm too used to them being separate to get used to this (although... i thought that about cursor and keyboard focus too, and got used to the usual state)
<LarstiQ>
that is arguably the more powerful approach, but the only way I copy things is with selection so I've always tried to go for unified
<tiosgz>
for me it's mostly that selection is too easily polluted (especially with an older mouse) and sometimes i happen to use both at the same time for different stuff
waleee has quit [Ping timeout: 240 seconds]
bunbun has joined #river
<bunbun>
@leon-p how do you add inside/outside gaps with riverguile?
<LarstiQ>
Bunbun: are you looking for them to be configurable?
<bunbun>
idk, just kinda like rivertile setting inner and outer gaps
<leon-p>
Bunbun: You have to implement them yourself.
<leon-p>
A quick and dirty way would be to simply shrink every window after calling the layout procedure
<bunbun>
hmmm, would you be willing to add that to riverguile?
<leon-p>
nope. the entire goal is to write layouts in scheme
<leon-p>
so to add gaps, just modify your scheme code
<bunbun>
okay
<leon-p>
just write a procedure that iterates over the layout list and shrinks the window dimensions
<bunbun>
okay
<leon-p>
A simple map will suffice
<bunbun>
i'll see if i can figure it out, i'm still pretty new to river layouts lol
<leon-p>
you cab read riverguiles mab page, it explains the basics
<leon-p>
then just map a shrinking proc to the list returned by the layout proc