Re: [dev] Better naming for arg.h API

2021-07-08 Thread Nikita Zlobin
In Mon, 5 Jul 2021 13:36:50 +0200 Hiltjo Posthuma wrote: > It is based on: > https://9fans.github.io/plan9port/man/man3/arg.html > > argc (count) and argv (array of strings) are the program argument > names. > Hmmm, now I'm confused about possible meaning for __fixargv0(). Its definition is no

Re: [dev] suckless indicators?

2021-07-08 Thread Nikita Zlobin
In Thu, 8 Jul 2021 10:42:57 +0200 Страхиња Радић wrote: > On 21/07/08 12:30, Nikita Zlobin wrote: > > Perhaps because user wants :P > [...] > > Writing to window title is primary function of my approach. It > > could be done by main app (best), but this time it's d

Re: [dev] suckless indicators?

2021-07-08 Thread Nikita Zlobin
In Wed, 7 Jul 2021 22:27:33 +0200 Страхиња Радић wrote: > But... why? There is already slstatus, which does an excellent job. > One can make a shell script which fetches information from wttr.in > (for example), add the call to that script to crontab, and have > slstatus pick up that information.

[dev] suckless indicators?

2021-07-07 Thread Nikita Zlobin
I tried to make mere windows more useful by making them to output more useful content in place of window name. One existing example is gentoo emerge, which prints status in number of emerged packages with system load. In attachements - more such apps with same indication, which I could call taskba

Re: [dev] suckless indicators?

2021-07-07 Thread Nikita Zlobin
In Wed, 7 Jul 2021 20:26:17 +0200 Quentin Rameau wrote: > Hello, > > > Oops, some applets are in the middle of debug or with issues. > > sysmon - in debug, not working properly > > sound, weather - don't stop printing afte main app quit > > others are ok (btw, for osmo it prints date instead of

Re: [dev] suckless indicators?

2021-07-07 Thread Nikita Zlobin
In Wed, 7 Jul 2021 20:26:17 +0200 Quentin Rameau wrote: > Hello, > > > Oops, some applets are in the middle of debug or with issues. > > sysmon - in debug, not working properly > > sound, weather - don't stop printing afte main app quit > > others are ok (btw, for osmo it prints date instead of

Re: [dev] Better naming for arg.h API

2021-07-07 Thread Nikita Zlobin
In Mon, 5 Jul 2021 13:36:50 +0200 Hiltjo Posthuma wrote: > It is based on: > https://9fans.github.io/plan9port/man/man3/arg.html > > argc (count) and argv (array of strings) are the program argument > names. > Btw, I only just looked to header, linked in that man page: https://9fans.github.io/

[dev] suckless indicators?

2021-07-07 Thread Nikita Zlobin
Oops, some applets are in the middle of debug or with issues. sysmon - in debug, not working properly sound, weather - don't stop printing afte main app quit others are ok (btw, for osmo it prints date instead of time). term indicator implementation, writtin in shell, is limited by shell limitatio

Re: [dev] Enhanced arg.h from quark

2021-07-06 Thread Nikita Zlobin
In Tue, 6 Jul 2021 09:44:05 +0200 Laslo Hunhold wrote: > On Tue, 06 Jul 2021 00:08:04 + > Sebastian LaVine wrote: > > Dear Sebastian, > > > Might I recommend using https://0x0.st or > > https://ix.io for pastebins. You can read and > > write to them using curl, or still use the browser > >

Re: [dev] Better naming for arg.h API

2021-07-06 Thread Nikita Zlobin
In Mon, 5 Jul 2021 13:36:50 +0200 Hiltjo Posthuma wrote: > It is based on: > https://9fans.github.io/plan9port/man/man3/arg.html > > argc (count) and argv (array of strings) are the program argument > names. > Yup, and in this context - following name looks strange: > The function macro ARGC r

[dev] Enhanced arg.h from quark

