Re: [dev] [dwm] New software: swm & infobary

2024-10-26 Thread NRK
violate the license. As for not every contributors being listed in the license file, that's on the upstream authors. The license imposes no legal requirement for someone who's copying it to hunt down and correct/list missing author notices. - NRK

Re: [dev] Fwd: Getting sent/ to display images

2024-10-09 Thread NRK
with sent as I haven't used it but the bulk of the work probably needs to happen at ffscale(). When filling up the ximg->data you'd need to convert it from 24/32 bits to 16 bit format. - NRK

Re: [dev] newbie questions: config*.h; patches

2024-09-22 Thread NRK
ile now since `config.def.h` doesn't provide any value to me given that I can look at git history to see the defaults if needed. - NRK

Re: [dev] Re: [st] [PATCH 0/1] Add font array support

2024-08-30 Thread NRK
], so this shouldn't be a controversial change (I think). [0]: https://lists.suckless.org/dev/2208/34923.html [1]: https://lists.suckless.org/dev/2208/34926.html - NRK

Re: [dev] Seeking Recommendations for a UNIX-like Operating System

2024-07-27 Thread NRK
Hi Marcel, > recent decisions made by the Gentoo Linux council Out of curiosity, which ones in specific do you dislike? - NRK

[dev] [dmenu] What's the expected behavior on invalid utf8?

2024-07-03 Thread NRK
nding it over. I also noticed that in utf8decode() there's this line: if (j < len) return 0; Is this ever reachable? If yes, wouldn't it be a infinite loop since `text` would never advance inside drw_text()? - NRK

Re: [dev] alternatives to C: Ada, Rust, Pascal

2024-06-21 Thread NRK
ment solutions that stems of "single element thinking"). * https://www.symas.com/post/the-sad-state-of-c-strings * https://nee.lv/2021/02/28/How-I-cut-GTA-Online-loading-times-by-70/ - NRK

Re: [dev] [dwm][st] why use ints over bools?

2024-06-15 Thread NRK
a massive waste of time, it's very likely buggy as well unless you can actually test it. So unless you know for certain that you will be targetting weird machines and have the means to test on it: keep it simple and make things *obviously correct* instead of overcomplicating things for "theoretical portability". - NRK

Re: [dev] [surf][stylesheet][startpage] New ownership of Startpage not reflected in description

2024-03-30 Thread NRK
se sense of > privacy as outlined in this article: > https://restoreprivacy.com/startpage-system1-privacy-one-group/ > Therefore, a removal of such passage is recommended. The git repo of the suckless website is publicly writeable. Feel free to push your changes in there directly: https://suckless.org/wiki/ - NRK

Re: [dev] [sbase] Defining scope of sbase and ubase

2024-03-09 Thread NRK
knows what else. At the end, I just `rm -rf` everything and re-cloned all the modules. Maybe in the future git submodule's UI will be better but as of now it's a PITA to use. - NRK

Re: [dev] Announcing a couple small X11 utilities

2024-02-14 Thread NRK
that assumption turns out to be incorrect then I might reconsider. [0]: https://codeberg.org/NRK/selx/commit/cbf753b97fbefe31c2553fa629878d20df88e6e3 - NRK

Re: [dev] dev

2024-02-03 Thread NRK
Having trouble unsubscribing? Worry not, coach NRK is at your service! For a fair pay of 1337 XMR, you'll receive: ★★★ A comprehensive guide on how to unsubscribe from the suckless dev mailing list ★★★ Offer available for a limited time only. - NRK

Re: [dev] [dmenu][bug report] Second instance invisible

2023-09-22 Thread NRK
that isn't checked for in dmenu. Perhaps you're getting a NULL ic due to your config? Does the attached patch make any difference? - NRK >From defc910ce1fa51e3031af19abae8c70b3b8b8106 Mon Sep 17 00:00:00 2001 From: NRK Date: Fri, 22 Sep 2023 23:42:10 +0600 Subject: [PATCH] che

Re: [dev] getting rid of cmake builds

2023-09-22 Thread NRK
y* conclusion is that the latter is significantly simpler and superior for small projects - and I've given a list of reason on my initial post. If someone thinks those are valid reasons, then try it out. If not, then don't. - NRK

Re: [dev] getting rid of cmake builds

