aboutsummaryrefslogtreecommitdiffstats
path: root/etc
AgeCommit message (Collapse)Author
2024-02-17document Xresources application namespace explicitly (#488)fxdn
A decent amount of users have been confused by this. So make it more explicit to avoid confusion. Co-authored-by: NRK <nrk@disroot.org> Reviewed-on: https://codeberg.org/nsxiv/nsxiv/pulls/488 Reviewed-by: NRK <nrk@disroot.org> Co-authored-by: fxdn <fxdn@noreply.codeberg.org> Co-committed-by: fxdn <fxdn@noreply.codeberg.org>
2024-02-09ci: adjust clang-tidy checksNRK
disable misc-include-cleaner, it nags about "directly" including things like "stdbool.h" instead of relying on "nsxiv.h" for it. also disable bugprone-switch-missing-default-case which nags about missing `default` switch cases.
2023-10-02ci: various fixes (#478)NRK
- "branches" option got removed, change to "when -> branches" - "pipeline" option got removed, change to "steps" - install codespell in a virtual-env since alpine complains otherwise
2023-10-01Release version 32v32NRK
2023-10-01remove legacy multi-frame loadersNRK
this removes the legacy gif and webp loaders. moving forward multi-frame/animated images will be loaded by imlib2 itself. Closes: https://codeberg.org/nsxiv/nsxiv/issues/397
2023-08-31various README nits (#470)NRK
don't capitalize "berg" in "Codeberg" spelling. Codeberg's official sites does not seem to do so. switch from "GPLv2" to "GPL-2.0-or-later" according to the spdx short identifier: https://spdx.org/licenses/GPL-2.0-or-later.html explicitly mention that Imlib2 needs to be built with X11 support. Reviewed-on: https://codeberg.org/nsxiv/nsxiv/pulls/470 Reviewed-by: explosion-mental <explosion-mental@noreply.codeberg.org>
2023-08-22fix: brightness keybindings on manpage (#467)padv
Reviewed-on: https://codeberg.org/nsxiv/nsxiv/pulls/467 Reviewed-by: NRK <nrk@disroot.org> Reviewed-by: explosion-mental <explosion-mental@noreply.codeberg.org> Co-authored-by: padv <pascal.devuyst@gmail.com> Co-committed-by: padv <pascal.devuyst@gmail.com>
2023-06-15CI: misc cleanups + faster analysis (#449)NRK
* switch to git ls-files to avoid picking up any other local .c files * enable assertions during static analysis since we used some assertions to disable/silence certain warnings. * update TCC commit hash to a more recent one * parallelize static analysis cppcheck already has -j argument to parallelize it's analysis and provide results faster, clang-tidy unfortunately doesn't. so use xargs -P to archive parallel execution. on my system this brings down the analysis time from ~27s to ~5s.
2023-05-28update documentation (#448)NRK
the fedora copr repo is no longer being updated since the maintainer of it, mamg22, no longer uses nsxiv in his daily setup (and thus stopped contributing to nsxiv as well). he has requested the repo and his email to be removed from the project. so go ahead and honor that request. also take this as an opportunity to remove some long inactive maintainers from the CURRENT MAINTAINERS section of the manpage. Reviewed-on: https://codeberg.org/nsxiv/nsxiv/pulls/448 Reviewed-by: explosion-mental <explosion-mental@noreply.codeberg.org>
2023-05-13[ci]: silence false positive warningNRK
clang-tidy currently flags the following: util.c:57:8: error: 'ptr' may be set to null if 'realloc' fails, which may result in a leak of the original buffer [bugprone-suspicious-realloc-usage,-warnings-as-errors] ptr = realloc(ptr, size); the analysis here is correct, but if realloc fails, we simply exit so there's no real "leak". moreover this check is not very useful for nsxiv's codebase because we do not use naked realloc(), instead we use the erealloc wrapper that exits on failure. so just disable the warning entirely instead of changing the source code to silence the false positive.
2023-04-14add a pick quit keybind (#432)eylles
The last time[0] this was discussed, no-one was against it but no-one was confident in it either and so it was added to nsxiv-extra as a patch. But now that enough time has passed, it seems like there's a pretty high demand for something like this because there's plenty of use-cases that use nsxiv as a "picker" where it's meant to quickly pick a single file. And so add this as a convenient default key-bind. [0]: https://codeberg.org/nsxiv/nsxiv-record/pulls/42 Co-authored-by: eylles <ed.ylles1997@gmail.com> Co-authored-by: NRK <nrk@disroot.org> Reviewed-on: https://codeberg.org/nsxiv/nsxiv/pulls/432 Reviewed-by: NRK <nrk@disroot.org> Co-authored-by: eylles <eylles@noreply.codeberg.org> Co-committed-by: eylles <eylles@noreply.codeberg.org>
2023-03-17fix a typpo in CHANGELOG.mdNRK
2023-03-17document handling of empty X resources valuesNRK
since 5cab2fb we reject empty X resources value to support use-cases like this: https://codeberg.org/nsxiv/nsxiv/issues/339 this issue was also bought up by GRFreire in: https://codeberg.org/nsxiv/nsxiv-record/pulls/115#issuecomment-474831 this suggests that this is a use-case that a decent amount of users might be interested in. so document the behavior so it's more easily visible.
2023-03-11etc changes related to code-style docsNRK
* Add a "Code Style" section in CONTRIBUTING * Move .clang-format to etc/ * Add a short comment on clang-format and editorconfig file
2023-01-28Release version 31v31NRK
Co-authored-by: Berke Kocaoğlu <kberke@metu.edu.tr>
2023-01-28manpage: update MAINTAINERS sectionNRK
removes a couple maintainers who have never been active in the development. there are a couple other maintainers have not been active in a while, but was somewhat active in the past. so keep their names in it (for now at least). also re-arrange the entires a bit based on activity.
2023-01-28manpage: remove special casing CONTRIBUTORSNRK
this section was added almost 10 years ago (see commit 60f84190f) back when sxiv was pretty new and didn't have many contributors. the situation has obviously changed now, especially with `nsxiv` we have a fair amount of contributors now. so it makes no sense to special case a couple of them.
2023-01-28add cli flag --alpha-layerNRK
now that we have long-opts, we don't have to worry about exhausting the alphabet list for short-opts. so adding a cli flag to set/unset the checker background makes sense. ref: https://codeberg.org/nsxiv/nsxiv/issues/404
2023-01-12[ci]: fix things (#400)NRK
for the spellcheck issue, the solution was to just bypass the system package manager and use pip. and the macos workaround is taken from here: https://github.com/actions/setup-python/issues/577 Reviewed-on: https://codeberg.org/nsxiv/nsxiv/pulls/400 Reviewed-by: explosion-mental <explosion-mental@noreply.codeberg.org>
2023-01-08add support for multi-frame images via imlib2 (#373)NRK
this will be a massive change compared to the usual stuff. however the gains will be worth it: * we gain lots of additional animated image support. * and we'll gain _even_ more format support as imlib2 adds them, without needing any change in our code-base. * about ~300 LoC will be purged once we remove our internal gif and webp loader. as for when to remove the internal loaders, a good time might be when debian upgrades their imlib2, currently it seems to be at v1.7.5, which doesn't support animated images. as of now, nsxiv will continue to build with the internal gif/webp loaders (assuming they were enabled in config.mk) if imlib2 version is below 1.8.0 and will print out a deprecation notice. and if imlib2 version supports multi-frame then it will simply ignore the internal loaders and use the imlib2 one. in other words, users shouldn't need to do anything on their side. everything that previously functioned will continue to function regardless of the user's imlib2 version (though they might see the annoying deprecation notice if the imlib2 version doesn't support multi-frame images). known issue: * image loading performance can be noticeably worse in imlib2 versions below 1.9.0 Closes: https://codeberg.org/nsxiv/nsxiv/issues/301 Closes: https://codeberg.org/nsxiv/nsxiv/issues/300 Reviewed-on: https://codeberg.org/nsxiv/nsxiv/pulls/373 Reviewed-by: TAAPArthur <taaparthur@noreply.codeberg.org>
2022-12-22add brightness and contrast (#396)Berke Kocaoğlu
* Imlib2 supports modifying gamma, brightness and contrast directly while sxiv only supports gamma. Makes sense to extend it to brightness and contrast as well. * Since color corrections need to be aware of each other, they have been refactored into one centralized function. * This also makes the code more hackable as it makes it easier to add more color correction functions without them interfering with each other. Co-authored-by: 0ion9 <finticemo@gmail.com> Co-authored-by: NRK <nrk@disroot.org> Reviewed-on: https://codeberg.org/nsxiv/nsxiv/pulls/396 Reviewed-by: NRK <nrk@disroot.org> Reviewed-by: TAAPArthur <taaparthur@noreply.codeberg.org> Co-authored-by: Berke Kocaoğlu <kberke@metu.edu.tr> Co-committed-by: Berke Kocaoğlu <kberke@metu.edu.tr>
2022-12-02[ci]: make it easy to run analysis locally (#395)NRK
allows for developers to more easily run the analysis locally before opening a pull request if they wish. also disables a noisy warning (bugprone-assignment-in-if-condition) producing too many false positives. Reviewed-on: https://codeberg.org/nsxiv/nsxiv/pulls/395 Reviewed-by: Berke Kocaoğlu <kberke@metu.edu.tr> Co-authored-by: NRK <nrk@disroot.org> Co-committed-by: NRK <nrk@disroot.org>
2022-10-07[ci]: try building all combination with tcc (#338)NRK
this will hopefully catch issues like [337] in the future. not using gcc and/or clang since we have 5 build options right now, which means 2^5 = 32 different combination. using gcc/clang would take too much resources and time; meanwhile tcc is lightning fast. [337]: https://codeberg.org/nsxiv/nsxiv/pulls/337 Reviewed-on: https://codeberg.org/nsxiv/nsxiv/pulls/338 Reviewed-by: eylles <eylles@noreply.codeberg.org>
2022-09-10allow disabling anti-aliasing via cli flagNRK
simply running nsxiv with `--anti-alias` will enable anti-aliasing, and running it with `--anti-alias=no` will disable it. the cli flag will overwrite the config.h default. Closes: https://codeberg.org/nsxiv/nsxiv/issues/349
2022-09-05[ci]: disable noisy checks (#365)NRK
* disable `cert-err33-c` and `readability-identifier-length` check which causes warnings on clang-tidy v14. * disable all "readability" checks by default, instead just opt-into the useful ones (such as duplicate include). Reviewed-on: https://codeberg.org/nsxiv/nsxiv/pulls/365 Reviewed-by: Berke Kocaoğlu <berke.kocaoglu@metu.edu.tr>
2022-08-19Misc docs cleanup (#362)NRK
* link to online man-page * rename: "N-R-K" -> "NRK" * separate multiple links with a comma. otherwise the links get messed up due to `[] []` being valid syntax for reference style links with the 2nd `[]` serving as `id`. * prefer codeberg links over github ones Reviewed-on: https://codeberg.org/nsxiv/nsxiv/pulls/362 Reviewed-by: explosion-mental <explosion-mental@noreply.codeberg.org>
2022-08-16add support for long-opts (#332)NRK
Uses [optparse] to add support for long-opts. optparse is posix compliant with getopt(3) and thus would be backwards compatible. It does not have any dependency (not even the c standard library!) and is C89 compatible and thus fits our current code-style. [optparse]: https://github.com/skeeto/optparse Note that we're using a couple `pragma`-s to silence some harmless warnings. This should be portable because these pragma-s don't change the behavior of the program. Furthermore, C standard mandates that unknown pragma's should be ignored by the compiler and thus would not result in build failure on compilers which do not recognize them. Closes: https://codeberg.org/nsxiv/nsxiv/issues/328 Reviewed-on: https://codeberg.org/nsxiv/nsxiv/pulls/332 Reviewed-by: eylles <eylles@noreply.codeberg.org>
2022-08-09Move uncritical files into `etc/` (#350)NRK
This is mainly just to reduce the amount of files in the project root. The criteria of what gets into `etc/` are the following: * The file should not be necessary for building nsxiv. This excludes the `icon/*` stuff since that's needed by `window.c`. * The file shouldn't have any valid reason to stay in the project root. This excludes things like `README.md`, `.gitignore` etc. Reviewed-on: https://codeberg.org/nsxiv/nsxiv/pulls/350 Reviewed-by: explosion-mental <explosion-mental@noreply.codeberg.org>