<NickH>
You probably need to put double quotes around $(slurp).
<NickH>
riverctl map Normal None Print spawn 'grim -g "$(slurp)"'
<NickH>
The string slurp returns has a space in it.
<szgy>
yep, that did it :)
<szgy>
heh, thanks for the help
<NickH>
No problem
kotto has quit [Quit: WeeChat 4.1.2]
parsnip64 has quit [Ping timeout: 252 seconds]
parsnip64 has joined #river
parsnip64 has quit [Ping timeout: 252 seconds]
Szadek has quit [Quit: off]
Szadek has joined #river
eShaev9z_ has quit [Ping timeout: 245 seconds]
eShaev9z has joined #river
waleee has quit [Ping timeout: 255 seconds]
elshize has quit [Ping timeout: 246 seconds]
leopoldek has quit [Remote host closed the connection]
leopoldek has joined #river
leopoldek has quit [Remote host closed the connection]
uli44 has joined #river
uli44 has quit [Client Quit]
ubiquituum has joined #river
maralorn has joined #river
<maralorn>
Having a look at the river protocols. Is it correct that it is impossible to get a mapping from all views to their tags? I can apparently get a list of viewtags, but how are they sorted how can I map them to the windows I have?
<leon-p>
yes
<leon-p>
not possible right now
<leon-p>
planned, but no workarounds
<maralorn>
Okay. Thanks!
<maralorn>
Also, am I correct, that the only view for which I can modify the view tags is the currently focused one?
<maralorn>
(Thinking about a script which sorts views to different tags.)
elshize has joined #river
Szadek has quit [Quit: off]
Szadek has joined #river
<leon-p>
indeed
<leon-p>
I guess you could create a really ugly script that focuses all tags, cycles through all windows, gets the title of the focused window and assigns tags based on that. But that's very hacky and also potentially racy
elshize has quit [Quit: elshize]
elshize has joined #river
maralorn has quit [Ping timeout: 250 seconds]
maralorn has joined #river
<maralorn>
It would also be very fun to look at.^^
maralorn has quit [Ping timeout: 250 seconds]
<szgy>
Hi! I'm on river 0.2.6 and it seems that the `add-rule` cmd doesn't exist on this version, but is shown on the man page
<ifreund>
szgy: I believe you are reading a man page from river's master branch then
waleee has joined #river
<szgy>
weird since I'm reading the man page from the cli and I have river 0.2.6 installed through pacman
<szgy>
its no problem, but its confusing since some riverctl commands were failing because I was using features that aren't available yet...
yushi61 has joined #river
<yushi61>
hello
<yushi61>
I'm new to river and want to configure it, what do you advise me to start with ? didn't find much on youtube
<leon-p>
high-order functions are super nice for writing layouts. I can define a bunch of layout primitives (rows, columns, spirals, etc...) and then a function layout->metalayout to arrange a bunch of layouts in another layout, then a function layout->sublayouts to programmatically generate the list of sublayouts and their limits.
waleee has joined #river
<leon-p>
even something like per-tag layouts is suddenly trivial
<szgy>
leon-p: this with riverguile??
<leon-p>
yup
<szgy>
nicee. I've been meaning to get to it since I'm fond of lisp/scheme
<szgy>
(I actually use fennel to configure river)
<szgy>
per-tag layouts is smth I wanted to do, since i.e. in rivercarro layouts are global (which is not the best for stuff like monocle layout)
<leon-p>
basically all config is stored in a hash-table and the keys contain the tags and output
waleee has quit [Ping timeout: 245 seconds]
waleee has joined #river
<ifreund>
very cool :)
<szgy>
hehh niice. will check that out when I have some time (now doing new years cooking, while cleaning the house)
<szgy>
does river have any sort of 'event system'? like, I want to know when a window is switched to fullscreen. Is there some socket to read that from?
<szgy>
or are there plans for smth like that ? (I want to ie. kill wlsunset when watching a video in fullscreen)
leopoldek has joined #river
waleee has quit [Ping timeout: 255 seconds]
waleee has joined #river
waleee has quit [Ping timeout: 268 seconds]
<leon-p>
szgy: kinda. we have a protocl for that (river-status) but the events it sends are limited
<leon-p>
have fun cooking, will do the same now with my flatmates
<szgy>
happy newy! curious to know how to hook to that river-status protocol
waleee has joined #river
leopoldek has quit [Remote host closed the connection]
ubiquituum has quit [Ping timeout: 250 seconds]
kotto has joined #river
<leon-p>
szgy: it's a wayland protocol extension, so you use it by just writing a wayland protocol. there are examples in the contrib/ dir in the repo