51 Commits

Author SHA1 Message Date
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
Ar1gin
8fc6bff60f fix: hostname truncation (#63)
Co-authored-by: javalsai <javalsai@proton.me>
2025-07-16 14:19:58 +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
689c962cc9 fix: necessary code changes for nix configurability 2025-07-06 05:13:09 +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
3fb74ece44 style: indent preprocessor directives 2025-07-04 15:23:22 +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
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
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
4a83e5d825 feature: saving previous selection 2025-06-29 10:20:00 +05: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
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
7db89e973d debug: add a logging module 2025-06-11 16:47:16 +02:00
cbb3aa3910 dev: remove strcln in favor of strdup 2025-06-11 16:17:00 +02:00
2bdb57390d lint: satisfy some nullability annotations 2025-06-11 14:40:21 +02:00
bb1ca09fd8 lint(format): change format rules a bit 2025-06-10 23:44:40 +02:00
22c3f7c896 feat|perf: generic&efficient desktop&config parser 2025-06-10 23:44:09 +02:00
a846c1b4c9 lint(tidy): some clang-tidy work 2025-06-10 23:32:55 +02:00
7d76687833 lint: apply new style 2025-06-06 20:46:55 +02:00
d6a348c543 Merge branch 'master' into code-formatting 2025-06-06 20:44:39 +02:00
04a102a7bb perf: better and efficient vec impl 2025-06-06 19:39:44 +02:00
rmntgx
0b02a2cef2 format: satisfy linter 2025-05-17 21:56:27 +00:00
f34a71195e chore: use size_t for indexing and iterating 2024-12-25 20:22:28 +01:00
e13a8ff79c fix: #includes 👀 2024-12-25 20:16:25 +01:00
4c7d221a17 dev: use #includes according to error's concerns 2024-12-25 20:00:09 +01:00
0ba5519937 feat: add behavior.{source,user_source} for custom env 2024-12-25 19:25:09 +01:00
d30d5a8884 grammar 👍 2024-10-19 17:52:33 +02:00
a0b68491ba chore: implement vectors
also seems to address several of these:
https://github.com/javalsai/lidm/issues/3#issuecomment-2423933131

not sure about the issue itself, might be permission stuff
2024-10-19 17:50:50 +02:00
01ddd62852 chore: make specific vector (heap stack) impl 2024-10-18 21:54:39 +02:00
2284ab017d chore: remove config inconsistencies 2024-09-05 21:20:09 +02:00
dbbab78e23 format: let clang-format run ._.
(won't even talk about clang-tidy)
2024-09-05 20:26:58 +02:00
fe4a52ecfa chore: chvt_str into chvt.c 2024-08-07 00:14:19 +02:00
4de2720bed small changes 2024-08-07 00:07:44 +02:00
grialion
e745b27a68 feat(chvt): use custom implementation instead of system()
Calling system() is vulnerable and shouldn't be used.
2024-08-06 17:11:18 +02:00
9f024edde7 done :) 2024-07-14 22:25:22 +02:00
0955b115e6 do config :) 2024-07-14 21:44:08 +02:00
f9bfc48a9f spain's gonna win btw 🇪🇸 2024-07-14 20:21:17 +02:00
6b2d76c9b8 all: at this point just read readme 😭
spaghetti code
equivalent spaghetti readme
spaghetti commit (wait no, this is actually descriptive)
2024-07-13 12:19:02 +02:00
490a370546 feat: add session types 2024-07-11 00:09:29 +02:00