2021-07-05 Thread Nikita Zlobin
Check for double dash may be done in for loop. arg.h: https://pastebin.com/c4FQcrtH I tried to compare objdump'ed compiler output with different options - filesizes are same, though difference exists. There are diffs for 3 -O levels: -O3, -O2, -Os. For -O3: --- tabbed-O3-1.o.objdump 2021

[dev] Better naming for arg.h API

2021-07-05 Thread Nikita Zlobin
For now all names in arg.h use ARG for prefix. However, considering existing argv parsing helpers like getopt, there could be two prefixes: OPT - for option key or name (for long opts) ARG - optional option value if any, argument. This way I could propose alternated naming, which would be more cle

[dev] reusable lib for suckless packages

2021-07-04 Thread Nikita Zlobin
I found, some files are common between different s* packages. E.g., I sent cleaned up arg.h for tabbed and st, but it's still in more places, like dmenu. Would be more wise to move these files, as well as some functions, to system-installed libs. Headers would go to include dir, and reusable code

Re: [dev] Why not use the -exec feature of find?

2021-07-03 Thread Nikita Zlobin
In Sat, 03 Jul 2021 06:52:54 +0300 Greg Minshall wrote: Well, now there is one difference to implement in suckless find implementation: no need for -exec...+ option at all (and even all action arguments, thus implying one additional change for most utils, will describe below). All actions could

Re: [dev] Why not use the -exec feature of find?

2021-07-03 Thread Nikita Zlobin
In Sat, 03 Jul 2021 06:52:54 +0300 Greg Minshall wrote: My bad, I did not read all msgs in topic, so missed mention of '{}' + variant. Need to check it.

Re: [dev] Why not use the -exec feature of find?

2021-07-02 Thread Nikita Zlobin
In Sat, 03 Jul 2021 06:52:54 +0300 Greg Minshall wrote: Replying to topic start, which is not in my local ingoing dir. There's only one advantage for find... -exec method: compatibility and lower processes number. It runs command for each single argument. Two reasons for xargs to be more effect

Re: [dev] tabbed: Use PWD xprop to set workdir for spawned clients. Any clear cons?

2021-07-02 Thread Nikita Zlobin
In Fri, 2 Jul 2021 20:14:58 +0200 Mateusz Okulus wrote: > As far as I know the process it to submit patches to > hack...@suckless.org, where you can get some feedback and make > improvements. On such a simple patch there is just not much to say. > Then here https://suckless.org/wiki/ are instruct

Re: [dev] tabbed: Use PWD xprop to set workdir for spawned clients. Any clear cons?

2021-07-02 Thread Nikita Zlobin
В Fri, 2 Jul 2021 17:53:27 +0200 Hiltjo Posthuma пишет: > On Fri, Jul 02, 2021 at 01:16:41AM +0500, Nikita Zlobin wrote: > > I use tabbed for multitab terminal emulator. But I lacked one > > feature, presenting in at least some vte-based terminals: when new > > tab is opened

Re: [dev] Possible ideas for suckless project

2021-07-02 Thread Nikita Zlobin
In Thu, 1 Jul 2021 23:17:33 +0200 Hiltjo Posthuma wrote: > On Thu, Jul 01, 2021 at 11:54:27PM +0500, Nikita Zlobin wrote: . > > > 2. Gfxterm (graphics output server). > > > > What's great in TUI apps - probably, that they don't do graphical > &

[dev] tabbed: Use PWD xprop to set workdir for spawned clients. Any clear cons?

2021-07-01 Thread Nikita Zlobin
I use tabbed for multitab terminal emulator. But I lacked one feature, presenting in at least some vte-based terminals: when new tab is opened, it inherits workdir from previous active tab. I tried to find, it same could be implemented with tabbed. I found following solution, which would work inde

[dev] Possible ideas for suckless project

2021-07-01 Thread Nikita Zlobin
Hello. I had some ideas for several years, but never tried to discuss them due to nothing similar was ever in use. I like suckless direction, though I would also seek to use same concepts (those I already know) to boost effectives and usefulness for regular-user-oriented configs as well As for 'co