Commit Graph

387 Commits

Author SHA1 Message Date
grialion 9ce7cd61e1 fix: search Xorg binary in PATH 2026-01-17 17:11:23 +01:00
grialion b0d0a2e890 fix: use pid_t for compatibility
pid_t is supported on musl, unlike __pid_t
2026-01-17 13:09:37 +01:00
grialion ded6a119b0 fix: clang warnings 2026-01-17 12:43:45 +01:00
grialion d07395c325 fix: handle SIGTERM for graceful graphical shutdown
Sending SIGTERM to X.org is necessary to avoid graphical lock-up.
2026-01-17 12:34:05 +01:00
grialion e615968a17 chore: clang-format 2026-01-17 11:45:33 +01:00
grialion d65ed54578 fix: color reset after returning from session 2026-01-17 11:45:03 +01:00
grialion b2019c7934 feat: wait for X DISPLAY before starting session
Launch X.org with a pipe fd where it will output the DISPLAY number,
once ready.
2026-01-17 11:40:49 +01:00
grialion 2dfd2e5eaf fix(desktop_exec): skip resolving absolute paths
Previously it'd try to find the absolute binary path in the path env.
2026-01-16 22:06:22 +01:00
javalsai 9cfe00c197 fix: pass clang-tidy 2026-01-16 01:03:32 +01:00
javalsai 5749263605 bodge: shut linter 2026-01-16 00:51:05 +01:00
javalsai e5c3c619c3 Merge branch 'master' into support-xorg 2026-01-16 00:44:58 +01:00
Martin Bogdanov 4eca2b056f docs,makefile: put conventional systemd service path (#94)
`/etc/systemd` -> `/usr/local/lib/systemd`
2026-01-15 23:52:46 +01:00
creations a7a1f42f0a feat: add support for fido yubikeys (#89)
* add support for fido keybind

* add to themes

* fix clang format

* Update ui.c

* docs: add misc stuff about the yubikey

---------

Co-authored-by: javalsai <jvssxxi@gmail.com>
2025-12-13 21:37:58 +01:00
dariuskl feeba5c41b feat: don't trunc long hostnames if there is space (#87)
Instead of restricting the length of the hostname field to the size of
the column, the hostname is allowed to utilize all space that is not
taken up by the time string.

Co-authored-by: Darius Kellermann <kellermann@pm.me>
2025-11-16 17:29:59 +01:00
javalsai 64a1368717 feat: xorg sessions work
leaves a few TODOs:
* error handling
* properly passing VT around
* `wait_for_x_ready`
* allow compile-time overriding `DEFAULT_XORG_DISPLAY` and `XORG_COMMAND`
2025-09-03 14:50:39 +02:00
javalsai 570a68c586 fix: satify all clang code requirements 2025-08-27 22:21:21 +02:00
javalsai ff3e58ee5b fix: satify clang nullability requirements 2025-08-27 22:07:04 +02:00
javalsai 109c9bd0be chore: organize code
add -Wextra by default
pipefd to communicate better with parent and forked process
rustify some stuff
add the desktop parser to the file read
2025-08-27 22:02:14 +02:00
javalsai 056ec64bcb feat: better spawn error handling 2025-08-27 20:29:16 +02:00
javalsai b58bd50e64 perf: some compiler flag optimizations
https://stackoverflow.com/questions/6687630/how-to-remove-unused-c-c-symbols-with-gcc-and-ld
2025-08-27 19:54:24 +02:00
javalsai 6d9107b360 lint: stricter casing rules 2025-08-27 19:47:19 +02:00
javalsai b56aa19671 chore: modularize PAM
also helps with sanitizing the code flow when spawning the child, more
code though
2025-08-27 19:31:46 +02:00
javalsai ddc38ef27f fix: stupid logic bug
https://github.com/javalsai/lidm/issues/77#issuecomment-3225642519
2025-08-26 22:33:13 +02:00
grialion b3c8d3cbea feat: exec parser for desktop entries (#78)
Feature-rich Exec= parser implementation for .desktop files
* backslash stripping (e.g '\ ' -> ' ')
* percentage stripping (e.g '%u' -> '', '%%' -> '%')
* quote string handling (e.g 'arg1 "arg 2"' -> "arg1", "arg 2")
The current implementation strips all "percentage codes", instead
of handling them.
Argument count is limited at 100.

---------

Co-authored-by: javalsai <jvssxxi@gmail.com>
2025-08-26 21:19:25 +02:00
javalsai 5761838112 redo of #69 (#75)
* fix(pkg,aur): sources now are version unique

* build: allow to override git-rev and timestamp build info

* chore: organize and parallelize some checks

* chore: make standard PKGBUIDLs

* pkg(aur): `-bin` only has to depend on the `.so` file

* pkg(feat,aur): multiarch `-bin` pkg

* ci(void): update xbps first, add warning

* pkg(aur): bump pkgrels

* pkg(aur): pkgrel again AND `.SRCINFO` finally

---------

Co-authored-by: grialion <48643945+grialion@users.noreply.github.com>
2025-08-23 00:43:33 +02:00
javalsai 363deeab28 docs: update dead links 2025-07-20 22:09:28 +02:00
github-actions[bot] 98b898fc08 Update AUR pkgs to v1.2.3 (#67)
Co-authored-by: GitHub Actions <actions@github.com>
Co-authored-by: javalsai <javalsai@proton.me>
2025-07-20 22:03:51 +02:00
github-actions[bot] 6b4b64d3fc Update NixOS module to v1.2.3 (#66)
Co-authored-by: GitHub Actions <actions@github.com>
2025-07-20 22:01:56 +02:00
javalsai 7e1ec83c7f version: bump to v1.2.3 v1.2.3 2025-07-20 21:53:47 +02:00
javalsai 8f0213db74 misc batch of fixes before v1.2.3 (#65)
* fix some formatter and linter issues
* make clang-tidy/clang-format fail with error status and output in github error format
* docs, add kmscon thing
* and some CI stuff
2025-07-20 21:50:12 +02:00
javalsai 4a1b868b8e docs: linter & packagers guide & chores (#64)
add prettier, move most markdown into `docs/` and add a packagers guide

---

* lint(md): add prettier

* docs(packagers): add a guide

* docs(correctness): Index -> ToC

* docs: link to package maintainers guide

* docs: move install docs to `./docs`

* docs(fix): typo
2025-07-16 18:13:12 +02:00
SpamixOfficial 589f33ffec feat(PAM service configuration) (#62)
* docs(typo): fix typo in Contributing.md

* add optional PAM service name

* feat(PAM service name): Add ENV variable configuration for the PAM service name

* feat(PAM service name): Implement suggested changes + update README instructions

* docs(remove segment)
2025-07-16 14:53:23 +02:00
Ar1gin 8fc6bff60f fix: hostname truncation (#63)
Co-authored-by: javalsai <javalsai@proton.me>
2025-07-16 14:19:58 +02:00
javalsai 6c99675be7 Merge pull request #61 from javalsai/musl-build
build: preparations for musl
2025-07-16 13:55:18 +02:00
javalsai 663b882f34 ci(feat): add x86_64 musl builds 2025-07-10 23:11:30 +02:00
grialion cd5a3ede52 fix(auth.c): use POSIX pid_t
Use standard pid_t type instead of libc specific __pid_t type.
2025-07-09 23:14:36 +02:00
grialion 3f264a66b9 fix(util.h): use standard system header
Use standard sys/time.h instead of libc specific header bits/types/... for musl compatibility
2025-07-09 23:07:32 +02:00
javalsai ecf254bf7f manual-ci: update nix hash to v1.2.2 2025-07-09 20:12:59 +02:00
javalsai 57fedc9fd5 ci(fix): release, sed nix update replace 2025-07-09 20:10:45 +02:00
javalsai 3d993c6260 version: bump 1.2.1 -> 1.2.2 v1.2.2 2025-07-09 19:54:12 +02:00
javalsai ba3c15b0f4 Merge pull request #57 from javalsai/fix-51
packaging: properly package for nixos
2025-07-09 19:53:00 +02:00
javalsai 54953a18e8 Merge branch 'master' into fix-51 2025-07-07 04:28:01 +02:00
javalsai a22c6b4597 checks: add AUR codespell ignore path 2025-07-07 04:26:27 +02:00
javalsai ab7666f561 ci(perf): only run push build checks if code changed 2025-07-07 04:25:43 +02:00
javalsai f0ef834eaa ci(release): add nix module version&sha256 bump 2025-07-07 04:03:10 +02:00
javalsai d85ebc0e78 feat(nix): add keys enum to global cfg 2025-07-07 03:23:14 +02:00
javalsai 4611ad87a8 fmt(nix): add nix fmt, fmt and update flake.lock 2025-07-07 02:38:04 +02:00
javalsai 3625aa9426 docs(nix module): add 2025-07-06 23:26:58 +02:00
javalsai fcc8be77ee dev(ci): add nix version check to pre-release ci checks 2025-07-06 23:14:04 +02:00
javalsai 2f2a2c2696 fix(cfg): parser bugs on missing final newline 2025-07-06 23:03:41 +02:00