Re: [dev] Replace ranlib(1) calls?

2022-07-22 Thread Roberto E. Vargas Caballero
Hi, On Wed, Jul 20, 2022 at 12:23:01PM +, Tom Schwindl wrote: > ranlib(1) is, in fact, legacy. It was used to create symbol tables for > archives > before ar(1) was able to do that by itself. > POSIX now specifies that ar(1) should create a symbol table by default, when > there is at least

[dev] Replace ranlib(1) calls?

2022-07-20 Thread Tom Schwindl
Hi all, I've noticed that we use the non-standard ranlib(1) program to create symbol tables for archives created by ar(1). This affects, as far as I can tell, every creation of static libraries we have. ranlib(1) is, in fact, legacy. It was used to create symbol tables for archives before ar(1)

Re: [dev] [surf] webkit

2022-07-10 Thread Markus Wichmann
On Sun, Jul 10, 2022 at 08:20:04AM +0200, Roberto E. Vargas Caballero wrote: > I use surf in this way too. It works but it has problems with some pages. > It is hard to kow the patches that you distribution adds to the upstream > project. > > Solvable problem: $ apt-get source webkitgtk $ cd

Re: [dev] [surf] webkit

2022-07-10 Thread Roberto E. Vargas Caballero
Hi, On Sat, Jul 09, 2022 at 11:39:37AM -0300, Renato Andrade Galvão wrote: > So I have used surf, which I compile from your suckless repositories, > along with the webkit lib package from debian. Currently I can't do > anything better than this. I use surf in this way too. It works but it has

[dev] [surf] webkit

2022-07-09 Thread Renato Andrade Galvão
Hi, suckless guys! It is warned in the surf suckless page: "Compile your own webkit or expect hell.". I can't compile webkit for this is a huge task for my 9 years old laptop. So I have used surf, which I compile from your suckless repositories, along with the webkit lib package from debian.

Re: [dev] [st] Incorrect colours in 88-colour mode with urwid

2022-07-08 Thread Roberto E. Vargas Caballero
Hi, On Sat, Jul 02, 2022 at 11:08:44PM +0200, Robin Ekman wrote: > Possibly this is at least partially an issue with urwid, cf. > https://lists.suckless.org/dev/1410/23724.html Uh, yeah I think it can be a problem related to urwid. Maybe a good idea is trying to reproduce the problem in a

Re: [dev] suckless indentation with vim

2022-07-06 Thread NRK
On Tue, Jul 05, 2022 at 06:43:53PM -0500, Robert Winkler wrote: > Probably a newly written 'vimish' editor is needed. I see that "vis" has already been mentioned. There's also neatvi, and kakoune. But if your problem with neovim is that it isn't compatible with the vim ecosystem, then neatvi and

Re: [dev] suckless indentation with vim

2022-07-05 Thread Robert Winkler
On Tue Jul 5, 2022 at 7:44 AM CDT, wrote: > >>> If someone's using vim and follows this style, what plugin and/or > >>> setting do you use? > >> > >>set tabstop=8 > >>set softtabstop=0 > >>set shiftwidth=0 > >>set noexpandtab > >> > >>Not being lazy to type text,

Re: [dev] suckless indentation with vim

2022-07-05 Thread NRK
On Tue, Jul 05, 2022 at 08:54:20AM +0200, David Demelier wrote: > I'm not sure if it's really easy to implement a smart alignment. Do you mean implementing it in vimscript/externally or internally? Because I don't think implementing it internally should be difficult, given that it already can do

Re: [dev] suckless indentation with vim

2022-07-05 Thread David Demelier
On Sat, 2022-07-02 at 23:07 +0600, NRK wrote: > Hi, > > The suckless coding style follows "tabs for indent, spaces for > alignment" philosophy. But afaik, vim doesn't support it natively. > > I remember trying out a couple plugins from here: >

Re: [dev] suckless indentation with vim

2022-07-02 Thread Страхиња Радић
On 22/07/02 11:07, NRK wrote: > If someone's using vim and follows this style, what plugin and/or > setting do you use? set tabstop=8 set softtabstop=0 set shiftwidth=0 set noexpandtab Not being lazy to type text, and indenting each line manually. Side note: vim

Re: [dev] suckless indentation with vim

2022-07-02 Thread NRK
On Sat, Jul 02, 2022 at 07:29:03PM +0200, Rene Kita wrote: > It does. Just press Tab to indent and press Space to align. You don't > need a plugin. ;) One of the main reason I use vim is because it makes it VERY easy to edit/refactor code. A lot of things which are very cumbersome on other

Re: [dev] suckless indentation with vim

2022-07-02 Thread Rene Kita
On Sat, Jul 02, 2022 at 11:07:48PM +0600, NRK wrote: > Hi, > > The suckless coding style follows "tabs for indent, spaces for > alignment" philosophy. But afaik, vim doesn't support it natively. It does. Just press Tab to indent and press Space to align. You don't need a plugin. ;)

