phoebos changed the topic of #kisslinux to: Unofficial KISS Linux community channel | https://kisscommunity.bvnf.space | post logs or else | song of the day https://yewtu.be/watch?v=SW9RrOLoYE0
sjalv has joined #kisslinux
sjalv has quit [Ping timeout: 260 seconds]
sjalv has joined #kisslinux
<sad_plan> does anyone have an idea on how I could replace read r foo bar? my rc doesnt have read, and Im trying to port over a script of mine.
sjalv has quit [Ping timeout: 260 seconds]
sjalv has joined #kisslinux
sjalv has quit [Ping timeout: 252 seconds]
<sad_plan> if not, might there be a simple standalone read someplace?
AtleoS has quit [Ping timeout: 248 seconds]
AtleoS has joined #kisslinux
zlg has joined #kisslinux
<phoebos> shouldn't rc have read?
<phoebos> you could do word splitting and $@
fultilt has quit [Quit: WeeChat 3.7.1]
Den4ikRus has joined #kisslinux
Den4ikRus_ has joined #kisslinux
Den4ikRus has quit [*.net *.split]
Den4ikRus_ is now known as Den4ikRus
<sad_plan> not those ive tried iirc. maybe if you include readline. but I dont belive rc has it by default.
<sad_plan> hm, ill see what I can conjure up. maybe I can make it work
zlg has quit [Ping timeout: 252 seconds]
sjalv has joined #kisslinux
fultilt has joined #kisslinux
<sewn> sad_plan: what are you tyring to do though
<sewn> also $(cat /dev/stdin) can work
<sad_plan> rewrite my watcher script in rc. i use wmutils' wew, which lists out window events. i then use a watcher script to act upon mapping and unmapping event, so focus would be retained automatically when groups would be set on/off. or windows being closed for that matter.
<sad_plan> i think i found a solution that works. i pointed wew's output to a file, and made a variable out of the last line. rc can split a variable into pieces, so I only needed to do $foo(1) for events, and $foo(2) for window ids.
<sad_plan> i tried 2 variable earlier, and that didnt work. but splitting a single variable worked.
<sad_plan> i can show you the script later if you want sewn
<sewn> wehhh
midfavila has joined #kisslinux
<midfavila> bweh
<vulpine> wah
<sad_plan> midfavila: could you enlighten me with your wisdom about rc? if you havent already read it, im trying to replicate my watcher script for wew (wmutils util), so control focus when windows hidden/unhidden, or killed for that matter really. but rc doesnt have read. so I cant do wew | watcher, like I do in sh.
<sad_plan> this is the current one, just piped from wew http://0x0.st/XwUH.sh
<sad_plan> and this is the.. less ideal one ive so far come up with on rc. http://0x0.st/XwUX.txt
<sad_plan> uses lots more cpu, and is overall of terrible design because it loops tail..
<sad_plan> for reference, wew prints 2 things, event, then window id. same line. I would need to seperate them into their own variables
<midfavila> ngl im dead with pneumonia right now so im kind of brain't
<midfavila> sorry
<midfavila> i also haven't really done anything with rc in ages
<sad_plan> I see. no worries. get well soon
<sad_plan> I just thought that you might have some ideas, thats all :p no worries mate :D
<midfavila> mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm
<midfavila> xwx
Den4ikRus has quit [Ping timeout: 252 seconds]