Commit Graph

110 Commits

Author SHA1 Message Date
570a68c586 fix: satify all clang code requirements 2025-08-27 22:21:21 +02:00
ff3e58ee5b fix: satify clang nullability requirements 2025-08-27 22:07:04 +02:00
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
056ec64bcb feat: better spawn error handling 2025-08-27 20:29:16 +02:00
6d9107b360 lint: stricter casing rules 2025-08-27 19:47:19 +02:00
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
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
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
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
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
2f2a2c2696 fix(cfg): parser bugs on missing final newline 2025-07-06 23:03:41 +02:00
689c962cc9 fix: necessary code changes for nix configurability 2025-07-06 05:13:09 +02:00
6cac2f91ed fix: neccessary code changes for nix 2025-07-06 04:21:49 +02:00
65bbb7d1b4 Merge branch 'master' into update_rate 2025-07-04 19:33:43 +02:00
5f7e412408 Merge branch 'master' into feat-help-version-menu 2025-07-04 19:25:59 +02:00
736e816509 style: satisfy clang-tidy 2025-07-04 15:50:18 +02:00
19a1355b06 dev: automatic version.h generation
also added compiler information as a feature
2025-07-04 15:22:22 +02:00
9c022c5813 feat(cfg): add ellipsis to config 2025-07-04 04:48:20 +02:00
a316afecb2 fix: possible memory issues 2025-07-04 04:47:32 +02:00
5a6471dd00 feat: utf8 hostname and ellipsis 2025-07-04 04:40:10 +02:00
5b5adf76b7 feat: support long hostnames
close #49
2025-07-04 03:56:51 +02:00
ba836e5cd4 feat: add refresh_rate option for clock 2025-07-04 03:30:29 +02:00
9f905622a2 chore: dry and modularize a bit 2025-07-04 01:43:32 +02:00
grialion
afd23657c0 feat: help, version menu 2025-07-04 00:15:14 +02:00
rmntgx
f5445248d3 Merge branch 'master' into ui-improvements 2025-07-02 14:02:40 +05:00
rmntgx
68ed11fb2d feat: cool resize implementation 2025-07-02 13:50:17 +05:00
6c6769b2b3 chore: clean some auth logic 2025-07-01 01:16:08 +02:00
99e27dd0c0 fix(likely): #45 2025-07-01 01:09:49 +02:00
rmntgx
b653fdcc57 feat: buggy resize implementation 2025-06-29 23:32:04 +05:00
11e9257c4a Merge pull request #43 from javalsai/improvements
fix: broken cfg parser (blame 8403bfc2)
2025-06-29 18:57:49 +02:00
64e088884d fix: broken cfg parser (blame 8403bfc2) 2025-06-29 18:51:53 +02:00
bceb13b844 feat: save user and session as strings 2025-06-29 18:50:35 +02:00
rmntgx
f0e962ad50 fix: create directory 2025-06-29 11:51:42 +05:00
rmntgx
16d1325f96 style: formatting and linter satisfaction 2025-06-29 10:56:31 +05:00
rmntgx
1714b477ad fix: compilation error after rebase 2025-06-29 10:24:58 +05:00
rmntgx
a08ffa5a75 fix: simplified code 2025-06-29 10:20:01 +05:00
rmntgx
4a83e5d825 feature: saving previous selection 2025-06-29 10:20:00 +05:00
b2d25198e0 chore: handle all posible malloc failures 2025-06-22 00:32:35 +02:00
6ddbb407da fix(ui): custom input not taking all width 2025-06-21 05:25:03 +02:00
8403bfc26c fix: strlcpy usage & changes 2025-06-21 05:16:07 +02:00
55e58b46d9 fix(ui): some missing utf8 support 2025-06-21 04:21:10 +02:00
cd1f44ec41 feat: support custom format dates 2025-06-21 03:10:29 +02:00
938166366f lint: fix code for clang-tidy 2025-06-21 01:29:43 +02:00
6d30e889d5 fix: language & format 2025-06-21 00:54:36 +02:00
e7ef64cd16 feat: ithnk full utf8 support & ui 100% consistent 2025-06-21 00:52:30 +02:00
787b412005 feat: utf8 support & partial ui.c refactor 2025-06-20 21:31:49 +02:00
fc4367b6f7 fix: grammer and shecks
(get it, shell + checks = SHecks, k i'll stop)
2025-06-14 00:08:55 +02:00
5174f0b2bf feat: modernize config
- config now is more toml like
- no need to declare all fields, it implements defaults
- no yanderedev code, introspection babbyyy 😎
- desktop and config files parser semi-unification
- misc tweaks all over (mainly allocation failures handling)
2025-06-13 14:05:19 +02:00