Re: [dev] show line number *and* column number in a search

2022-07-02 Thread Marc Chantreux
On Mon, Jun 20, 2022 at 09:02:13AM -0400, Greg Reagle wrote: > On Mon, Jun 20, 2022, at 3:00 AM, m...@datameer.com wrote: > > "Greg Reagle" wrote: > >> ls | awk '/er.*/ {match($0, /er.*/); print $0; print > >> NR":"RSTART"-"RSTART+RLENGTH}' > > [0] https://geoff.greer.fm/ag/ you don't need

Re: [dev] [dwm]: something like the xfce scale all windows feature

2022-07-01 Thread T Taylor Gurney
On Thu, Jun 30, 2022 at 01:09:04PM -0800, Britton Kerin wrote: > I've got one of the high-res monitors and everything looks really > tiny. I notec xfce4 has this > "scale everything by 2" feature that addresses this, what's the > easiest way to get this in dwm? > > I didn't see any patch saying

Re: [dev] [dwm]: something like the xfce scale all windows feature

2022-07-01 Thread Nick
Quoth Britton Kerin: > I've got one of the high-res monitors and everything looks really > tiny. I notec xfce4 has this > "scale everything by 2" feature that addresses this, what's the > easiest way to get this in dwm? You can just make the font bigger in dwm's config.h, and the border size if

[dev] [dwm]: something like the xfce scale all windows feature

2022-07-01 Thread Britton Kerin
I've got one of the high-res monitors and everything looks really tiny. I notec xfce4 has this "scale everything by 2" feature that addresses this, what's the easiest way to get this in dwm? I didn't see any patch saying it does it, might have missed one though there are so many now :)

Re: [dev] Disk encryption

