Re: [dev] Build system: redo

2021-01-03 Thread Страхиња Радић
On 21/01/03 02:38, Greg Reagle wrote: > I am in the habit of using printf rather than echo because of the drawbacks > of echo as explained in > https://unix.stackexchange.com/questions/65803/why-is-printf-better-than-echo. > For > echo relinking > specifically, it doesn't matter. For > ec

Re: [dev] [dwm][bug] Programs teleport tag on startup

2021-01-17 Thread Страхиња Радић
On 21/01/16 10:13, Spenser Truex wrote: > I can't imagine any way that this is desirable. I will try to patch a > fix later, seems like low hanging fruit. I think this should be a patch for dwm, in order to not increase the complexity of the code. The idea of dwm and suckless programs is s

Re: [dev] [dwm] Hide window content when moving/resizing windows

2021-02-10 Thread Страхиња Радић
On 21/02/10 01:10, Κράκ Άουτ wrote: > So, looking at your code, can I limit updates to 1/sec instead of > 60/sec? Changing this line, > `if ((ev.xmotion.time - lasttime) <= (1000 / 60))` > to > `if ((ev.xmotion.time - lasttime) <= (1000 / 1))` > would be enough? > > Can I also achieve 0/sec someho

Re: [dev] [dwm] Hide window content when moving/resizing windows

2021-02-10 Thread Страхиња Радић
On 21/02/10 03:46, Страхиња Радић wrote: > time. The check succeeds if the difference is 1000/60 ~ 17 in the first case > and > 1000 in the second case. As the divisor gets closer to zero, the threshold *is lesser than or equal to signature.asc Description: PGP signature

Re: [dev] [dwm] Hide window content when moving/resizing windows

2021-02-10 Thread Страхиња Радић
On 21/02/10 08:09, Κράκ Άουτ wrote: > resources. So if the if-block is removed you get the opposite of 0/sec. > The if block includes not only the condition "if (/*...*/)", but also the line or a block of code following it, whose execution is controlled by the condition. signature.asc D

Re: [dev] st: enlarge font

2021-03-20 Thread Страхиња Радић
On 21/03/20 12:01, Nuno Teixeira wrote: > st -f "Liberation Mono":pixelsize=16 is my desired size. > > I will create a config.h with: > static char *font = "Liberation > Mono:pixelsize=16:antialias=true:autohint=true"; > > And compile with it, is that the correct way to do it? It will w

Re: [dev] st: enlarge font

