Commit graph

3236 commits

Author SHA1 Message Date
Fini Jastrow 33db50390a doc: Add more example for install.sh in readme.md
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2026-09-05 18:32:32 +02:00
allcontributors[bot] adf98be00e
docs: add laur89 as a contributor for bug (#2076)
Some checks failed
Update contributors / Update gh-pages contributors (push) Has been cancelled
* docs: update CONTRIBUTORS.md

* docs: update .all-contributorsrc

---------

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2026-09-04 19:38:45 +02:00
Fini Jastrow c34dbc5ef9 install.sh: Fix doc and bugs
Fixes: #2075

reported-by: laur <laur.aliste@gmail.com>
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2026-09-04 19:33:46 +02:00
allcontributors[bot] 783197b868
docs: add return42 as a contributor for code (#2074)
Some checks are pending
Update contributors / Update gh-pages contributors (push) Waiting to run
* docs: update CONTRIBUTORS.md

* docs: update .all-contributorsrc

---------

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2026-09-04 01:42:39 +02:00
Fini Jastrow 480c4ec469 doc: Correct readme that Homebrew also works on Linux
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2026-09-04 01:40:22 +02:00
Fini f21ddcf3c0
Merge pull request #1913 from return42/bs-install
install.sh: release artifact installer for the nerd-fonts
2026-09-04 01:34:40 +02:00
Fini Jastrow 7e8b9e3297 Undo .gitignore expansion
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2026-09-04 01:28:33 +02:00
Fini Jastrow 2f740ec0c2 Replace install.sh with new fc_install
Also drop install.ps1 because it needs a full clone and still can not
install the new fonts. There are better Powershell alternatives.

Fixes: #1902

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2026-09-04 01:25:33 +02:00
Fini Jastrow a09566d7f0 fc_install: Remove bashisms
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2026-09-04 00:52:28 +02:00
Fini Jastrow ed952eb41c fc_install: Replace stat with portable wc
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2026-09-04 00:22:13 +02:00
Fini Jastrow 74e2121584 fc_install: Make inherit_errexit optional
Bash v3 does not have this option and no equivalent

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2026-09-04 00:22:13 +02:00
Fini Jastrow 939486b7bf fc_install: Replace echo -e with portable printf
for Mac for example

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2026-09-03 23:54:28 +02:00
Fini Jastrow e2181b5aab fc_install: Run shfmt -i 4 -w
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2026-09-03 23:14:32 +02:00
Fini Jastrow fb8391314d fc_install: Suppress some specific shellcheck warnings
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2026-09-03 23:05:24 +02:00
Fini Jastrow a48c26daac fc_install: Remove bash array usage
To enable bash 3 use

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2026-09-03 22:49:31 +02:00
Fini Jastrow 37cf5364af fc_install: Output "info" with green
to better distinguish from debug

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2026-09-03 22:49:31 +02:00
Fini Jastrow 5663778d3b fc_install: Use regex for font file type selection
Avoid bash 4 arrays

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2026-09-03 22:49:31 +02:00
Fini Jastrow 21e589a40c fc_install: Cache asset ID list
This helps if multiple fonts are installed at once, i.e. 'all'

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2026-09-03 21:32:33 +02:00
Fini Jastrow 42d7ace109 fc_install: Prefer [...] over [[...]]
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2026-09-03 21:08:09 +02:00
Fini Jastrow 428d713e24 fc_install: Asset list without \0
When we want to cache the information we can not use strings with
embedded zero characters.

Instead we use vertical bar as separator and know that neither the name
nor the asset number can contain blanks.

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2026-09-03 21:06:23 +02:00
Fini Jastrow e0bd379b8d fc_install: Fix color determination code
The code is not a function, but apprease amoung functions making it a
bit out of place. So we move it down to the actual start after all
function definitions.

Additionally the 'are we connected to a pipe?' code is not working. Use
`test -t` instead of `test -p`.

Additionally check against stderr, not stdout, because all color ends on
stderr. See [1].

Additionally check for dump terminal and the usual NO_COLOR (also see [1]).

[1] https://clig.dev

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2026-09-03 20:46:32 +02:00
Fini Jastrow bb6ae89ac2 fc_install: Expose script and bash versions (for debugging user screenshots)
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2026-09-03 20:14:06 +02:00
Fini Jastrow acd0b490af fc_install: Enable shellcheck SC2250
This is very subjective, but I like this a lot more.

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2026-09-03 20:05:48 +02:00
Fini Jastrow b0137be3b7 fc_install: Fix shellcheck warnings
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2026-09-03 19:29:16 +02:00
Fini Jastrow 2abb0b7ab1 fc_install: Switch to .tar.xz archives
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2026-09-03 15:06:36 +02:00
Fini Jastrow b5ea9ed785 fc_install: Fix nullbyte warning
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2026-09-03 15:06:36 +02:00
Fini Jastrow da6d7d80f2 fc_install: Install by asset ID
This allows for example unreleased downloads etc

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2026-09-03 15:06:36 +02:00
Fini Jastrow 40c6a2b718 fc_install: Update fc-cache also on removal
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2026-09-03 15:06:36 +02:00
Fini Jastrow f9e794dfbf fc_install: More comments
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2026-09-03 15:06:36 +02:00
Fini Jastrow 523a8e1b44 fc-install: Fix: Allow Mac and XDG
wrong indentation

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2026-09-03 15:06:36 +02:00
Fini Jastrow 38868a0092 fc_install: Fix single font install
this has been broken already with the initial PR.

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2026-09-03 15:06:36 +02:00
Fini Jastrow 2fa9b7ffac fc_install: Replace test == with =
The == operator is for [[ ]] only

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2026-09-03 15:06:36 +02:00
Fini Jastrow d9e8120472 fc-install: Correct and add error messages
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2026-09-03 15:06:36 +02:00
Fini Jastrow fe14bb3b21 fc_install: Allow to specify Github token
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2026-09-03 15:06:36 +02:00
Fini Jastrow d2ac674146 fc_install: Fix spurious bad output
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2026-09-03 15:06:36 +02:00
Fini Jastrow 3d80f94838 fc_install: Add dependencies
Already add tar, because we will need it later on.

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2026-09-03 15:06:36 +02:00
Fini Jastrow 2b211fb430 fc_install: Remove FontPatcher.zip from fonts list
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2026-09-03 15:06:36 +02:00
Fini Jastrow ad2359a6c3 fc_install: Make help the default command
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2026-09-03 15:06:36 +02:00
Fini Jastrow a33bad2e4c fc-install: Modify comments
Also clean up $0 output.

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2026-09-03 15:06:36 +02:00
Fini Jastrow 21f732211e fc-install: Allow Mac and XDG
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2026-09-03 15:06:36 +02:00
Fini Jastrow 0933f6d921 fc-install: Drop hard fc-cache dependency
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2026-09-03 15:06:36 +02:00
Markus Heiser aee2a637c9 [mod] fc_install: font config installer for the nerd-fonts 2026-09-03 15:06:36 +02:00
allcontributors[bot] 0faaeb3657
docs: add chrisemke as a contributor for doc (#2070)
Some checks failed
Update contributors / Update gh-pages contributors (push) Has been cancelled
Update gitignore and gh-pages / sync_pages (push) Has been cancelled
Update gitignore and gh-pages / update_gitignore (push) Has been cancelled
* docs: update CONTRIBUTORS.md

* docs: update .all-contributorsrc

---------

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2026-09-01 23:57:24 +02:00
Fini Jastrow 64a084f954 OpenDyslexic: Correct upstream and version info
Related: #2067

Reported-by: Krisque <chrisemke@protonmail.com>
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2026-09-01 23:54:46 +02:00
Finii 73e5da3b33 [ci] Update FontPatcher.zip
Some checks failed
PackSVGs / create-symbols-font (push) Failing after 0s
Update contributors / Update gh-pages contributors (push) Has been cancelled
Docker release / Publish image (push) Has been cancelled
Update gitignore and gh-pages / sync_pages (push) Has been cancelled
Update gitignore and gh-pages / update_gitignore (push) Has been cancelled
Create FontPatcher.zip / build (push) Has been cancelled
2026-08-22 10:22:15 +00:00
Fini Jastrow 50d375afcd font-patcher: Fix progressbars
[why]
There were again multiple lines for some glyph sets, where the patching
happens in chunks. I thought I fixed that (having only one line/bar per
glyph set) but obviously that is broken.

[how]
Move the output of the line break - that happens on the start of a new
set - to the correct position.

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2026-08-22 12:15:21 +02:00
Fini Jastrow b894ea7803 [ci] Update FontPatcher.zip (replay failed ci)
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2026-08-21 16:14:43 +02:00
Fini Jastrow a942782739 [ci] Regenerate CSS files (replay failed ci)
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2026-08-21 15:58:33 +02:00
Fini Jastrow 895c19593a [ci] Regenerate fontconfig (replay failed ci)
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2026-08-21 15:56:02 +02:00
Fini Jastrow 7cb8608f99 Remove empty patched-fonts directories
We flattened the {un,}patched-fonts directory structure.

But purging the destination directory with the new gotta-patch-em
option did not clean all up, so do it manually now.

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2026-08-21 15:49:33 +02:00