2022-06-29 Thread T Taylor Gurney
On Wed, Jun 22, 2022 at 06:59:01AM +, Antenore Gatta wrote: > WARNING: These are not meant to give you a solution, but to be used as > a learning exercise, their goals are completely different (often). > > - luks2flt [1] Mainly for win32 (Please don't be sick!) > It's quite interesting. > -

Re: [dev] [lsw][bug] segfault after querying window with no children

2022-06-25 Thread Hiltjo Posthuma
On Sat, Jun 25, 2022 at 01:50:17AM +, Augusto Castelo wrote: > Hi, > > lsw crashes with a segfault when you pass a window id of a window with no > children. > > I spotted the problem, at line 39 of lsw.c; XQueryTree isn't failing but is > setting `n` (children count (unsigned int)) to 0,

Re: [dev] [dwm] Xorg crashed if I ran Pale Moon in dwm

2022-06-22 Thread Kyryl Melekhin
Hi, just don't use version 31, it's just broken IIRC. Compile 29.4.6

Re: [dev] [dwm] Xorg crashed if I ran Pale Moon in dwm

2022-06-22 Thread Страхиња Радић
On 22/06/22 01:04, p...@mailbox.org wrote: > > the discussion https://forum.palemoon.org/viewtopic.php?f=3=28505 [ 140.237] Failed to compile FS: 0:1(10): error: GLSL 1.30 is not supported. Supported versions are: 1.10, 1.20, and 1.00 ES ^ This is most probably caused by

Re: [dev] Disk encryption

2022-06-22 Thread Antenore Gatta
Dear all, On Thu, 2022-06-16 at 11:54 -0500, T Taylor Gurney wrote: > > I'm also weary of "rolling your own crypto". Unless you are a > > cryptographer, I have never heard that go well. > > I have heard of it going well (though admittedly not without major > difficulties): > >

Re: [dev] I made a bluetooth-control-thing

2022-06-20 Thread Stefan Mark
On Thu, 16 Jun 2022 19:39:14 +0100 Ethan Marshall wrote: > On 16/06/22 04:33pm, David Demelier wrote: > > > > Hi, > > > > There is something wrong with the makefile because each time I type > > make it keeps rebuilding everything. > > From having built it myself, I can confirm that change

Re: [dev] show line number *and* column number in a search

2022-06-20 Thread Κράκ Άουτ
Στις 20 Ιουν 2022 16:02, ο/η Greg Reagle έγραψε: On Mon, Jun 20, 2022, at 3:00 AM, m...@datameer.com wrote: "Greg Reagle" wrote: ls | awk '/er.*/ {match($0, /er.*/); print $0; print NR":"RSTART"-"RSTART+RLENGTH}' debfoster-a-notes.txt 3:8-22 vdirsyncer 21:9-11 So there is a match on line 3

Re: [dev] show line number *and* column number in a search

2022-06-20 Thread Greg Reagle
On Mon, Jun 20, 2022, at 3:00 AM, m...@datameer.com wrote: > "Greg Reagle" wrote: >> ls | awk '/er.*/ {match($0, /er.*/); print $0; print >> NR":"RSTART"-"RSTART+RLENGTH}' >> debfoster-a-notes.txt >> 3:8-22 >> vdirsyncer >> 21:9-11 >> >> So there is a match on line 3 columns 8-22 and line 21

Re: [dev] show line number *and* column number in a search

2022-06-20 Thread Nikolay Korotkiy
m...@datameer.com kirjoitti 20.6.2022 klo 10.00: "Greg Reagle" wrote: ls | awk '/er.*/ {match($0, /er.*/); print $0; print NR":"RSTART"-"RSTART+RLENGTH}' debfoster-a-notes.txt 3:8-22 vdirsyncer 21:9-11 So there is a match on line 3 columns 8-22 and line 21 columns 9-11. Exactly what I

Re: [dev] show line number *and* column number in a search

2022-06-20 Thread mb
"Greg Reagle" wrote: > ls | awk '/er.*/ {match($0, /er.*/); print $0; print > NR":"RSTART"-"RSTART+RLENGTH}' > debfoster-a-notes.txt > 3:8-22 > vdirsyncer > 21:9-11 > > So there is a match on line 3 columns 8-22 and line 21 columns 9-11. Exactly > what I want. I am curious though, is there a

Re: [dev] redirecting standard error to another terminal

2022-06-18 Thread Hiltjo Posthuma
On Sat, Jun 18, 2022 at 09:03:27AM -0400, Greg Reagle wrote: > OMG I wish I had known this YEARS ago. I can redirect the standard error of > a program to a different terminal! I am using X11 and dwm and st on Debian. > For example: > > ls --foobar 2> /dev/pts/0 > > I am excited by the

Re: [dev] Suckless CMatrix clone

2022-06-18 Thread LM
On Fri, Jun 17, 2022 at 3:00 AM Laslo Hunhold wrote: > I pushed line-break-detection[0][1] just yesterday. The functions > > size_t grapheme_next_line_break(const uint_least32_t *, size_t); > > and > > size_t grapheme_next_line_break_utf8(const char *, size_t); > > should be just

[dev] redirecting standard error to another terminal

2022-06-18 Thread Greg Reagle
OMG I wish I had known this YEARS ago. I can redirect the standard error of a program to a different terminal! I am using X11 and dwm and st on Debian. For example: ls --foobar 2> /dev/pts/0 I am excited by the possibilities and mad at myself for not having thought of doing this before.

[dev] show line number *and* column number in a search

2022-06-18 Thread Greg Reagle
Greetings. The compiler I've been using recently very helpfully provides the line number *and* column number in warnings and error messages. I would like to be able to search a file and see both numbers. Note that I am not interested in doing this within any particular editor--I imagine it

Re: [dev] mailing list software

2022-06-18 Thread Sergey Matveev
*** Robert Winkler [2022-06-17 11:19]: >Which mailing list software is suckless running? >Is it recommendable? Definitely mlmmj: http://mlmmj.org/ Very easy to install, no dependencies complications, easy administrate and works very well. -- Sergey Matveev (http://www.stargrave.org/) OpenPGP:

[dev] mailing list software

2022-06-17 Thread Robert Winkler
Dear Suckless Community: Which mailing list software is suckless running? Is it recommendable? I'm getting desperate: I'm looking to for a simple mailing list platform, but all of them suck. Mailman(3) and sympa are difficult to install (many requirements and manual adjustments); especially if

Re: [dev] Suckless CMatrix clone

2022-06-17 Thread Laslo Hunhold
On Tue, 31 May 2022 08:35:11 -0400 LM wrote: Dear LM, > On Mon, May 30, 2022 at 11:33 AM Laslo Hunhold wrote: > > What functions do you need in the context of Tuxmath? > > From what I remember, it just needs to figure out where to do a clean > break for text wrapping with internationalized

Re: [dev] Disk encryption

2022-06-16 Thread Markus Wichmann
On Thu, Jun 16, 2022 at 08:18:16PM +0300, an2qzavok wrote: > >do not roll your own crypto > I believe this refers only to inventing your own algorithm, just > writing your own implementation of existing and tested algorithms is > fine. > As I tried to point out with the MAC example, cryptography

Re: [dev] Disk encryption

2022-06-16 Thread Michael Partridge
On Thu, Jun 16, 2022 at 11:20 AM an2qzavok wrote: > >do not roll your own crypto > I believe this refers only to inventing your own algorithm, just > writing your own implementation of existing and tested algorithms is > fine. I've heard it in both contexts. The more popular context I've heard

Re: [dev] I made a bluetooth-control-thing

2022-06-16 Thread Ethan Marshall
On 16/06/22 04:33pm, David Demelier wrote: > > Hi, > > There is something wrong with the makefile because each time I type > make it keeps rebuilding everything. From having built it myself, I can confirm that change detection seems to be broken for libsl/drw.c and all files in the libwdgt and

Re: [dev] I made a bluetooth-control-thing

2022-06-16 Thread Ethan Marshall
Thanks a lot for this! I have switched to using it instead of blueman-applet and it works great so far. The simple UI is so much better than the maze of a menu that blueman seems to have. I love it! Other than the criticisms mentioned by the other guy in the first reply, I would ask if there is a

Re: [dev] Disk encryption

2022-06-16 Thread an2qzavok
>do not roll your own crypto I believe this refers only to inventing your own algorithm, just writing your own implementation of existing and tested algorithms is fine. Though, is encrypted root partition even desirable? Since it only keeps your data safe when your machine is powered off, I

Re: [dev] Disk encryption

2022-06-16 Thread Michael Partridge
On Thu, Jun 16, 2022 at 9:54 AM T Taylor Gurney wrote: > https://loup-vaillant.fr/articles/implemented-my-own-crypto > > This person studied cryptography on his own for a while and then decided > to roll his own crypto library. The result is a single .c file, about 3000 > lines, which received a

Re: [dev] Disk encryption

2022-06-16 Thread T Taylor Gurney
On Thu, Jun 16, 2022 at 08:55:04AM +0200, Markus Wichmann wrote: > In any case, you can write your own losetup; it is not the most > complicated program in the world. I do intend to. I noticed that ubase doesn't have one. > I'm also weary of "rolling your own crypto". Unless you are a >

Re: [dev] I made a bluetooth-control-thing

2022-06-16 Thread David Demelier
On Wed, 2022-06-15 at 17:30 +0200, Stefan Mark wrote: > I was always a bit annoyed by the lack of a simple, gui-based > bluetooth > control thing. Like blueman, but not in a scripting language. And > maybe > with somewhat simpler interface. > > Thus i did this: >

Re: [dev] Disk encryption

2022-06-16 Thread Markus Wichmann
On Wed, Jun 15, 2022 at 07:59:34PM -0500, T Taylor Gurney wrote: > Are you familiar with loop-AES? Not specifically, but I had heard of loop-device based encryption before. The manpage for losetup states that support for such was removed in favor of dm-crypt. > My understanding is that the

Re: [dev] Disk encryption

2022-06-15 Thread T Taylor Gurney
On Wed, Jun 15, 2022, at 2:46 PM, Rasmus Liland wrote: > Hi! I like OpenBSD and FreeBSD disk > encryption setup :) R Thanks, I'll have a look. More and more I'm finding I like what I hear about the BSD way of doing things, as compared to Linux. Taylor