2021-03-24 Thread Страхиња Радић
On 21/03/24 04:13, Cág wrote: > Actually config.def.h is a template, the default configuration, and > probably should be left unmodified. The rule you mentioned (run by `make > config.h` copies config.def.h into config.h, obviously, and then config.h > is supposed to be edited. Didn't kno

[dev] [svkbd] layout.sr.h

2021-03-29 Thread Страхиња Радић
Hi, I created a Serbian keyboard layout for svkbd, how can I upload it so it can be included in svkbd? Thanks in advance, Strahinya Radich signature.asc Description: PGP signature

Re: [dev] [svkbd] layout.sr.h

2021-03-29 Thread Страхиња Радић
On 21/03/29 11:25, Hiltjo Posthuma wrote: > > Hi, > > You can add the patch as an attachment or inline and send it for review (any > Serbian > users care to review it?). I have attached the patch to this email. I essentially modified the existing layout.sh.h to match the XKB "sr" layout

Re: [dev] Completeness suckless

2021-04-09 Thread Страхиња Радић
On 21/04/09 03:18, Laslo Hunhold wrote: > You can build software with the goal of user-friendliness in mind, but > this always comes with concessions. As long as you provide consistent > and easy to understand user-interfaces (APIs, Synopses, etc.), it is, I > think, the user's turn to try to under

Re: [dev] [st] libxft-bgra X Error

2021-04-19 Thread Страхиња Радић
On 21/04/19 11:59, Luuk van Baal wrote: > I was looking for pointers in regards to this error I'm receiving when > using > libxft-bgra(https://gitlab.freedesktop.org/xorg/lib/libxft/-/merge_requests/1). > I explained the issue in > (https://gitlab.freedesktop.org/xorg/lib/libxft/-/merge_requests

Re: [dev] [st] libxft-bgra X Error

2021-04-19 Thread Страхиња Радић
On 21/04/19 07:06, Страхиња Радић wrote: > Interesting, I'm not getting this error. I use Artix Linux, libxft-bgra > 2.3.3.r7.7808631e-1 from AUR, vim 8.2.2653-1 and my modified st which I > regularly update from suckless repo[1]. Also ttf-nerd-fonts-symbols, *not* > ttf-nerd-f

Re: [dev] less lines of code suck less

2021-05-04 Thread Страхиња Радић
On 21/05/03 05:27, Greg Reagle wrote: > And if it has less lines, in a higher level language, sounds like a win. Higher level languages usually mean more complexity and less control. Having less lines in a higher level language doesn't mean much if the language adds unnecessary overhead "behind th

Re: [dev] [st] Thoughts on kitty keyboard protocol

2021-05-22 Thread Страхиња Радић
On 21/05/22 06:50, Tobias Bengfort wrote: > https://sw.kovidgoyal.net/kitty/keyboard-protocol.html > > Basically it provides a way to send unambigous esc and other keys as well as > key release events to terminal programs while being mostly backwards > compatible. > > It sounds like a reasonable

Re: [dev] [st] Thoughts on kitty keyboard protocol

2021-06-20 Thread Страхиња Радић
On 21/06/20 08:25, opal hart wrote: > Suckless software isn't a void separate from the rest of the world, Suckless software is following a specific set of principles, and the software that sucks is not following those principles. The two are separate. > and > the "suckless philosophy" is constant

Re: [dev] [st] Thoughts on kitty keyboard protocol

2021-06-21 Thread Страхиња Радић
On 21/06/21 07:00, Tobias Bengfort wrote: > To me it is also obvious that this protocol sucks less than the old one. If we go only by the added code, it is quite the contrary. Less is more. > Currently you need to write a GUI if you need to get reliable keyboard > events. This proposal would allo

Re: [dev] [dwm] Why should (or shouldn't) dwm have a spawn function?

2021-06-28 Thread Страхиња Радић
On 21/06/29 10:03, Martin Tournoij wrote: > > It is true that some people could be driven away after being greeted > > with a black screen without any preconfigured keybinding to open a > > terminal or dmenu, but dwm takes pride in "keeping its userbase small > > and elitist, withoutnovices aski

Re: [dev] [dwm] Why should (or shouldn't) dwm have a spawn function?

2021-06-29 Thread Страхиња Радић
On 21/06/29 02:04, qsm...@tutanota.com wrote: > However, worded at it is now, I think we will agree that for someone on the > outside it will come out as proud or warding off, whereas something like "we > have no interest in being very popular or trendy; our software will not be > expanded to adapt

Re: [dev] suckless indicators?

2021-07-07 Thread Страхиња Радић
On 21/07/08 12:49, Nikita Zlobin wrote: > 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. But... why? There is already sls

Re: [dev] suckless indicators?

2021-07-08 Thread Страхиња Радић
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 dedicated script, designed > to run parallel and write to window title, while main app displays it >

Re: [dev] suckless indicators?

2021-07-08 Thread Страхиња Радић
On 21/07/08 02:47, Nikita Zlobin wrote: > People don't serve machines - machines serve people. To turn this around, machines serve people who know how to control them. People who don't should not dictate features to be included in software. I think the results of doing the opposite are obvious an

Re: [dev] Auditing requiirement for sbase

2021-07-30 Thread Страхиња Радић
On 21/07/30 10:42, EuAndreh wrote: > > but POSIX already sells such a set of unit tests. > > A curiosity of mine: was such test suite ran against sbase? If you have found a bug in sbase, do report it. Otherwise, the idea of suckless software is for software to have simple and easy to understand

Re: [dev] [svkbd] layout.sr.h

2021-07-30 Thread Страхиња Радић
On 21/03/29 11:39, Страхиња Радић wrote: > On 21/03/29 11:25, Hiltjo Posthuma wrote: > > > > Hi, > > > > You can add the patch as an attachment or inline and send it for review > > (any Serbian > > users care to review it?). > > I have at

Re: [dev] [svkbd] layout.sr.h

2021-08-01 Thread Страхиња Радић
On 21/07/30 09:24, Hiltjo Posthuma wrote: > I'm not sure, but in the original e-mail I asked if there are other Serbian > users to review it. That would be nice, because I can't really properly review > the patch. Who reviewed the layout.sh.h? Can't the same person review layout.sr.h? signature

Re: [dev] [svkbd] layout.sr.h

2021-08-02 Thread Страхиња Радић
On 21/08/02 02:31, Petr Vaněk wrote: > probably no Serbian reviewers here if no one wrote in 4 months :) I suspected that is the case, but still the question remains who then reviewed layout.sh.h? > Anyway, I looked to the patch and compared the layout with online > available images of Serbian ke

Re: [dev] Article in line with suckless.org

2021-08-07 Thread Страхиња Радић
On 21/08/07 08:02, Sagar Acharya wrote: > It enhances the value of suckless by pointing the problems in gigantic > softwares. Let me know what you think. The plural form of "software" is "software". "Softwares" is not a real word in English. > Thanking you *Thank you > It enhances the value of

Re: [dev] [st] Crash when displaying these characters

2021-08-16 Thread Страхиња Радић
On 21/08/16 09:56, Robert Alm Nilsson wrote: > X Error of failed request: BadLength (poly request too large or > internal Xlib length error) > Major opcode of failed request: 139 (RENDER) > Minor opcode of failed request: 20 (RenderAddGlyphs) > Serial number of failed reque

Re: [dev] [st] Crash when displaying these characters

2021-08-18 Thread Страхиња Радић
On 21/08/18 08:06, Mateusz Okulus wrote: > You need libxft-bgra. It's a bug in xft. > > Read https://git.suckless.org/st/file/FAQ.html for explanation. > > Notice that instead of disabling as in FAQ you can install this fork of > xft which is what I recommend, because it'll also work on dwm, dmen

Re: [dev] [st] Crash when displaying these characters

2021-08-20 Thread Страхиња Радић
On 21/08/20 07:27, Mateusz Okulus wrote: > I haven't experienced any crashes after installing xft-bgra. For regular > use this seems to be enough. Even then both dwm and st use libxft, and > I'm fairly certain that there are no patches to replace it. There isn't > a better alternative afaik. I was

Re: [dev] [st] Crash when displaying these characters

2021-08-20 Thread Страхиња Радић
To add to my previous message, this occasional crashing could be the reason behind the recommended approach by suckless - disabling the color emoji support altogether, instead of having programs run unreliably. And finally, when I recommended reading the FAQ, it was precisely because this issue wa

Re: [dev] Wayland compositors

2021-08-31 Thread Страхиња Радић
On 21/08/31 02:28, Nick wrote: > Hi all, > > I'm thinking it would be fun to play around with Wayland, so was > looking at different compositors (which do window management plus > other stuff). Has anyone else on the list taken Wayland for a spin > and had any experience with them? > > From a

Re: [dev] Wayland compositors

2021-09-08 Thread Страхиња Радић
On 21/09/08 12:28, Nick wrote: > honest I found the arguments made there to be largely unconvincing, Any argument in particular and why? > * I'm thinking in particular of the repeated "emojis broke my st" > mails, caused by a bug in Xft that noone upstream seems to care much > about fixing,

Re: [dev] Wayland compositors

2021-09-08 Thread Страхиња Радић
By the way, here's another article not on Github (but linked from that page): https://tildearrow.org/?p=post&month=2&year=2021&item=antihs signature.asc Description: PGP signature

Re: [dev] Wayland compositors

2021-09-08 Thread Страхиња Радић
On 21/09/08 01:36, Nick wrote: > The fact that the Jitsi devs closed > the bug as "not much we can do on our side" doesn't mean "wayland > broke it and we can't fix it". It's exactly the same thing. > the screen recording / sharing stuff - it works differently on > Wayland (for not-bad reasons

Re: [dev] Wayland compositors

2021-09-17 Thread Страхиња Радић
On 21/09/16, 20:36, Kyryl Melekhin wrote: >And remember, always follow unix philosophy - go for what works first, optimize >it later. This should read "programs should do one thing and do it well" (DOTADIW)[1], with the added "and work together". Exactly what Wayland's monolithic, opinionated con

Re: [dev] st crash(child exited with status 1)

2021-09-28 Thread Страхиња Радић
On 21/09/28 01:24, Sergei wrote: > 1. screen -dmS rtorrent_daemon rtorrent -n -o import=~/.rtorrent/rtorrent.rc [...] > 2. sudo -u user bash -c "st  -e screen -r rtorrent_daemon" or "st -e screen > -r rtorrent_daemon st -e screen -r rtorrent_daemon Running this command, there are

Re: [dev] tcvt: very useful for seeing more at once

2021-10-14 Thread Страхиња Радић
On 21/10/14 12:28, Greg Reagle wrote: > Useful, but a lot of wasted screen space on my monitor: > man dwm If MANWIDTH is unset (default), man page will take all of the available width of the terminal, unless: - COLUMNS is also somehow unset (it is set by most sane shells by default), or - ioc

Re: [dev] tcvt: very useful for seeing more at once

2021-10-15 Thread Страхиња Радић
On 21/10/15 07:03, Martin Tournoij wrote: > Note that mandoc has a default of 78 if not set; GNU man (and maybe some > others?) do indeed take up the full width by default, but mandoc won't take up > more than 78. I've mostly used GNU man, and from my briefly trying other versions of man I didn't

Re: [dev] Whether a css selector applies to given html surf code

2021-10-26 Thread Страхиња Радић
This is what a web page should be: http://motherfuckingwebsite.com/ This is less minimal, more readable, but still not plagued by "frameworks" and "web coding" (uggh!). This is as far as web should go, ideally: http://bettermotherfuckingwebsite.com/ There is nothing to gain from "minifying" CSS

Re: [dev] Whether a css selector applies to given html surf code

2021-10-26 Thread Страхиња Радић
On 21/10/26 04:48, Sagar Acharya wrote: > That's a bit more primitive. It can go a bit more vibrant wrt fonts, colors, > break points for mobile, tablet which would still be minimal in my view. I'm > approaching such simplicity from the other complex end which most people > prefer, unfortunately.

Re: [dev] Whether a css selector applies to given html surf code

2021-10-26 Thread Страхиња Радић
On 21/10/26 05:22, Nick wrote: > Quoth Страхиња Радић: > > This is what a web page should be: > > > > http://motherfuckingwebsite.com/ > > When I load that in tor browser with js disabled (my default setup > these days), I get a 20741 byte page with the title &quo

Re: [dev] Whether a css selector applies to given html surf code

2021-10-26 Thread Страхиња Радић
On 21/10/26 08:32, Sagar Acharya wrote: > People like what they feel. Majority of people out there aren't coders. > Majority of coders just code to earn and would gladly just accept what their > company pushes to them. These people just like convenience. As much as we'd > like them to accept a bit

Re: [dev] [st] wide characters getting cropped

2021-10-26 Thread Страхиња Радић
n 21/10/26 07:51, Ian Liu Rodrigues wrote: > echo -e '\e[31m \e[0m c' > echo -e '\e[31m  \e[0mc' > > > Here is a screenshot of the script's output: https://qu.ax/3SBs.png For me, this patch fixed the glyph truncation: https://github.com/LukeSmithxyz/st/pull/224 Perhaps someone could ad

Re: [dev] [st] wide characters getting cropped

2021-10-29 Thread Страхиња Радић
On 21/10/29 12:18, Dmytro Kolomoiets wrote: > Страхиња Радић, do you have a cleaned up version of the patch > which applies to latest st tree without rejecting hunks? No, but it shouldn't be too hard to make given the PR. I have applied it to my fork of st (https://git.sr.ht/~s

Re: [dev] [st] wide characters getting cropped

2021-11-09 Thread Страхиња Радић
On 21/11/09 02:00, Laslo Hunhold wrote: > I'm always wondering: What do you suggest to improve the > latency-situation? Can we even be "better" than the screen's framerate? I'm wondering what's the use case for such critical need for low latency? Playing DOOM (2016) in a terminal with aalib? That'

Re: [dev] [st] wide characters getting cropped

2021-11-11 Thread Страхиња Радић
On 21/11/10 08:55, NRK wrote: > I wouldn't say it's "critical need". And if we judge from that pov then > one could ask, "What's the critical need for a dynamic window manger or > minimal softwares in general?". Terminal emulator's job is to allow terminal input/output. Latency is simply not relev

Re: [dev] [surf] XDG conformity

2021-12-19 Thread Страхиња Радић
On 21/12/16 09:39, Janek F wrote: > After trying surf recently, I was appalled to see a ".surf" directory in my > home. > Is XDG basedir compliance not natural in suckless software? Suckless software follows the principles that predate X Desktop Group and its specifications, as well as its own pr

Re: [dev] [surf] segmentation fault

2022-01-12 Thread Страхиња Радић
On 22/01/12 04:02, m...@datameer.com wrote: > Does that mean I have to compile surf incl all dependencies with > https://github.com/void-linux/void-packages? Compiling from source is the intended way to use suckless software. Suckless software is configured by editing config.h, rather than by usi

Re: [dev] [surf] segmentation fault

2022-01-13 Thread Страхиња Радић
On 22/01/13 11:52, m...@datameer.com wrote: > Regarding the note on the website `Compile your own webkit or expect > hell`... > Is it better or more stable to compile webkit as well? Why don't you just try it and find out? If you are asking me about my personal experience, I always compile surf f

Re: [dev] requirements of build systems

2022-01-31 Thread Страхиња Радић
On 22/01/31 12:10, Petros Pateros wrote: > What would you expect from a build system? Should it trust mtime? > Is it responsible for verifing the file's contents for actual changes? > More generally, what are the key features that make a build system useful? apenwarr/redo is the implementation of

Re: [dev] requirements of build systems

2022-02-05 Thread Страхиња Радић
On 22/02/05 03:23, Petros Pateros wrote: > On Mon, Jan 31, 2022 at 06:38:01PM +0100, Страхиња Радић wrote: > > apenwarr/redo is the implementation of djb redo I settled on for my > > programs. It > > has the most features among the current implementations. > > I&

Re: [dev] Is there a text editor following the UNIX philosophy?

2022-02-12 Thread Страхиња Радић
On 22/02/11 11:47, Daniel Littlewood wrote: > It seems to me like the obvious alternative workflow would be, rather > than to have a single monolithic program for the general job of > "editing text" (which is really lots of jobs pretending to be one), > one might have a program for syntax highlight

Re: [dev] [dwm] hardcoded dmenucmd && dmenumon

2022-02-17 Thread Страхиња Радић
On 22/02/17 01:08, NRK wrote: > Assuming there isn't, one alternative could be just using env vars. Why would an environment variable be preferable here to a command line parameter? Environment variables are clunky, messy, insecure, prone to errors, race conditions and the whims of a particular s

Re: [dev] Some direction with my project

2022-04-15 Thread Страхиња Радић
On 22/04/15 02:20, Wolf wrote:> > Configure script provides lot more then detection though. I have yet to > see a hand written make providing support for --program-prefix or > --program-transform-name for example. For packaging software, these > additional features are useful from time to time. T

Re: [dev] [st] UTF-8 not working

2022-04-20 Thread Страхиња Радић
On 22/04/19 07:09, Robert Winkler wrote: > > Sorry, but I don't get it fixed. I rebuilt the locals with dpkg-reconfigure > locales, with the US UTF-8 as default. > > On lxterminal, the characters é, ö etc. work. In st they don't. With export LC_ALL=en_US.UTF-8 properly configured fonts in fon

Re: [dev] [st] UTF-8 not working

2022-04-24 Thread Страхиња Радић
On 22/04/24 02:53, Robert Winkler wrote: > Hi, thanks for all the hints I got from the [st] [dev]! > Anyway, I still cannot sort it out; hopefully the following information > helps that someone can spot the problem: > As I mentioned, the UTF-8 symbols work in other terminals such as > lxterminal.

Re: [dev][st][dwm] st UTF-8 works on Gnome, but not on DWM

2022-04-26 Thread Страхиња Радић
On 22/04/26 08:20, Robert Winkler wrote: > Anyone has an idea, what could be the difference between Gnome and DWM > with respect to the font encoding? I'm using dwm in X.Org using no display manager (autostart X at login [1]) in Artix Linux and everything works correctly. Setting environment vari

Re: [dev][st][dwm] st UTF-8 works on Gnome, but not on DWM

2022-04-26 Thread Страхиња Радић
On 22/04/26 05:39, Hadrien Lacour wrote: > > Compare the output of env in the two situations. Something I noticed in one of > your mails: you have en_US.UTF-8 in your locale output while here, on Gentoo, > I > have en_US.utf8. https://wiki.gentoo.org/wiki/Localization/Guide > The command above l

Re: [dev][st] Solution: UTF-8 needs IBus!

2022-04-27 Thread Страхиња Радић
On 22/04/26 03:59, Robert Winkler wrote: > To make a long story short: The input of UTF-8 characters with st needs > an IBus daemon No, it doesn't. signature.asc Description: PGP signature

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

2022-04-28 Thread Страхиња Радић
On 22/04/28 09:29, Hiltjo Posthuma wrote: > Recently dark mode CSS support was added to the site. > > It was reported on IRC the logo's were not visible with them. This can be remedied with CSS which applies white background to logos (perhaps with some padding: to also give a bit of a border).

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

2022-04-28 Thread Страхиња Радић
On 22/04/28 12:19, Laslo Hunhold wrote: > What do the others think? I also like them, I think they contribute to overall visual identity of suckless programs and suckless.org and should be reincorporated into the website. signature.asc Description: PGP signature

Re: [dev] [st] UTF-8 not working

2022-04-28 Thread Страхиња Радић
On 22/04/15 07:08, Robert Winkler wrote: > Hi, according to the st Status, UTF-8 should be working. Much needed for > multilingual typing with ú, ü, ß, µ, ¿ etc. > However, I only get 00e9 if I type é; anything, I need to specify in > config.h? > Best, Robert Liks I said, I only use: - lo

Re: [dev] [st] UTF-8 not working

2022-04-28 Thread Страхиња Радић
On 22/04/28 06:48, Страхиња Радић wrote: > May I ask what shell are you using inside st? The only problem I noticed so > far > with my script, which uses xdotool(1) to type characters, is when I am using > it > while st is specifically executing mksh as a shell. With bas

Re: [dev] [st] UTF-8 not working

2022-04-28 Thread Страхиња Радић
On 22/04/28 01:44, Robert Winkler wrote: > > usually, I am using the fish https://www.youtube.com/watch?v=8AQobpqySAU signature.asc Description: PGP signature

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 P

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&t=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 mismatched/misconfig

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 i

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

2022-07-24 Thread Страхиња Радић
On 22/07/23 11:06, Tom Schwindl wrote: > Again, you'd have to rely on a tool which isn't defined. > If a system says it's POSIX compliant, we can assume that the `-s' option > exists, but there is no standard which tells us whether ranlib(1) is available > or not. Standards are not the Holy Grail.

[dev] tar filename handling

2022-07-31 Thread Страхиња Радић
I was using suckless tar to create an archive of a Python package, and hit a limit. When checking out the code, I noticed that the name of the file is 100 characters long, however there is also the prefix field which is 155 characters long, and the actual path should be combined from prefix (if

Re: [dev] tar filename handling

2022-08-01 Thread Страхиња Радић
=A1=D1=82=D1=80=D0=B0=D1=85=D0=B8=D1=9A=D0=B0=20=D0=A0?= =?UTF-8?q?=D0=B0=D0=B4=D0=B8=D1=9B?= Date: Mon, 1 Aug 2022 09:12:03 +0200 Subject: [PATCH] Split path into prefix + name on -c MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Страхиња

[dev] tar -n (equivalent of --no-recursion)

2022-08-01 Thread Страхиња Радић
=9A=D0=B0=20=D0=A0?= =?UTF-8?q?=D0=B0=D0=B4=D0=B8=D1=9B?= Date: Mon, 1 Aug 2022 09:21:08 +0200 Subject: [PATCH] Add -n (equivalent of --no-recursion) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Страхиња Радић --- tar.1 | 5 ++

Re: [dev] tar filename handling

2022-08-01 Thread Страхиња Радић
On 22/08/01 09:30, Quentin Rameau wrote: > Andrew has posted a patch (on hackers@ on may first) for this > that nobody had time to review yet. :/ > I suggest you try it, that should fix your issue. Ah, I'm not subscribed on that list (yet?). Anyway, I tested my patch on my use case and it behaves

[dev] Broken link in /faq/

2022-08-31 Thread Страхиња Радић
The first link in https://suckless.org/faq/ http://freecode.com/articles/stop-the-autoconf-insanity-why-we-need-a-new-build-system seems to be broken. Just wanted to ask if it is ok for me to replace it with https://web.archive.org/web/20181118080003/http://freshmeat.sourceforge.net/articles/st

Re: [dev] Commandline Email Advice Request

2022-11-27 Thread Страхиња Радић
On 22/11/25 09:43, Teodoro Santoni wrote: > Gmail doesn't allow to use SMTP in a classic way (normal auth > with/without encryption). You may need to ask your sysadmins for > XOAUTH2 keys and try to pass that git send-email through an SMTP thing > like msmtp. > A faster solution would be to make th

Re: [dev] st: no need for scrollback patch or program by using -o option

2023-01-16 Thread Страхиња Радић
On 23/01/14 09:25, Markus Wichmann wrote: > On Fri, Jan 13, 2023 at 07:53:41PM -0600, Dave Blanchard wrote: > > I experimented with st for a week or so, before finally realizing that > > it's poorly-written trash. It has no advantages over XTerm at all. > > > > So where's the patch? > > Given tha

Re: [dev] st: no need for scrollback patch or program by using -o option

2023-01-16 Thread Страхиња Радић
On 23/01/16 12:33, Страхиња Радић wrote: > Most of what's to be said in "defense" of st and other suckless software is > already out there on suckless.org, including the sorry state of XTerm being > the > driving idea behind writing st, which the OP turned upside-dow

Re: [dev] [st] Font problem

2023-02-10 Thread Страхиња Радић
On 23/02/10 03:19PM, Vincent Lefevre wrote: > Actually that's more Cairo vs Xft. Pango may use either: Right. In any case, the most likely place the OP should check is fontconfig configuration and fc-* programs for debugging (fc-match, fc-list and so on). signature.asc Description: PGP signatur

Re: [dev] [DEV][Quark] Big problem

2023-02-25 Thread Страхиња Радић
On 23/02/25 12:59PM, fo...@dnmx.org wrote: > Tried -s 128 -t 8, doesn't seem to do jack shit.. > Got less than 10 connection logs from Quark and then another dropped one.. > Is there any other reason Quark would print-out 'dropped', other than > connection pool at max? > > I restarted the jail, so

Re: [dev] [dwm] with SIGCHLD commit, dwm cannot launch dmenu_extended.

2023-04-08 Thread Страхиња Радић
On 23/04/08 07:24PM, p...@mailbox.org wrote: > static const char *dmenu_extend[] = { "dmenu_extended_run", NULL }; How about: > > (Try changing your > > dmenu_extended keybind to something else and see if that works or not). 1. What happens if you use: static const char *dmenu_exten

Re: [dev] Using ii to connect to libera

2023-04-20 Thread Страхиња Радић
On 23/04/20 06:00, Sagar Acharya wrote: > I expected it to be interactive out of the box. A chat client, I cannot > imagine anything except interactive abilities. Consider this a learning opportunity then: it is better to read documentation and/or a website[1] of some program, than create assump

Re: [dev] [license] gpl issues

2023-05-06 Thread Страхиња Радић
On 23/05/05 08:07AM, Laslo Hunhold wrote: > I try to take a balanced stance in the GPL vs. MIT discussion, given it > usually derails into tribalist diatribes on both sides. Essays have been written and are available online explaining everything about GPL and related licenses, so there's no need

Re: [dev] [license] gpl issues

2023-05-07 Thread Страхиња Радић
On 23/05/06 09:55PM, Laslo Hunhold wrote: > [0]:https://unixsheikh.com/articles/the-problems-with-the-gpl.html Dear Laslo, Thank you for reminding me of Unixsheikh's article on his view of GPL and other licenses. I read it a while ago, but the arguments presented in it leave me unconvinced. I d

Re: [dev] Simpler WiFi alternatives

2023-05-12 Thread Страхиња Радић
On 23/05/11 04:03PM, fo...@dnmx.org wrote: This list needs moderation ASAP, otherwise it risks turning into another Reddit (which, for those who might not know, is a veritable cesspool). signature.asc Description: PGP signature

Re: [dev] organizing programs

2023-05-13 Thread Страхиња Радић
On 23/05/12 02:11PM, LM wrote: > I'd be curious to know what tools other people use on the list to > handle organizational jobs such as time and task scheduling, todo > lists, habit tracking, displaying/printing calendars, etc. Any > recommendations? If you use more than one application, which pr

Re: [dev] running a shortlink provider

2023-05-24 Thread Страхиња Радић
On 23/05/25 07:02AM, Marcel Plch wrote: > 2) Pick favorite Web stack [...] > I personally would go for Python/Django, I'm not sure how suckless that's > considered (probably not at all) [...] > Web is in a sad state so You answered your own question. Web is bloat, in particular HTML itself as som

Re: [dev] running a shortlink provider

2023-05-25 Thread Страхиња Радић
On 23/05/25 10:29AM, Anthony wrote: > What do you mean by, "because of concurrency"? At any given moment, several HTTP clients can request posting data at the same time. They can hang indefinitely in the middle of sending data. If the process involves writing to a file, this can lead to data cor

Re: [dev] running a shortlink provider

2023-05-26 Thread Страхиња Радић
On 23/05/25 07:19PM, Spenser Truex wrote: > I don't support this database heavy database stuff. A key-value pair > dataset would be enough. It's basically a perl one-liner. See (just a quick example): https://stackoverflow.com/a/43050919/184064 This is still not an ideal solution, but it illustr

Re: [dev] [quark] a monty-pythonesque journey with SYSTEMd

2023-05-31 Thread Страхиња Радић
On 23/05/29 11:37PM, Spenser Truex wrote: > systemd Just don't use it, it sucks. Use anything else for PID 1 and process supervision. https://suckless.org/sucks/systemd/ signature.asc Description: PGP signature

Re: [dev] [license] gpl issues

2023-06-18 Thread Страхиња Радић
On 23/06/18 04:58PM, Miles Rout wrote: > As far as I understand, if you create a work (A) that is a fork of another > work (B), where B is MIT-licensed, nothing stops you from licensing A as GPL. > I > wouldn't call it "relicensing": you're licensing your own work, A, which > happens to be deri

Re: [dev] [license] gpl issues

2023-06-20 Thread Страхиња Радић
On 23/06/20 08:41, Miles Rout wrote: > It requires the notice is included (so people know that that code is > available elsewhere under that licence), not that the notice is included _as > your licence for the overall work_. As someone else said, "words do matter". Copyright notice is not "just

Re: [dev] [license] gpl issues

2023-06-20 Thread Страхиња Радић
On 23/06/18 09:01, Страхиња Радић wrote: > You can't license the whole of A as GPL, only your modifications. [...] > which explicitely forbids removing the copyright and permission notices on > Expat-licensed code, or replacing them with, say, GPL notices. On second thought, I think

Re: [dev] Am I doing this right?

2023-07-02 Thread Страхиња Радић
On 23/07/02 06:39PM, Sebastian LaVine wrote: > On Sun Jul 2, 2023 at 6:28 PM EDT, Nikita Krasnov wrote: > > While we're on it. Are there any good Android email clients > > that you can recommend? I've yet to find an app that allows > > you to send emails in plain text, let alone with line > > ha

Re: [dev] Minimalist software. Should I care?

2023-07-06 Thread Страхиња Радић
On 23/07/04 07:06PM, Nikita Krasnov wrote: > What would be the point of using minimalist software if bloated and > excessively complex programs completely satisfy all my needs? Doing all that but with much less resources (in the broadest sense) wasted. On 23/07/04 01:16PM, Dave Blanchard wrote:

Re: [dev] Minimalist software. Should I care?

2023-07-06 Thread Страхиња Радић
On 23/07/04 07:06PM, Nikita Krasnov wrote: > If I had used one of the bloated programs I probably could have found a > solution in one of the menus after reading few Stack Overflow answers. But > with Neovim I'd have to first find the program that would be suitable for > what I try to achieve, then

Re: [dev] Problem with windows name

2023-07-09 Thread Страхиња Радић
On 23/07/09 08:43AM, Dr. André Desgualdo Pereira wrote: > # xprop > xprop shows the correct name, but it doesn't has the _NET_WM_NAME defined as > it used to have on Debian 11 and before (I guess it is because missing > library > tkinter for python2.7). > Example: WM_NAME(STRING) = "André Desgua

Re: [dev] Problem with windows name

2023-07-09 Thread Страхиња Радић
I debugged dwm, adding to drw.c: static void log_msg(const char* fmt, ...) { char buf[4096]; va_list args; va_start(args, fmt); vsnprintf(buf, sizeof(buf), fmt, args); va_end(args);

Re: [dev] Problem with windows name

2023-07-09 Thread Страхиња Радић
Adding to gettextprop in dwm.c: // ... if (!XGetTextProperty(dpy, w, &name, atom) || !name.nitems) return 0; FILE* log = fopen("/home/user/dwm.log", "at"); fprintf(log, "---\n"); fprintf(log, "atom = {%lu}\n", atom); f

Re: [dev] Problem with windows name

2023-07-10 Thread Страхиња Радић
text, was not shown correctly, so this patch adds an exception for root window instead, skipping conversion in that case. Reported by Dr. André Desgualdo Pereira. Signed-off-by: Страхиња Радић --- dwm.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dwm.c b/dwm.c index

Re: [dev] sbm dmenu bookmarker

2023-08-01 Thread Страхиња Радић
On 23/07/31 08:15AM, Randy Palamar wrote: > `grep -v -e '#' -e '^$' $BOOKMARKS | dmenu -i -l 20 | cut -f 1 -d ' '` > > Then I pipe it to the clipboard or a plumber script depending > on what I want to do with it (bound to a keybind in dwm). > > To add bookmarks I either use a text editor or just

Re: [dev] C variants, compilers and completeness

2023-08-18 Thread Страхиња Радић
On 23/08/18 02:18, David Demelier wrote: > On Mon, 2023-07-24 at 17:38 +0200, Sagar Acharya wrote: > > I see C compilers recommended by suckless are: > > > > tinycc > > simplecc > > cproc > > qbe > > lacc > > qbe isn't a compiler. however cproc is promising but I had various > issues compiling so

  1   2   >