ifreund changed the topic of #river to: river - a dynamic tiling wayland compositor - https://github.com/ifreund/river - channel logs: https://freenode.irclog.whitequark.org/river/
leon-p has quit [Remote host closed the connection]
_whitelogger has joined #river
waleee-cl has quit [Quit: Connection closed for inactivity]
travankor has joined #river
travankor has quit [Remote host closed the connection]
travankor has joined #river
leon-p has joined #river
cmoi11 has joined #river
<cmoi11> The following command does not work. Has somebody an idea how to make this work?
<cmoi11> riverctl map normal Mod1 F1 spawn "waylock --init-color #000000 & systemctl suspend"
<leon-p> ah, my favourite
<leon-p> river commands are executed by a shell
<leon-p> the '#' in your colour starts a shell comment
<cmoi11> Oh man. How stupid of me :D
<cmoi11> Thanks!
<leon-p> Don't judge yourself too harshly. We had about four other people facing the same issue the last two months. :)
<ifreund> kinda makes me feel like we should use something else for colors
<cmoi11> A related Question if I may ask: What is the best way to map command that contains "" and ''. Eg this from the Archwiki:
<cmoi11> j4-dmenu-desktop --dmenu='bemenu -i --nb "#3f3f3f" --nf "#dcdccc" --fn "pango:DejaVu Sans Mono 12"' --term='termite'
<cmoi11> Maybe with some kind of escaping?
<leon-p> +1 for using something else for colours. Re-using the comment character is pretty awkward in general.
<leon-p> I propose 0xrrggbb
<ifreund> yeah, 0x is fine by me
<ifreund> cmoi11: the simplest way is to put that in a shell script and use riverctl to map a keybind to run the script
<ifreund> otherwise, yes escaping should be possible
<cmoi11> Ok thanks :) Yeah an extra file is nicer I think.
edrex has quit [Quit: Bridge terminating on SIGTERM]
samhsmith[m] has quit [Quit: Bridge terminating on SIGTERM]
ifreund_ has quit [Quit: Bridge terminating on SIGTERM]
ammen99 has quit [Quit: Bridge terminating on SIGTERM]
Bonicgamer[m] has quit [Quit: Bridge terminating on SIGTERM]
voroskoi has quit [Quit: Bridge terminating on SIGTERM]
voroskoi has joined #river
ifreund_ has joined #river
samhsmith[m] has joined #river
edrex has joined #river
Bonicgamer[m] has joined #river
ammen99 has joined #river
travankor has quit [Remote host closed the connection]
waleee-cl has joined #river
<ifreund> just removing the # prefix for colors would work fine too, I'm not sure the 0x offers more clarity
<leon-p> ¯\_(ツ)_/¯ I am fine either way. I use 0x in my projects to make hex colours more distinct as I also allow rgb(rrr, ggg, bbb).
<ifreund> what we really want is 4 floating point numbers for rgba
<ifreund> hex is much more familiar to most people though
<leon-p> In the end, riverctl will do all the parsing, so I see no harm in supporting multiple colour formats
<ifreund> yeah, I can't wait to get all the parsing code out of the comopitor
<ifreund> though doing it this way was nice to get something working quickly
<cmoi11> I just tried it out and it seems the 0x syntax is already implemented
<cmoi11> At least it works
<ifreund> lol
<ifreund> uh, no it doesn't work for me
<ifreund> and it definitely shouldn't with the current code
<cmoi11> Curious, bcause even the error message tells that it works :)
<cmoi11> error: Invalid value for '--init-color <COLOR>': invalid color prefix, must start with '#' or '0x'
<cmoi11> Maybe it is implemented in a library that you use for the parsing?
<leon-p> cmoi11: from which alternate universe is your river version? I don't think we have that option in river…
<leon-p> oh, you mean the colour of waylock. d'oh.
<cmoi11> Yes waylock :)
<cmoi11> Sorry if I confused you, I thougt we were talking about waylock.
koalaaa has joined #river
<koalaaa> Heya, so I don't know alot of programming thus I sadly cant contribute to developing :/ But just gotta say, it's definently looking promising and would love to use it once more features such as idle, touchscreen etc has been added
koalaaa has quit [Quit: Leaving]
cmoi11 has quit [Remote host closed the connection]
travankor has joined #river
travankor has quit [Ping timeout: 268 seconds]
ifreund has quit [Ping timeout: 256 seconds]