Re: [dev] Disk encryption

2022-06-15 Thread T Taylor Gurney
On Wed, Jun 15, 2022, at 2:47 PM, Markus Wichmann wrote: > libgcrypt can be used instead of OpenSSL. I don't know if that > helps any. Thanks for your reply. This does help, actually; while I'm making an effort to avoid OpenSSL (and even LibreSSL), I can't imagine I'll be able to avoid GnuPG

Re: [dev] Disk encryption

2022-06-15 Thread Markus Wichmann
On Wed, Jun 15, 2022 at 12:49:07PM -0500, T Taylor Gurney wrote: > All, > > Working on another statically-linked Linux distro. > > Getting an encrypted root partition is a problem. The kernel has built-in > support for this and I am plenty familiar with it. But the supporting > userspace tool,

Re: [dev] Disk encryption

2022-06-15 Thread Rasmus Liland
Hi! I like OpenBSD and FreeBSD disk encryption setup :) R

[dev] Disk encryption

2022-06-15 Thread T Taylor Gurney
All, Working on another statically-linked Linux distro. Getting an encrypted root partition is a problem. The kernel has built-in support for this and I am plenty familiar with it. But the supporting userspace tool, cryptsetup, is way too bloated and has too many dependencies, including

[dev] I made a bluetooth-control-thing

2022-06-15 Thread Stefan Mark
I was always a bit annoyed by the lack of a simple, gui-based bluetooth control thing. Like blueman, but not in a scripting language. And maybe with somewhat simpler interface. Thus i did this: https://git.weitnahbei.de/nullmark/little_blue_man Its written in C, uses drw and dbus and it works.

Re: [dev] Automatic C header dependency tracking for the redo build-system

2022-06-09 Thread Roberto E. Vargas Caballero
Hi, On Tue, Jun 07, 2022 at 03:21:49PM +0200, David Demelier wrote: > -include ${DEPS} ... > And you're done. On a fresh directory the -include ${DEPS} will > silently fail and rebuild everything. Then .d files will be generated > and touching any file will rebuild exactly what should be. > >

