From 730e6db1007419c48d225e41bf3c39805b6cac51 Mon Sep 17 00:00:00 2001 From: javalsai Date: Thu, 5 Sep 2024 17:23:18 +0200 Subject: [PATCH] fix: grammar (codespell) --- .SRCINFO | 11 ----------- .codespellrc | 2 ++ PKGBUILD | 14 -------------- README.md | 10 +++++----- assets/man/lidm-config.5 | 2 +- assets/pkg/aur/lidm-bin/PKGBUILD | 2 +- assets/pkg/aur/lidm-git/PKGBUILD | 2 +- assets/pkg/aur/lidm/PKGBUILD | 2 +- assets/services/README.md | 2 +- src/ui.c | 2 +- 10 files changed, 13 insertions(+), 36 deletions(-) delete mode 100644 .SRCINFO create mode 100644 .codespellrc delete mode 100644 PKGBUILD diff --git a/.SRCINFO b/.SRCINFO deleted file mode 100644 index 1905f22..0000000 --- a/.SRCINFO +++ /dev/null @@ -1,11 +0,0 @@ -pkgbase = lidm - pkgdesc = A ✨fully✨ colorful cutomizable TUI display manager made in C for simplicity. - pkgver = 0.0.0 - pkgrel = 1 - url = https://github.com/javalsai/lidm - arch = any - license = GPL - source = lidm::https://github.com/javalsai/lidm/releases/download/0.0.0/lidm - sha256sums = 2771ca603fb02520cb1ea2dac10400fd4f512d7a8883a7ecffefe6595a93dcf5 - -pkgname = lidm diff --git a/.codespellrc b/.codespellrc new file mode 100644 index 0000000..a8f0594 --- /dev/null +++ b/.codespellrc @@ -0,0 +1,2 @@ +[codespell] +skip = ./assets/pkg/aur/*/src diff --git a/PKGBUILD b/PKGBUILD deleted file mode 100644 index 0ee08c9..0000000 --- a/PKGBUILD +++ /dev/null @@ -1,14 +0,0 @@ -pkgname=lidm -pkgver=0.0.0 -pkgrel=1 -pkgdesc="A ✨fully✨ colorful cutomizable TUI display manager made in C for simplicity." -arch=('any') -url="https://github.com/javalsai/lidm" -license=('GPL') -source=("lidm::https://github.com/javalsai/lidm/releases/download/v$pkgver.zip") -sha256sums=('2771ca603fb02520cb1ea2dac10400fd4f512d7a8883a7ecffefe6595a93dcf5') - -package() { - install -d "$pkgdir/usr/bin/lidm" -} -sha256sums=('5eb72f7d0425e81f9b42f70159ecc44d1b6ca5cfd4fde845d01348964273ab64') diff --git a/README.md b/README.md index fe369be..1f0a514 100644 --- a/README.md +++ b/README.md @@ -72,9 +72,9 @@ On top of pure intuition: # Requirements * A computer with unix based system. -* That system should have the resources neccessary for this program to make sense (Sessions, users...). +* That system should have the resources necessary for this program to make sense (Sessions, users...). * A compiler (optional, you can compile by hand, but I doubt you want to see the code). -* Make (Also optional, but does things atomatically, make sure `gcc` and `mkdir -p` work as expected). +* Make (Also optional, but does things automatically, make sure `gcc` and `mkdir -p` work as expected). * PAM, used for user authentication, just what `login` or `su` use internally. Don't worry, it's surely pre-installed. # Installation @@ -85,7 +85,7 @@ git clone https://github.com/javalsai/lidm.git cd lidm make # 👍 ``` -* Install the files (see [configuration](#configuring) for more themeing info). +* Install the files (see [configuration](#configuring) for more theming info). ```sh # place binary in /usr/bin and copy # default theme to /etc @@ -112,7 +112,7 @@ make install-service-dinit # dinit # Configuring Copy any `.ini` file from [`themes/`](./themes/) (`default.ini` will always be updated) to `/etc/lidm.ini` and/or configure it to your liking. Also, don't place empty lines (for now). -Configurated colors are just gonna be put inside `\x1b[...m`, ofc you can add an 'm' to break this and this can f\*ck up really bad or even make some nice UI effect possible, you should also be able to embed the `\x1b` byte in the config as I won't parse escape codes, I think that the parser is just gonna grab anything in the config file from the space after the `=` (yes, I'ma enforce that space, get good taste if you don't like it) until the newline, you can put any abomination in there. But please, keep in mind this might break easily. +Configured colors are just gonna be put inside `\x1b[...m`, ofc you can add an 'm' to break this and this can f\*ck up really bad or even make some nice UI effect possible, you should also be able to embed the `\x1b` byte in the config as I won't parse escape codes, I think that the parser is just gonna grab anything in the config file from the space after the `=` (yes, I'ma enforce that space, get good taste if you don't like it) until the newline, you can put any abomination in there. But please, keep in mind this might break easily. The default fg style should disable decorators set up in other elements (cursive, underline... it's just adding 20 to the number btw, so if cursive is 4 (iirc), disabling it is 24). @@ -133,7 +133,7 @@ The name is just ly but changing "y" with "i", that had a reason but forgot it, [![GitHub Contributors](https://contrib.rocks/image?repo=javalsai/lidm&max=20)](https://github.com/javalsai/lidm/graphs/contributors) * KillerTofus, [made the AUR package](https://github.com/javalsai/lidm/pull/2)! Saved me from reading the Arch Wiki 💀. -* DeaDvey, the most awesomest of all, did some pretty HARDCORE gramer cheking. (and trolling, he wrote that, 33 commits of just readme changes ffs) +* DeaDvey, the most awesomest of all, did some pretty HARDCORE gramer checking. (and trolling, he wrote that, 33 commits of just readme changes ffs) * grialion, made a simple C implementation of `chvt` instead of insecurely relying on `kbd utils`'s command. * cerealexperiments_, found a missing newline (had the guts to read the source code, crazy ik) * ChatGPT, in times of slow laptops where pages take ages to load, a single tab connected to a bunch of burning cloud GPUs feeding corporate hype is all you need to get quick answers for your questions, as long as you know how to filter AI crap ofc. diff --git a/assets/man/lidm-config.5 b/assets/man/lidm-config.5 index bafcb21..91c001b 100644 --- a/assets/man/lidm-config.5 +++ b/assets/man/lidm-config.5 @@ -13,7 +13,7 @@ lidm-config \- Configuration file syntax for lidm .SH DESCRIPTION The \fI/etc/lidm.ini\fP file specifies all the configuration for lidm, including theme colors. -The config parser is very primitive still, so the file only consists of \fBkey/value\fP pairs separated by \fB' = '\fP (yes, the surrounding spaces are neccessary). It will also not warn if the config is invalid. +The config parser is very primitive still, so the file only consists of \fBkey/value\fP pairs separated by \fB' = '\fP (yes, the surrounding spaces are necessary). It will also not warn if the config is invalid. You can't escape characters with \fB'\\'\fP, but the program reads until the end of line, so you can put any raw bytes there. diff --git a/assets/pkg/aur/lidm-bin/PKGBUILD b/assets/pkg/aur/lidm-bin/PKGBUILD index 24eac60..ee5edb7 100644 --- a/assets/pkg/aur/lidm-bin/PKGBUILD +++ b/assets/pkg/aur/lidm-bin/PKGBUILD @@ -3,7 +3,7 @@ pkgname=lidm-bin pkgver=0.0.2 pkgrel=1 depends=('pam') -pkgdesc="A fully colorful cutomizable TUI display manager made in C. (release binary)" +pkgdesc="A fully colorful customizable TUI display manager made in C. (release binary)" arch=('x86_64') url="https://github.com/javalsai/lidm" license=('GPL') diff --git a/assets/pkg/aur/lidm-git/PKGBUILD b/assets/pkg/aur/lidm-git/PKGBUILD index a223888..995df6c 100644 --- a/assets/pkg/aur/lidm-git/PKGBUILD +++ b/assets/pkg/aur/lidm-git/PKGBUILD @@ -4,7 +4,7 @@ pkgver=0.0.1.r50.ge3052ec pkgrel=1 depends=('pam') makedepends=('git' 'make' 'gcc') -pkgdesc="A fully colorful cutomizable TUI display manager made in C. (last git commit)" +pkgdesc="A fully colorful customizable TUI display manager made in C. (last git commit)" arch=('any') url="https://github.com/javalsai/lidm" license=('GPL') diff --git a/assets/pkg/aur/lidm/PKGBUILD b/assets/pkg/aur/lidm/PKGBUILD index 913e8e3..e049248 100644 --- a/assets/pkg/aur/lidm/PKGBUILD +++ b/assets/pkg/aur/lidm/PKGBUILD @@ -4,7 +4,7 @@ pkgver=0.0.2 pkgrel=1 depends=('pam') makedepends=('git' 'make' 'gcc') -pkgdesc="A fully colorful cutomizable TUI display manager made in C. (build latest tag)" +pkgdesc="A fully colorful customizable TUI display manager made in C. (build latest tag)" arch=('any') url="https://github.com/javalsai/lidm" license=('GPL') diff --git a/assets/services/README.md b/assets/services/README.md index b213f5a..6c99739 100644 --- a/assets/services/README.md +++ b/assets/services/README.md @@ -5,7 +5,7 @@ If you don't know what a init system is, you're certainly using `systemd`. There's make scripts to automatically copy the service files to the proper locations, you just have to run `make install-service-$INIT`. `make install-service` will attempt to detect the init system in use and install for it. -The manuall steps for installation are: +The manual steps for installation are: ## Systemd * Copy `systemd.service` to `/etc/systemd/system/lidm.service` diff --git a/src/ui.c b/src/ui.c index 0c03fdb..b72bf3c 100644 --- a/src/ui.c +++ b/src/ui.c @@ -106,7 +106,7 @@ static char *fmt_time() { // cursor pos...) should just overlap for now // ugh, this represent a field which might have options -// opts is the ammount of other options possible (0 will behave as a passwd) +// opts is the amount of other options possible (0 will behave as a passwd) // aaaand (it's an abstract idea, letme think), also holds the status of a // custom content, like custom launch command or user or smth struct opt_field {