I need to inspect from time to time the output of something with tail -f while the above code is continuing its execution, any idea?

|
smol_mazunki 2022-09-18 00:40:22
Jamerive 2022-09-18 00:40:15
In suckless software I think the source code is the configuration file!😂

which is my complaint

smol_mazunki 2022-09-18 00:40:27
(not the only complaint, btw)
smol_mazunki 2022-09-18 00:40:38
there ARE patches to split the configuration off into a file, btw
Jamerive 2022-09-18 00:41:17
smol_mazunki 2022-09-18 00:40:38
there ARE patches to split the configuration off into a file, btw

Xresources patch and I love it

smol_mazunki 2022-09-18 00:41:42
dwm is broken by design xd
smol_mazunki 2022-09-18 00:41:54
to have a working dwm you have to fix it yourself
smol_mazunki 2022-09-18 00:41:58
which is a dumb approach
smol_mazunki 2022-09-18 00:42:01
far from pragmatic
Jamerive 2022-09-18 00:42:36
I don’t hate the way of suckless. l but the lack of docs it is my complain. They assume you know C!😂
smol_mazunki 2022-09-18 00:42:50
Jamerive 2022-09-18 00:42:36
I don’t hate the way of suckless. l but the lack of docs it is my complain. They assume you know C!😂

it’s self-documented! 😀

Jamerive 2022-09-18 00:44:15
It would be fun to see him use a saw without a manual. Selfdocument yourself cutting your hand in the process of learning how to use it!😂
smol_mazunki 2022-09-18 00:44:33
i cut my finger today 🙁
smol_mazunki 2022-09-18 00:44:50
throwing out the trash
Jamerive 2022-09-18 00:45:08
But looking the good side, I love the proposal of having small but productivity tools
smol_mazunki 2022-09-18 00:45:09
i do think breaking stuff is an important step towards learning
smol_mazunki 2022-09-18 00:45:19
i’m a teacher, and my students keep on asking me “is this correct?”
Jamerive 2022-09-18 00:45:22
smol_mazunki 2022-09-18 00:44:50
throwing out the trash

Are you joking, right?

smol_mazunki 2022-09-18 00:45:26
and i’m like “idk, why don’t you try it out?”
smol_mazunki 2022-09-18 00:45:37
and when they see the wrong results i make them reflect upon what they did wrong
smol_mazunki 2022-09-18 00:45:54
it’s more valuable for them to see their own mistakes, and realize that fucking up is not a sin
smol_mazunki 2022-09-18 00:45:57
Jamerive 2022-09-18 00:45:22
Are you joking, right?

nope

smol_mazunki 2022-09-18 00:46:07
i’m just a tiny little baby
Jamerive 2022-09-18 00:46:19
smol_mazunki 2022-09-18 00:45:19
i’m a teacher, and my students keep on asking me “is this correct?”

Yeah but you let them break things AFTER gving the instructions that can be xonsidered a manual? And the community is not that approcheable either

smol_mazunki 2022-09-18 00:46:42
tbh i don’t think i’ve ever seen a dwm community
smol_mazunki 2022-09-18 00:46:49
and i think that’s a result of their approach
smol_mazunki 2022-09-18 00:46:55
“fix it yourself haha yes”
Jamerive 2022-09-18 00:47:10
They are, in IRC
Ceda EI 2022-09-18 00:47:14
Kueppo 2022-09-16 21:47:03
while true; do echo -e “onentwonthree”; sleep 1; done | sed -ne ‘s/(.*)/look: 1/p’ | tee -a something

I’m starting to wonder if the flow of data between theses pipes is sync, sed keeps it for himself and as a consequence cat something is empty.

I need to inspect from time to time the output of something with tail -f while the above code is continuing its execution, any idea?

data between pipes is buffered

Kueppo 2022-09-18 00:47:32
smol_mazunki 2022-09-18 00:38:06
have you checked out dwl?

Yep, I know it but I don’t want to switch to wayland, not yet, no time for rewriting scripts tbh.

smol_mazunki 2022-09-18 00:47:34
Jamerive 2022-09-18 00:47:10
They are, in IRC

not matrix?

Jamerive 2022-09-18 00:47:41
smol_mazunki 2022-09-18 00:47:34
not matrix?

Nei

smol_mazunki 2022-09-18 00:47:45
Kueppo 2022-09-18 00:47:32
Yep, I know it but I don’t want to switch to wayland, not yet, no time for rewriting scripts tbh.

oh, isn’t it compatible?

smol_mazunki 2022-09-18 00:47:59
sway is 95% compatible with i3’s config
Jamerive 2022-09-18 00:48:03
But the only good usable tool is dmenu indeed
smol_mazunki 2022-09-18 00:48:04
smol_mazunki 2022-09-18 00:47:59
sway is 95% compatible with i3’s config

that’s a pragmatic choice :3

|