Commit Graph

37 Commits

Author SHA1 Message Date
AnErrupTion e577c454da
Fix merge conflict
Signed-off-by: AnErrupTion <anerruption@disroot.org>
2025-10-14 21:10:17 +02:00
AnErrupTion 1839e4cb44
Use LLVM in Debug (closes #832)
Signed-off-by: AnErrupTion <anerruption@disroot.org>
2025-10-14 19:42:16 +02:00
Galtrhan b2f51e5bc8 Adjust Latvian translation & add missing file entries to build.zig (#850)
Change Latvian literal translation that did not quite fit the role of
username to more appropriate.

Added missing locale files to build.zig

Reviewed-on: https://codeberg.org/fairyglade/ly/pulls/850
Reviewed-by: AnErrupTion <anerruption@disroot.org>
Co-authored-by: Galtrhan <galtrhan@gmail.com>
Co-committed-by: Galtrhan <galtrhan@gmail.com>
2025-10-13 21:43:46 +02:00
AnErrupTion bd335c8c91
Add missing locales in build.zig
Signed-off-by: AnErrupTion <anerruption@disroot.org>
2025-10-13 21:39:44 +02:00
AnErrupTion 7a0520687d
Add fallback TTY option (closes #838)
Signed-off-by: AnErrupTion <anerruption@disroot.org>
2025-09-29 21:30:51 +02:00
AnErrupTion fec0815161
Always copy an example config file (partially addresses #801)
Signed-off-by: AnErrupTion <anerruption@disroot.org>
2025-08-29 22:18:50 +02:00
AnErrupTion ff9b6279d3
Update to Zig 0.15.0 (closes #829)
Signed-off-by: AnErrupTion <anerruption@disroot.org>
2025-08-27 23:44:39 +02:00
jlucaso 6933c4db02 Merge branch 'master' into refactor/termbox2-dependency 2025-07-25 06:31:10 +02:00
AnErrupTion 04920e1b1b
Implement custom session support (fixes #757)
Signed-off-by: AnErrupTion <anerruption@disroot.org>
2025-07-08 22:39:14 +02:00
João Lucas 7b81336761 refactor: Use zig fetch for termbox2 dependency
Replaced the local `termbox2.h` header file with a proper dependency managed by the Zig package manager. This improves maintainability and makes it easier to track and update the library in the future.

The previous `termbox2.h` contained a custom `tb_get_cell` function that is not present in the upstream repository. This function has been re-implemented in Zig (`src/tui/termbox_extras.zig`) to maintain compatibility, especially for the failed-login "cascade" animation.

This change also involved updating `build.zig` and `build.zig.zon` to use the new dependency.
2025-07-04 08:32:49 -03:00
AnErrupTion 063b3145ed
Start v1.2.0 development cycle
Signed-off-by: AnErrupTion <anerruption@disroot.org>
2025-05-30 19:29:04 +02:00
AnErrupTion 8fa6b2cec9
Improve build system commands
Signed-off-by: AnErrupTion <anerruption@disroot.org>
2025-03-07 11:03:45 +01:00
AnErrupTion d0ccaa4d69
Enable true color output (closes #705)
Signed-off-by: AnErrupTion <anerruption@disroot.org>
2025-03-06 12:47:28 +01:00
AnErrupTion 87503367e9
Try to create /etc/pam.d and /usr/bin everytime when installing
Signed-off-by: AnErrupTion <anerruption@disroot.org>
2025-03-05 22:36:17 +01:00
AnErrupTion 85e071a60a
Code style changes in build.zig
Signed-off-by: AnErrupTion <anerruption@disroot.org>
2025-03-05 22:07:18 +01:00
AnErrupTion 50e9e912e0 Merge branch 'master' into villamorrd/master 2025-03-05 19:52:09 +00:00
AnErrupTion bebccf4d5a
Support Zig 0.14.0 only (with 1 downstream dependency fork)
Signed-off-by: AnErrupTion <anerruption@disroot.org>
2025-03-05 19:42:00 +01:00
villamorrd d171634f9b
fix: don't include dest_dir in config_dir
This should fix $CONFIG_DIRECTORY including the installation directory in its path.
2025-02-01 20:58:52 +08:00
AnErrupTion 6fbbb4eff0
Consolidate xsetup.sh & wsetup.sh into one file
Signed-off-by: AnErrupTion <anerruption@disroot.org>
2024-08-05 00:58:29 +02:00
AnErrupTion ef86ea19ac
Update termbox2
Signed-off-by: AnErrupTion <anerruption@disroot.org>
2024-08-04 19:40:26 +02:00
AnErrupTion 1314c57796
Fix config.brightnessctl missing + bugs
Signed-off-by: AnErrupTion <anerruption@disroot.org>
2024-08-01 00:54:00 +02:00
AnErrupTion 872b15c0d4
Fix authentication
Signed-off-by: AnErrupTion <anerruption@disroot.org>
2024-08-01 00:39:00 +02:00
AnErrupTion ee0c00574a
Patch resource files + add prefix directory
Signed-off-by: AnErrupTion <anerruption@disroot.org>
2024-07-31 22:35:36 +02:00
AnErrupTion 2dec2e0b7f
Print data directory deletion in build.zig
Signed-off-by: AnErrupTion <anerruption@disroot.org>
2024-07-30 10:54:30 +02:00
AnErrupTion 48185bdfe0
More verbose output in build.zig
Signed-off-by: AnErrupTion <anerruption@disroot.org>
2024-07-29 14:44:56 +02:00
AnErrupTion 93554d9ba3
Add missing supervise symlink on runit (fixes #610)
Signed-off-by: AnErrupTion <anerruption@disroot.org>
2024-07-28 11:34:33 +02:00
AnErrupTion 8c69472065
Allow building without X11 support
Signed-off-by: AnErrupTion <anerruption@disroot.org>
2024-07-27 18:35:58 +02:00
AnErrupTion b7934e42d1
Add dinit support
Co-authored-by: Simon Pflaumer <s.pflaumer@murena.io>
Signed-off-by: AnErrupTion <anerruption@disroot.org>
2024-07-27 15:59:02 +02:00
AnErrupTion 9cd58123c4
Fix silly mistake
Signed-off-by: AnErrupTion <anerruption@disroot.org>
2024-07-27 15:02:01 +02:00
AnErrupTion 0cead672da
Add s6 support
Co-authored-by: userbook <userbook@devuan>
Co-authored-by: TerminalJunki <158248817+TerminalJunki@users.noreply.github.com>
Signed-off-by: AnErrupTion <anerruption@disroot.org>
2024-07-27 15:00:07 +02:00
AnErrupTion 2b0301c1d0
Make runit run and finish scripts executable
Signed-off-by: AnErrupTion <anerruption@disroot.org>
2024-07-26 21:58:18 +02:00
AnErrupTion 49b8697546
Use octal prefix for file modes in build.zig
Signed-off-by: AnErrupTion <anerruption@disroot.org>
2024-07-26 18:54:27 +02:00
jinzhongjia e4abf79ad5
Support Zig 0.13.0 and setting default TTY at build time (#632)
* feat: support zig `0.13.0`

* 12 compatible

* update clap

* feat: add default tty to build option

* little fix

* update `zigini`
2024-07-12 22:40:01 +02:00
AnErrupTion cbe7b37564
Fix dest_directory embedded in binary
Signed-off-by: AnErrupTion <anerruption@disroot.org>
2024-07-03 09:50:56 +02:00
AnErrupTion 4eb4e15e43
Start v1.1.0 development cycle
Signed-off-by: AnErrupTion <anerruption@disroot.org>
2024-07-03 09:44:23 +02:00
アシュ 291e0d836b
Various bug fixes and small features (#606)
* Fix stray cursor, integer overflows and other bugs

* check for getenvlist error, shorten code

* fix cascade, set info_line before auth, make code clearer and a bug fix

* Add option to turn on numlock at startup

* Fix setting numlock

* Update build.zig

* Custom info text

* Shift+Tab for previous input

* update changelog and res/config

* Some fixes

* update build.zig

* update build.zig again

* Fix xauth command for some shells and fix building in ReleaseSafe

* Use git describe to get dev version str

* revert change to getLockState (it broke the doom animation)

* add new ly error messages. Only try to make path for pam/exe during install when dest_directory is defined + print warning on error.

* add warning message for workaround
2024-07-02 10:52:38 +02:00
ShiningLea d8d2d5a8bf
Nobody expects the Ziguanas (#517)
* Add build.zig, remove makefile, add .idea directory to .gitignore

* Remove submodules, add projects directly

* Remove submodules

* Add projects

* Rename sub/ to dep/, remove makefiles

* Rewrite main.c

* Remove Argoat dependency

* Remove unused dependencies

* Rewrite config.c

* Add files

* Change default fg to 8 in config.ini

* Partially rewrite utils.c

* Use Zig package manager

* Rewrite INPUTS enum in Zig

* Commit unfinished full rewrite (Zig 0.11.0)
What needs to be dealt with:
- Matrix animation
- Authentication part
- Testing on actual TTY (not just virtual console)

Signed-off-by: AnErrupTion <anerruption@disroot.org>

* Implement more (untested) authentication code

Signed-off-by: AnErrupTion <anerruption@disroot.org>

* Fix some bugs (hopefully)

Signed-off-by: AnErrupTion <anerruption@disroot.org>

* Try to fix some more bugs

Signed-off-by: AnErrupTion <anerruption@disroot.org>

* Oops, forgot to allocate hehe

Signed-off-by: AnErrupTion <anerruption@disroot.org>

* Changes in the Zig rewrite (#596)

* Everything

* make matrix.zig a bit cleaner

* make long lines shorter and add changelog

* vi mode

* update changelog

* get errors from child process and (hopefully) fix some other things

* fix utmp entry

* run authentication in a child process

* update changelog

* small code improvements

* change that

* clear terminal on SIGTERM

* Remove LogFile

* moved ini to a lib, fixed alternative langs

* fix logging out

* oops

* code improvements

* consistency

* clearing the env isn't needed anymore (afaik)

* replace vi_mode with a bool

* type aliases, avoiding zeroes(), breaking a long line

* lowercase insert/normal, merge conditionals, code improvements

* Add experimental save file migrator + bug fixes + add "-dev" version suffix

Signed-off-by: AnErrupTion <anerruption@disroot.org>

* Resolve conflicts

Signed-off-by: AnErrupTion <anerruption@disroot.org>

* Clean up when SIGTERM is received (#597)

* clean up child processes on SIGTERM

* small code improvement

* consistency.. i guess?

* Properly set XDG_CURRENT_DESKTOP

Signed-off-by: AnErrupTion <anerruption@disroot.org>

* Zig 0.12.0 and more! (#599)

* less alloc, update migrator, get DesktopNames from .desktop

* small cleanup

* Update zigini to improve compatibility with old config

* Code improvements

* Update to zig version 0.12.0

* Some fixes

* tiny changes

* remove useless comment

* migrator changes, and small things

* set XDG env vars differently

* free memory on error when appending environments

* Fix out of bounds issue when using the Delete key

Signed-off-by: AnErrupTion <anerruption@disroot.org>

* Update zig-ini to fix configuration issue (#603)

* Mention display-manager-init for Gentoo/OpenRC in readme.md

Signed-off-by: AnErrupTion <anerruption@disroot.org>

* Tidy up readme.md

Signed-off-by: AnErrupTion <anerruption@disroot.org>

* Fix authentication in a few edge cases (#604)

* fix loginConv and auth

* fix potential mem leak with configs

* BIG changes

---------

Signed-off-by: AnErrupTion <anerruption@disroot.org>
Co-authored-by: アシュ <120780645+Kawaii-Ash@users.noreply.github.com>
2024-05-09 15:30:12 +02:00