Re: [dev] Automatic C header dependency tracking for the redo build-system

2022-06-07 Thread David Demelier
On Mon, 2022-06-06 at 15:13 +0200, Georg Lehner wrote: > Hi, > > The topic of header dependency tracking is already addressed since > the > inception of redo by DJB. About C header dependencies, you can actually do it using POSIX Make (in the next version, the -include statement is not

Re: [dev] POSIX Monitoring tools

2022-06-06 Thread Georg Lehner
Hi LM, Monitoring always sucks 8-] I settled on collectd[1], which ".. has been reported as working on .. AIX". To "unsuck" it a little bit, I compile from sources and leave out every plugin I do not need. My sample "./configure" is below, you might want to leave out even more (chrony,

Re: [dev] Automatic C header dependency tracking for the redo build-system

2022-06-06 Thread Georg Lehner
Hi, The topic of header dependency tracking is already addressed since the inception of redo by DJB. The Appenwarr documentation offers a fairly simple answer in the form of an "implicit" .do file for object files. --- cat > default.o.do <2. build the  object file and generate a

[dev] A suckless X11 Widget Toolkit

2022-06-01 Thread Lucas de Sena
Hi, I just want to announce the last project I'm working on. It's called control[1]. It is a GUI widget set based on the X Toolkit Intrinsics framework[2]. I name it "control" after Plan 9's widget toolkit which is also called control (but there is only one or two programs using it in Plan

Re: [dev] ii: how to process out in a pipeline and still page with less

2022-05-31 Thread Georg Lehner
Hello, Does nobuf(1) help?   http://jdebp.uk/Softwares/djbwares/guide/nobuf.html Note: it tackles exactly the POSIX feature to line buffer output to tty's by providing one to the program in the pipeline, but without using any shared-object magic. Have not used it (yet) though. Best

Re: [dev] Build system: redo

2022-05-31 Thread Georg Lehner
Just a heads up, I tampered around with redo-c. Find it at https://github.com/jorge-leon/redo-c It: - Captures stdout of do files in the target file. - Does not create an empty target if $3 is empty. This allows for "phony" targets and protects against silly mistakes. - Truncates targets

Re: [dev] Suckless CMatrix clone

2022-05-31 Thread LM
On Mon, May 30, 2022 at 11:33 AM Laslo Hunhold wrote: > What functions do you need in the context of Tuxmath? >From what I remember, it just needs to figure out where to do a clean break for text wrapping with internationalized strings. Don't believe it uses the other features of libunistring.

Re: [dev] Suckless CMatrix clone

2022-05-30 Thread Laslo Hunhold
On Mon, 30 May 2022 07:33:24 -0400 LM wrote: Dear LM, > Thanks for the reviews. That's really helpful to know. As mentioned, > I haven't tried them myself. you're welcome! > That looks really useful. I noticed the break testing in libgrapheme. > Is it possible to use this as a replacement

Re: [dev] Suckless CMatrix clone

2022-05-30 Thread LM
On Mon, May 30, 2022 at 4:56 AM Laslo Hunhold wrote: > having dove deep into UTF-8 and Unicode, I can at least say that > libutf8proc has an unsafe UTF-8-decoder, as it doesn't catch overlong > encodings. There are also multiple other pitfalls. Thanks for the reviews. That's really helpful to

Re: [dev] Suckless CMatrix clone

2022-05-30 Thread Laslo Hunhold
On Sun, 29 May 2022 13:48:49 -0400 LM wrote: Dear LM, > I like that point. Not a fan of glib and I try to avoid software > that uses it. > > Don't know how good they are, but I've run across several lighter > utf-8 C libraries: > https://github.com/cls/libutf >

Re: [dev] ii: how to process out in a pipeline and still page with less

2022-05-30 Thread Josuah Demangeon
Rodrigo Martins wrote: > What if instead of changing every program we changed the standard > library? We could make stdio line buffered by setting an environment > variable. I applaude this idea! Environment variables seems to be the right spot for any config a library could need: are

Re: [dev] ii: how to process out in a pipeline and still page with less

2022-05-29 Thread Markus Wichmann
On Sun, May 29, 2022 at 10:20:05PM +, Rodrigo Martins wrote: > It was thus said that the Great Markus Wichmann once stated: > > And you fundamentally cannot change anything about the userspace of another > > program, at least not in UNIX. > > When I open file descriptors and exec(3) the new

Re: [dev] Suckless CMatrix clone

2022-05-29 Thread LM
On Sun, May 29, 2022 at 12:34 PM Kyryl Melekhin wrote: > Cool, but why use Glib? You can come up with some random utf-8 character > generator function, it's pretty trivial and there are plently of examples > in many suckless programs on how to do utf-8 validation. I like that point. Not a fan

Re: [dev] ii: how to process out in a pipeline and still page with less

2022-05-29 Thread Rodrigo Martins
It was thus said that the Great Markus Wichmann once stated: > And you fundamentally cannot change anything about the userspace of another > program, at least not in UNIX. When I open file descriptors and exec(3) the new program inherits those. Is that not chaning the userspace of another

Re: [dev] Suckless CMatrix clone

2022-05-29 Thread Kyryl Melekhin
Hello Ryan, Ryan Raymond wrote: > Hello all. I'm working on a suckless cmatrix clone. > It's not done yet, and it still suffers from constant memory leakage, but > I'm having fun working on it. > It already shows 50% reduced cpu/ram usage vs cmatrix, despite greatly > improved fps.

Re: [dev] Suckless CMatrix clone

2022-05-29 Thread Hiltjo Posthuma
Hi Ryan, On Sun, May 29, 2022 at 03:04:00AM -0400, Ryan Raymond wrote: > Hello all. I'm working on a suckless cmatrix clone. > It's not done yet, and it still suffers from constant memory leakage, but > I'm having fun working on it. > It already shows 50% reduced cpu/ram usage vs cmatrix, despite

[dev] Suckless CMatrix clone

2022-05-29 Thread Ryan Raymond
Hello all. I'm working on a suckless cmatrix clone. It's not done yet, and it still suffers from constant memory leakage, but I'm having fun working on it. It already shows 50% reduced cpu/ram usage vs cmatrix, despite greatly improved fps. Furthermore, because it doesn't rely on ncurses, it

Re: [dev] ii: how to process out in a pipeline and still page with less

2022-05-28 Thread Hadrien Lacour
On Sat, May 28, 2022 at 08:32:57PM +0200, Markus Wichmann wrote: > ultimately terminates on the terminal. But who knows if that is the > case? Pipelines ending in a call to "less" will terminate on the > terminal, pipelines ending in a call to "nc" will not. So the shell > can't know, only the

Re: [dev] ii: how to process out in a pipeline and still page with less

2022-05-28 Thread Markus Wichmann
On Sat, May 28, 2022 at 07:19:24PM +, Rodrigo Martins wrote: > Hello, Markus, > > Thank for filling in the details. I should do more research next time. > > I tried to write a program that does the same as stdbuf(1), but using > setbuf(3). Unfortunately it seems the buffering mode is reset

Re: [dev] ii: how to process out in a pipeline and still page with less

2022-05-28 Thread Rodrigo Martins
Hello, Markus, Thank for filling in the details. I should do more research next time. I tried to write a program that does the same as stdbuf(1), but using setbuf(3). Unfortunately it seems the buffering mode is reset across exec(3), since my program did not work. If it did that would be a

Re: [dev] ii: how to process out in a pipeline and still page with less

2022-05-28 Thread Markus Wichmann
On Sat, May 28, 2022 at 06:09:04PM +, Hadrien Lacour wrote: > Now, I wonder how it'd be fixed ("it" being how does the read end of the pipe > signal to the write one the kind of buffering it wants) in a perfect world. The problem ultimately stems from the mistaken idea that buffering is

Re: [dev] ii: how to process out in a pipeline and still page with less

2022-05-28 Thread Hadrien Lacour
On Sat, May 28, 2022 at 07:58:40PM +0200, Markus Wichmann wrote: > > You can use stdbuf(1) to modify that aspect without touching the > > program source itself. > > > > Had to look up the source for that. I had heard of stdbuf, but I always > thought that that was impossible. How can one process

Re: [dev] ii: how to process out in a pipeline and still page with less

2022-05-28 Thread Markus Wichmann
On Sat, May 28, 2022 at 08:38:49AM +, Hadrien Lacour wrote: > On Sat, May 28, 2022 at 03:33:16AM +, Rodrigo Martins wrote: > > Hello, > > > > The problem here is I/O buffering. I suspect it to happen in the C > > standard library, specifically on the printf function family. You know, that

Re: [dev] ii: how to process out in a pipeline and still page with less

2022-05-28 Thread Hadrien Lacour
On Sat, May 28, 2022 at 03:33:16AM +, Rodrigo Martins wrote: > Hello, > > The problem here is I/O buffering. I suspect it to happen in the C standard > library, specifically on the printf function family. If I recall, the C > standard says stdio is line-buffered when the file is an

Re: [dev] ii: how to process out in a pipeline and still page with less

2022-05-28 Thread Rodrigo Martins
Hello, The problem here is I/O buffering. I suspect it to happen in the C standard library, specifically on the printf function family. If I recall, the C standard says stdio is line-buffered when the file is an interactive device and let's it be fully buffered otherwise. This is likely why

Re: [dev] ii: how to process out in a pipeline and still page with less

2022-05-27 Thread Kyryl Melekhin
"Greg Reagle" wrote: > I have a file named "out" (from ii) that I want to view. Of course, it can > grow while I am viewing it. I can view it with "tail -f out" or "less +F out > ", both of which work. I also want to apply some processing in a pipeline, > something like "tail -f out | tr a A

Re: [dev] ii: how to process out in a pipeline and still page with less

2022-05-27 Thread taaparthur
May 27, 2022, 11:43 AM, "Greg Reagle" mailto:l...@speedpost.net?to=%22Greg%20Reagle%22%20%3Clist%40speedpost.net%3E > wrote: > > I have a file named "out" (from ii) that I want to view. Of course, it can > grow while I am viewing it. I can view it with "tail -f out" or "less +F > out", both

Re: [dev] ii: how to process out in a pipeline and still page with less

2022-05-27 Thread Hadrien Lacour
On Fri, May 27, 2022 at 02:43:03PM -0400, Greg Reagle wrote: > I have a file named "out" (from ii) that I want to view. Of course, it can > grow while I am viewing it. I can view it with "tail -f out" or "less +F > out", both of which work. I also want to apply some processing in a >

Re: [dev] ii: how to process out in a pipeline and still page with less

2022-05-27 Thread Alexandre Niveau
Hello, Le ven. 27 mai 2022 à 20:45, Greg Reagle a écrit : > > I have a file named "out" (from ii) that I want to view. Of course, it can > grow while I am viewing it. I can view it with "tail -f out" or "less +F > out", both of which work. I also want to apply some processing in a >

[dev] ii: how to process out in a pipeline and still page with less

2022-05-27 Thread Greg Reagle
I have a file named "out" (from ii) that I want to view. Of course, it can grow while I am viewing it. I can view it with "tail -f out" or "less +F out", both of which work. I also want to apply some processing in a pipeline, something like "tail -f out | tr a A | less" but that does not

Re: [dev] [dwm] Incorrect resolution when turning on dual monitors

2022-05-25 Thread Hiltjo Posthuma
On Tue, May 24, 2022 at 10:06:21PM -0400, Christopher Brown wrote: > I am using the latest git version, so I reverted the commit. However, > I am still experiencing the issue after doing that. > > Christopher > > On Sat, May 7, 2022 at 12:15 PM Hiltjo Posthuma > wrote: > > > > On Fri, May 06,

Re: [dev] [dwm] Incorrect resolution when turning on dual monitors

2022-05-24 Thread Christopher Brown
I am using the latest git version, so I reverted the commit. However, I am still experiencing the issue after doing that. Christopher On Sat, May 7, 2022 at 12:15 PM Hiltjo Posthuma wrote: > > On Fri, May 06, 2022 at 10:27:32PM -0400, Christopher Brown wrote: > > Hello, > > > > I have been

[dev] converting cmake or configure files

2022-05-17 Thread LM
Anyone know of some fast or easy ways to convert projects using cmake or GNU autoconf to other build formats. I remember redo was mentioned on this list and looks really promising. Currently, I try to use some form of make without cmake or configure whenever possible. Typically it takes me a

Re: [dev] [dwm] Incorrect resolution when turning on dual monitors

2022-05-07 Thread Pontus Stenetorp
On Sat 07 May 2022, Yan Doroshenko wrote: > > Not sure if this is of any help, but I was having troubles with DWM on > two monitors as well, one screen was not recognized by DWM. > > A 1 second delay before running my screen layout script was enough to > fix it, here's an explanation: > >

Re: [dev] [dwm] Incorrect resolution when turning on dual monitors

2022-05-07 Thread Yan Doroshenko
On 07.05.22 18:13, Hiltjo Posthuma wrote: On Fri, May 06, 2022 at 10:27:32PM -0400, Christopher Brown wrote: Hello, I have been intermittently encountering an issue where dwm messes up my monitor resolutions when powering on my two monitors. Frequently, both screens will be combined on one

Re: [dev] [dwm] Incorrect resolution when turning on dual monitors

2022-05-07 Thread Hiltjo Posthuma
On Fri, May 06, 2022 at 10:27:32PM -0400, Christopher Brown wrote: > Hello, > > I have been intermittently encountering an issue where dwm messes up > my monitor resolutions when powering on my two monitors. Frequently, > both screens will be combined on one monitor while the other monitor > does

Re: [dev] [dwm] Incorrect resolution when turning on dual monitors

2022-05-07 Thread Markus Wichmann
On Fri, May 06, 2022 at 10:27:32PM -0400, Christopher Brown wrote: > Hello, > > I have been intermittently encountering an issue where dwm messes up > my monitor resolutions when powering on my two monitors. Frequently, > both screens will be combined on one monitor while the other monitor > does

[dev] [dwm] Incorrect resolution when turning on dual monitors

2022-05-07 Thread Christopher Brown
Hello, I have been intermittently encountering an issue where dwm messes up my monitor resolutions when powering on my two monitors. Frequently, both screens will be combined on one monitor while the other monitor does not receive input. The "Two independent outputs" section of the multi monitor

Re: [dev][surf] Is there any suckless webkit?

2022-05-02 Thread LM
On Mon, May 2, 2022 at 3:44 PM Robert Winkler wrote: > > Maybe I am a bit naiv, or technically not informed enough, > BUT: > > Is there any webkit/browser that: > - Does not consume most of the computer resources (!!!). > - Is compatible with Java script. > - Displays modern websites without

[dev][surf] Is there any suckless webkit?

2022-05-02 Thread Robert Winkler
Maybe I am a bit naiv, or technically not informed enough, BUT: Is there any webkit/browser that: - Does not consume most of the computer resources (!!!). - Is compatible with Java script. - Displays modern websites without getting stalled? Ideally there would be a vim-style keybinding

[dev] ...

2022-05-02 Thread Yan Doroshenko
On 01.05.22 21:20, NRK wrote: On Sun, May 01, 2022 at 06:57:33PM +0200, Yan Doroshenko wrote: (stupid qustion alert) But how can I try, whether my xrandr in autostart works, if I run version with no autostart patch? Hi Yan, You don't need a patch to execute something at startup. If you're

Re: [dev] [dwm] Multihead Issues Autostart

2022-05-01 Thread NRK
On Sun, May 01, 2022 at 06:57:33PM +0200, Yan Doroshenko wrote: > (stupid qustion alert) > > But how can I try, whether my xrandr in autostart works, if I run version > with no autostart patch? > Hi Yan, You don't need a patch to execute something at startup. If you're using startx directly,

Re: [dev] [dwm] Multihead Issues Autostart

2022-05-01 Thread Yan Doroshenko
On 01.05.22 15:10, Hiltjo Posthuma wrote: On Sun, May 01, 2022 at 12:56:50PM +0200, Yan Doroshenko wrote: Hello, I'm using DWM on two monitors with cool_autostart patch and in the autostart array I'm running xrandr to set the monitor layout. Quite often a situation happens when the second

Re: [dev] [dwm] Multihead Issues Autostart

2022-05-01 Thread Hiltjo Posthuma
On Sun, May 01, 2022 at 12:56:50PM +0200, Yan Doroshenko wrote: > Hello, > > > I'm using DWM on two monitors with cool_autostart patch and in the autostart > array I'm running xrandr to set the monitor layout. > > Quite often a situation happens when the second monitor is enabled (arandr >

[dev] [dwm] Multihead Issues Autostart

2022-05-01 Thread Yan Doroshenko
Hello, I'm using DWM on two monitors with cool_autostart patch and in the autostart array I'm running xrandr to set the monitor layout. Quite often a situation happens when the second monitor is enabled (arandr displays it as active and in correct position, feh sets the background on it),

Re: [dev][surf] Compatibility: "empty" wep pages

2022-04-29 Thread Quentin Rameau
Hi, > I find that it is unfortunately not satisfactory yet from a > privacy-respecting > standpoint, at least until it supports plugins such as uMatrix which block > Ads > and various other privacy-intruding technologies. Simple filtering of URLs > just isn't enough. You could port uMatrix

Re: [dev][surf] Compatibility: "empty" wep pages

2022-04-29 Thread Страхиња Радић
On 22/04/29 09:48, Robert Winkler wrote: > Hi, surf is up to now the best browser I found for weak machines such as the > Raspberry Pi 0W, with respect to compatibility and customisability (link > hints, full keyboard control). > > The support of Javascript pages is fair. > > However, some Web

Re: [dev][surf] Compatibility: "empty" wep pages

2022-04-29 Thread Jochen Sprickerhof
Hi Robert, * Robert Winkler [2022-04-29 09:48]: However, some Web Pages do not work at all. Example: just produces a white page. Works fine here with libwebkit2gtk-4.1-dev version 2.36.1-1+b1 from Debian unstable and surf from git. Cheers Jochen signature.asc

[dev][surf] Compatibility: "empty" wep pages

2022-04-29 Thread Robert Winkler
Hi, surf is up to now the best browser I found for weak machines such as the Raspberry Pi 0W, with respect to compatibility and customisability (link hints, full keyboard control). The support of Javascript pages is fair. However, some Web Pages do not work at all. Example:

Re: [dev] Regarding dwm and st logo being removed

2022-04-28 Thread Teodoro Santoni
2022-04-28 9:38 GMT+02:00, Страхиња Радић : > In my opinion, dark mode is unnecessary and favored by mainstream > "webdevs". > Divide et impera (light vs dark mode) is the easiest solution they could come up for soothing the look'n'feel hell in which desktop vendors throwed themselves into.

<    4   5   6   7   8   9   10   11   12   13   >