2023-09-22 Thread NRK
a nail. When someone start off with an over-complicated build system, they tend to also end up over-engineering the software architecture as a result of the build system making it easy to over-complicate things. - NRK

Re: [dev] getting rid of cmake builds

2023-09-22 Thread NRK
windows.c [...] # on windows with msvc without requiring mingw or similar - NRK

Re: [dev] getting rid of cmake builds

2023-09-22 Thread NRK
speed up compilation. For example the infamous linux kernel "fast header" patches included reducing TUs by, "consolidating .c files": https://lore.kernel.org/lkml/ydifz+lmewets...@gmail.com/T/#u - NRK

Re: [dev] [dmenu][bug report] Second instance invisible

2023-09-22 Thread NRK
Cannot reproduce on my system, tried on unpatched master branch and v5.2. The 2nd dmenu instance appears just fine after the first one closes. If you can consistently reproduce, then attach gdb to the 2nd instance (via `gdb --pid`) and try to inspect what might be going wrong compared to a non-buggy case. - NRK

Re: [dev] sbm dmenu bookmarker

2023-07-31 Thread NRK
accept a file, you can use shell redirection, e.g `https://en.wikipedia.org/wiki/Cat_(Unix)#Useless_use_of_cat - NRK

Re: [dev] Announcing a couple small X11 utilities

2023-07-31 Thread NRK
74a0 sp 0x7ffe95aa7498 And even if you enter a valid value, ASan reports 2 leaks (output cleaned up): $ ./sxot -m 0 >/dev/null SUMMARY: AddressSanitizer: 1296 byte(s) leaked in 2 allocation(s). So something probably needs to be freed above. - NRK

Re: [dev] Suckless DNS server

2023-07-19 Thread NRK
u know that, you can simply shift the bytes into proper place *never* needing to ask or know about the host system's byte order. - NRK

Re: [dev] Suckless DNS server

2023-07-19 Thread NRK
ecause I know nothing about it, but the above criticism at least seems more like knee jerk reaction due to something being different rather than actual/technical criticism. - NRK

Re: [dev] [dwm][PATCH] Add function to exec into another executable

2023-07-15 Thread NRK
you can just invoke `shutdown`. - NRK

Re: [dev] Help to debug window name with special characters

2023-07-07 Thread NRK
f8 IIRC. I'm not sure what encoding those other two are using, but it's probably not using utf8 which is why it's not working. Try to see if there's some settings in those application (or their gui libraries) to make them use utf8. - NRK

Re: [dev] Announcing a couple small X11 utilities

2023-07-06 Thread NRK
duplicate all that work. - NRK

Re: [dev] Help to debug window name with special characters

2023-07-05 Thread NRK
e you said it works on debian 11, it might also be useful to share the output of them from debian 11 and compare with 12 to see if anything changed. (Specifically, I'm interested in the "type" of the property. If it's anything other than STRING or UTF8_STRING then that might be a hint.) - NRK

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

2023-07-05 Thread NRK
the end of the day, I'm not really interested in trying to forcefully "convert" you (or anyone else) since I believe that people should be able to do what they want with their computers. - NRK

Re: [dev] Announcing a couple small X11 utilities

2023-07-04 Thread NRK
On Tue, Jul 04, 2023 at 04:37:23PM -0400, Sebastian LaVine wrote: > I'm curious, what inspired you to write this instead of using xwd? Never really knew that it existed :) Going by the manpage, it seems to do a bit more than I'd like, but overall it doesn't seem too bad. - NRK

[dev] Announcing a couple small X11 utilities

2023-07-04 Thread NRK
imal color pickers were that due to no magnification, picking out specific pixels was fairly difficult. The usage is simple, you launch the program and pick a color. The result will be output to stdout in tab separated RGB, HSL and HEX format. Repo: https://codeberg.org/NRK/sxcs SLoC: ~628 Dependen

Re: [dev] [license] gpl issues

2023-06-18 Thread NRK
se there's nothing in the MIT license that requires tracking which part is new nor is there anything preventing derivative work under a different license. So my understanding is more or less the same as what Markus Wichmann said on the other reply. - NRK

Re: [dev] [dwm] swallow without patching dwm -- or losing focus

2023-05-25 Thread NRK
spawn functions before going any further. - NRK

Re: [dev] organizing programs

2023-05-14 Thread NRK
ps into the namespace reserved by . You can rename it to `str_trim` to avoid it. And that's mostly it from a quick glance. Slightly relevant: http://www.catb.org/~esr/writings/unix-koans/ten-thousand.html - NRK

Re: [dev] organizing programs

2023-05-13 Thread NRK
action than productivity (for me at least). [0]: https://taskwarrior.org/ - NRK

Re: [dev] Simpler WiFi alternatives

2023-05-12 Thread NRK
t this thread has been a massive cesspool. But passive-aggressive replies like this does not help the situation - it only contributes more to the cesspool. - NRK

Re: [dev] [license] gpl issues

2023-05-08 Thread NRK
x27;t follow/adopt it and thus the protocol will be useless. So the reality of the situation is that Valve is still "maneuvering" and trying to get what they want into the upstream wayland-protocol so that it gains adoption. The MIT license made zero difference. - NRK

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

2023-04-08 Thread NRK
the commit right before it (89f9905 grabkeys: Avoid missing events when a keysym maps to multiple keycodes) seems like something that might actually mess with keybinds. (Try changing your dmenu_extended keybind to something else and see if that works or not). - NRK

Re: [dev] dwm 6.4 compilation error on FreeBsd

2023-02-15 Thread NRK
CE -D_XOPEN_SOURCE=700L -DVERSION=\"${VERSION}\" ${XINERAMAFLAGS} - NRK

Re: [dev] [st] Font problem

2023-02-10 Thread NRK
act font configuration is st using? What's your system font-config setting? Etc. - NRK

Re: [dev] [dwm] view() and toggleview() functions

2023-01-16 Thread NRK
On Mon, Jan 16, 2023 at 08:21:57PM +0900, A Farzat wrote: > Btw, on the email subject it says [SPAM Warning!]. Is it anything I need > to be concerned with? No, you're good. It was just a false positive on my end and I forgot to remove that before replying. - NRK

Re: [SPAM Warning!][dev] [dwm] view() and toggleview() functions

2023-01-15 Thread NRK
From what I see, all the tag > functionality can be achieved using only one tagset. It's for going back to the previous layout via `MODKEY+TAB`. - NRK

Re: [dev] [st] compilation warnings/errors

2022-11-12 Thread NRK
a specific patch, then just push the fix directly: https://suckless.org/wiki/ [0]: https://flameeyes.blog/2009/02/25/future-proof-your-code-dont-use-werror/ - NRK

Re: [dev] [libsl][bug] Call FcFini on cleanup for projects calling FcIni

2022-10-30 Thread NRK
n't seem to say anywhere (aside from that line in FcFini docs) weather initialization is required or not. [0]: https://www.freedesktop.org/software/fontconfig/fontconfig-devel/fcfini.html [1]: https://git.suckless.org/st/file/x.c.html#l1144 - NRK

Re: [dev] [libsl][bug] Call FcFini on cleanup for projects calling FcIni

2022-10-30 Thread NRK
h call in dmenu/dwm. Running dmenu master branch under leak-sanitizer doesn't show any leaks related to fontconfig (v2.13.1) either. How exactly did you detect this leak? And are you sure this is a problem on libsl/dmenu/dwm side and not the library itself leaking things? - NRK

Re: [dev] dwm 6.4 bug

2022-10-26 Thread NRK
are treated as programmers. [0]: https://lists.suckless.org/hackers/2208/18484.html - NRK

Re: [dev] Some misc tools that could help others

2022-09-21 Thread NRK
stead of using some pre-made generator :) [0]: https://programming.guide/robin-hood-hashing.html [1]: https://en.wikipedia.org/wiki/Locality_of_reference [2]: https://en.wikipedia.org/wiki/Primary_clustering [3]: https://nullprogram.com/blog/2022/08/08/ [4]: https://github.com/jarun/nnn/blob/de3ad1b14618392753051959b2e7ac52f70252a1/src/icons-hash.c#L124-L125 - NRK

Re: [dev] [st] libXft-2.3.5 fixed the color emoji crash

2022-09-15 Thread NRK
m distro package manager (which may be outdated depending on the distro policy). - NRK

Re: [dev] [libgrapheme] Some questions about libgrapheme

2022-09-02 Thread NRK
ret += n; s += n; } return 0; /* unreachable (?) */ } If I was expecting a decent amount of non-ascii input, I would use the bitvector approach described by Thomas Oltmann. 1bit per byte overhead should be fine for most use-cases. - NRK

Re: [dev] [tabbed] utf8 characters not displayed in tabs

2022-08-31 Thread NRK
t", Wasn't exactly what I was looking for but even this *could be* an improvement over the current system if it can be done in reasonable space, speed and code-size. - NRK

Re: [dev] [tabbed] utf8 characters not displayed in tabs

2022-08-30 Thread NRK
said, I'm not sure if it's even possible/feasible with Xft/FontConfig as I'm not very familiar with those libraries. If someone knows the answer, then feel free to speak up. If it is possible and someone can point out which routines I should be looking at then I can try to take a crack at it. In case that's not possible, then there's probably not a whole lot that can be done about the situation. - NRK

Re: [dev] [tabbed] utf8 characters not displayed in tabs

2022-08-30 Thread NRK
On Tue, Aug 30, 2022 at 04:50:14PM +0200, Hiltjo Posthuma wrote: > Then write a patch to improve it instead of whining about it. The topic was font fallback; I adviced not to replicate drw, explained my reasoning why, and then adviced to look into ST instead. I don't see any whining. - NRK

Re: [dev] [tabbed] utf8 characters not displayed in tabs

2022-08-30 Thread NRK
so that might be worth taking a look into instead. [0]: https://git.suckless.org/libsl/file/drw.c.html#l251 - NRK

Re: [dev] [st] incorrect italic, bold, bold italic versions

2022-08-05 Thread NRK
oritize `font0` and then fallback to `font1 -> font2 -> ..` etc before attempting it's own heuristics. [0]: https://st.suckless.org/patches/font2/ - NRK

Re: [dev] suckless indentation with vim

2022-07-06 Thread NRK
he vim ecosystem, then neatvi and kakoune; or any other "newly written" vi clone will suffer from the same problem. neatvi: https://github.com/aligrudi/neatvi kakoune: https://github.com/mawww/kakoune - NRK

Re: [dev] suckless indentation with vim

2022-07-05 Thread NRK
en suckless indentation aside, it's useful when you deal with multiple codebases which use different styles. - NRK

Re: [dev] suckless indentation with vim

2022-07-02 Thread NRK
hing I need, except using spaces for alignment. I see no reason why that needs to be manual when everything else vim can do automatially. - NRK

Re: [dev] [dwm] Multihead Issues Autostart

2022-05-01 Thread NRK
;re using startx directly, then look into `xinitrc` (man 1 xinit has some examples). And if you're using some login/display manager then look into it's documentation instead. - NRK

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

2022-04-28 Thread NRK
mode; the current theme uses a #000 black for it's background. Which looks great my phone with AMOLED display, but not so great on my desktop with an LCD panel where something like #171717 looks much better. I'm not asking to change it though, since that'll just swap the problem. Just putting the info out there as feedback. - NRK

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

2022-04-28 Thread NRK
rojects then? Also since the logos are just svgs, I *think* it should be possible to override the color of the "fill" dynmaically via css (?) If so, then I think that's probably a better course of action :) - NRK

Re: [dev] Bye

2022-04-23 Thread NRK
On Sat, Apr 23, 2022 at 12:06:16PM +0200, Olivier Regnier wrote: > > NOOOoo, don't leave! :( - NRK

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

2022-04-20 Thread NRK
[0]. The thread suggests that the patch isn't perfect, but it's certainly better than crashing the application as it does right now. [0]: https://gitlab.freedesktop.org/xorg/lib/libxft/-/merge_requests/1 - NRK

Re: [dev] Some direction with my project

2022-04-15 Thread NRK
file in there. And related to that, given it's a single source file and none of the functions are being called externally, you should declare (as well as define) all the functions as `static`. - NRK

Re: [dev] dwm oddity

2022-04-04 Thread NRK
e annoying. But on monocle layout, I don't think it should be possible for the mouse cursor to change focus. So your problem is probably related to some patch you're using. Try using vanilla dwm without any patches and see if you still run into the issue. [0]: https://dwm.suckless.org/patches/focusonclick/ - NRK

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

2022-02-16 Thread NRK
special case dmenucmd and would allow other scripts/programs spawned via dwm to utilize this env var as well. On Wed, Feb 16, 2022 at 05:39:14PM +0100, Hiltjo Posthuma wrote: > Whats the issue Wouldn't consider it an "issue", but rather a place for potential improvement. - NRK

Re: [dev] sfeed: RSS/Atom parser and reader

2022-02-14 Thread NRK
s://tools.suckless.org/dmenu/patches/separator - NRK

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

2022-02-12 Thread NRK
uot; editor. The dependancy on tree-sitter is specficially what made me uninstall neovim and switch over to vanilla vim. - NRK

Re: [dev] requirements of build systems

2022-02-01 Thread NRK
that it does occur in practice. That's good to know, I wasn't thinking about NFS at all. Also just to be clear, my question wasn't rhetorical. Since I've never experienced issue with make, I was genuinely curious if this issue occurs in practice or not. - NRK

Re: [dev] requirements of build systems

2022-02-01 Thread NRK
not to waste resource solving theoretical problems. - NRK

Re: [dev] conference video mirror

2022-01-16 Thread NRK
ine now (without needing to use any VPN or anything). On Sun, Jan 16, 2022 at 10:05:55AM -0500, Jeffrey Picard wrote: > I’d love to help get all of these videos migrated if you’re interested in > that. That'd be nice, extra mirrors can't hurt. Feel free to email me the links if/when you get around doing so. - NRK

Re: [dev] Special target ".POSIX" in Makefiles

2022-01-01 Thread NRK
RM) in it's README. Might be a good idea to use a different name to avoid potential confusion. Something like `makecheck` should be fine, I cannot find any other project with that name. [0]: https://github.com/christianhujer/makelint - NRK

Re: [dev] Special target ".POSIX" in Makefiles

2021-12-30 Thread NRK
On Fri, Dec 31, 2021 at 12:49:46PM +0600, NRK wrote: > What would be a posix replacement for `?=` ? I assume something like: > > VAR = $$(if test -n "$$VAR"; then printf "%s" "$$VAR"; else printf > "fallback"; fi) > Now that I t

Re: [dev] Special target ".POSIX" in Makefiles

2021-12-30 Thread NRK
was under the impression that `?=` was accepted into POSIX. But I cannot find any mention of it in the posix manpage (man 1p make) so I guess I was wrong. What would be a posix replacement for `?=` ? I assume something like: VAR = $$(if test -n "$$VAR"; then printf "%s" "$$VAR"; else printf "fallback"; fi) - NRK

Re: [dev] [dwm] default window attaching behaviour

2021-11-30 Thread NRK
g > my layout. Hi, You should consider using a "scratchpad" for this purpose. There's a couple scratchpad patches it in the wiki. I personally didn't like them though, I don't remember why exactly but it had something to do with messing up my tag-based workflow. - NRK

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

2021-11-11 Thread NRK
t;input latency" or "end-to-end latency", which is the delay between a physical input (in this case key-press on the keyboard) and it's output (in this case the key-press being rendered). - NRK

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

2021-11-10 Thread NRK
certain software, then it's going be the one I will end up using. Also just to clarify, I wouldn't say ST has "latency issues", that implies the situation is _bad_. As I've said, it's the 2nd most responsive terminal I've tried and _MILES_ better than these "gpu accelerated" terminals. It's also the only other terminal that I still have installed in my system. - NRK

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

2021-10-27 Thread NRK
thus overtime I have switched over to it. It would be interesting to see someone doing a proper benchmark with all latest terminal versions, since I don't have any data to back up what I am saying :) So take it as you may. - NRK

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

2021-10-26 Thread NRK
t be related to terminfo (5). I won't be delving any deeper into this as I've moved over to XTerm long ago due to input latency reasons. You might want to check FAQ provided in the ST repo. P.S echo is non-portable. Use printf. https://wiki.bash-hackers.org/commands/builtin/echo#portability_considerations - NRK

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

2021-10-25 Thread NRK
ar html page . This will > make css extremely minimal and page loading faster. Wouldn't it make more sense to just inline the css into the html instead? I think Dylan was doing that for K1SS. https://archive.md/dFqxv - NRK

Re: [dev] Wayland compositors

2021-09-14 Thread NRK
ayland work for these users calling them "anti-vaxxers and flat-earters" is the way to go :) https://drewdevault.com/2021/02/02/Anti-Wayland-horseshit.html - NRK