Commit Graph

441 Commits

Author SHA1 Message Date
AnErrupTion
f9553655a3 Separate platform code from C interop code
Also, don't use isBSD() because we'll only support FreeBSD for
now. Other BSDs may not necessarily support Unicode characters
or the same ioctl constants as we do (or even ioctl at all).

Signed-off-by: AnErrupTion <anerruption@disroot.org>
2025-08-30 00:27:04 +02:00
AnErrupTion
230874abd1 Don't forget to flush... :)
Signed-off-by: AnErrupTion <anerruption@disroot.org>
2025-08-29 22:54:05 +02:00
AnErrupTion
38c3ecd089 Remove unused import
Signed-off-by: AnErrupTion <anerruption@disroot.org>
2025-08-29 22:42:34 +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
a7d6b06d21 Add partial logging in authentication process (closes #822)
Signed-off-by: AnErrupTion <anerruption@disroot.org>
2025-08-29 09:28:29 +02:00
AnErrupTion
1ee8010c24 Fix dinit & s6 service + don't hardcode paths in runit service
Signed-off-by: AnErrupTion <anerruption@disroot.org>
2025-08-29 02:18:11 +02:00
AnErrupTion
f988bd334b Update termbox2
Signed-off-by: AnErrupTion <anerruption@disroot.org>
2025-08-29 00:45:28 +02:00
AnErrupTion
aa0222948a Update config migrator
Signed-off-by: AnErrupTion <anerruption@disroot.org>
2025-08-29 00:35:11 +02:00
AnErrupTion
69d39dc035 Remove config.load
config.save already makes it redundant. Besides, who would want
to save the current username & session, but not want to load it
at the next boot?

Signed-off-by: AnErrupTion <anerruption@disroot.org>
2025-08-29 00:32:49 +02:00
AnErrupTion
6d7dbb9f27 Fix typo & remove unused import
Signed-off-by: AnErrupTion <anerruption@disroot.org>
2025-08-29 00:07:32 +02:00
AnErrupTion
7cfb947187 Reduce libc usage & move more stuff to interop
Signed-off-by: AnErrupTion <anerruption@disroot.org>
2025-08-28 01:39:19 +02:00
AnErrupTion
336847d418 Merge changes from master
Signed-off-by: AnErrupTion <anerruption@disroot.org>
2025-08-27 23:45:52 +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
KaiJan57
c7dea3c178 [dinit] fix deprecated loginready, replaced by login.target (#828)
Fixes [corresponding issue](https://codeberg.org/fairyglade/ly/issues/827#issue-2234461)

Reviewed-on: https://codeberg.org/fairyglade/ly/pulls/828
Reviewed-by: AnErrupTion <anerruption@disroot.org>
Co-authored-by: KaiJan57 <kaijan57@noreply.codeberg.org>
Co-committed-by: KaiJan57 <kaijan57@noreply.codeberg.org>
2025-08-26 18:59:43 +02:00
AnErrupTion
d7a4535007 Update screenshot
Signed-off-by: AnErrupTion <anerruption@disroot.org>
2025-08-11 12:32:10 +02:00
djsigmann
73ecac67bf Prevent Ly from zombifying when X.org is terminated (#807) (fixes #787)
If a compositor is running when exiting Xorg, the user is met with an unresponsive black screen without the ability to switch to a different TTY (the usual `Ctrl+Alt+F{1..6}`  chord doesn't do anything).
In addition, ly is displayed as a zombie process under `ps` and cannot be killed (observed by utilizing a preexisting ssh connection to the host).

Reviewed-on: https://codeberg.org/fairyglade/ly/pulls/807
Reviewed-by: AnErrupTion <anerruption@disroot.org>
Co-authored-by: djsigmann <djsigmann@protonmail.com>
Co-committed-by: djsigmann <djsigmann@protonmail.com>
2025-08-05 21:45:09 +02:00
AnErrupTion
7353e75d78 Merge branch 'master' of codeberg.org:fairyglade/ly 2025-08-05 08:26:38 +02:00
AnErrupTion
cd0accfb28 Show error name instead of error if shutdown/reboot fails
Signed-off-by: AnErrupTion <anerruption@disroot.org>
2025-08-05 08:26:13 +02:00
João Lucas
b71789912d Add enable_session_log option to control session logging (#809) (fixes #808)
Reviewed-on: https://codeberg.org/fairyglade/ly/pulls/809
Reviewed-by: AnErrupTion <anerruption@disroot.org>
Co-authored-by: João Lucas <jlucaso@hotmail.com>
Co-committed-by: João Lucas <jlucaso@hotmail.com>
2025-08-04 00:00:18 +02:00
AnErrupTion
5bacc8870b Update repository link in README
Signed-off-by: AnErrupTion <anerruption@disroot.org>
2025-08-03 23:42:35 +02:00
Matthew Rothlisberger
a7ff18aa16 Add option for eight-color terminal output (#802)
Reviewed-on: https://codeberg.org/fairyglade/ly/pulls/802
Reviewed-by: AnErrupTion <anerruption@disroot.org>
Co-authored-by: Matthew Rothlisberger <mattjrothlis@gmail.com>
Co-committed-by: Matthew Rothlisberger <mattjrothlis@gmail.com>
2025-08-03 23:37:53 +02:00
AnErrupTion
c3d180c213 Add basic general log file
Signed-off-by: AnErrupTion <anerruption@disroot.org>
2025-08-03 15:59:47 +02:00
AnErrupTion
3f891d7f0d Workaround for session process not exiting immediately
Signed-off-by: AnErrupTion <anerruption@disroot.org>
2025-08-03 14:56:16 +02:00
AnErrupTion
e404d5bdb3 Clean-up: std.posix.kill() returns nothing
Signed-off-by: AnErrupTion <anerruption@disroot.org>
2025-08-03 14:55:50 +02:00
AnErrupTion
dee055748c Format code properly
Signed-off-by: AnErrupTion <anerruption@disroot.org>
2025-08-03 13:47:53 +02:00
AnErrupTion
bd2d1142b2 Don't enable bigclock by default
Signed-off-by: AnErrupTion <anerruption@disroot.org>
2025-08-03 13:05:28 +02:00
RadsammyT
b382d74969 bigclock: add 12-hour & seconds support (#805)
Added P,A,M characters to bigclock and added 12hr and seconds support to bigclock via `bigclock_12hr` and `bigclock_seconds` in the config.
![image](/attachments/e95accff-4822-4801-8159-94411a6c644f)
Image has bigclock_12hr and bigclock_seconds enabled.

Farsi characters for P,A,M are blank since I don't know what it would look like in their language. (should i have just used the english characters as a placeholder?)

Reviewed-on: https://codeberg.org/fairyglade/ly/pulls/805
Reviewed-by: AnErrupTion <anerruption@disroot.org>
Co-authored-by: RadsammyT <radsammyt@gmail.com>
Co-committed-by: RadsammyT <radsammyt@gmail.com>
2025-08-03 11:16:04 +02:00
AnErrupTion
4fbbb6f0f2 Reduce nesting a bit
Signed-off-by: AnErrupTion <anerruption@disroot.org>
2025-08-02 22:59:34 +02:00
AnErrupTion
ef64029795 Only clear TTY under certain circumstances
Signed-off-by: AnErrupTion <anerruption@disroot.org>
2025-08-02 22:57:47 +02:00
AnErrupTion
71c694e575 Correct mention of TTY modification in README
Signed-off-by: AnErrupTion <anerruption@disroot.org>
2025-08-02 22:22:18 +02:00
AnErrupTion
c37aa6957a Improve README
Signed-off-by: AnErrupTion <anerruption@disroot.org>
2025-08-02 20:26:31 +02:00
AnErrupTion
8377f14509 Exclude unsupported distributions in packaging status
Signed-off-by: AnErrupTion <anerruption@disroot.org>
2025-08-02 19:45:40 +02:00
AnErrupTion
b35c055e7b Fix clock string length issues (fixes #716)
Co-authored-by: Plash <plash@noreply.codeberg.org>
Signed-off-by: AnErrupTion <anerruption@disroot.org>
2025-08-02 13:08:07 +02:00
AnErrupTion
c05c32c5be Fix possible overflow with 5-digit+ UIDs (c.f. #684)
Signed-off-by: AnErrupTion <anerruption@disroot.org>
2025-08-02 00:57:22 +02:00
AnErrupTion
1f0274e797 Add packaging status in readme.md through Repology
Signed-off-by: AnErrupTion <anerruption@disroot.org>
2025-08-02 00:02:30 +02:00
AnErrupTion
f97d0c27d3 Merge pull request 'Russian translation update' (#810) from tyusha/ly:LangUpdate into master
Reviewed-on: https://codeberg.org/fairyglade/ly/pulls/810
Reviewed-by: AnErrupTion <anerruption@disroot.org>
2025-08-01 23:52:53 +02:00
AnErrupTion
d36147a376 Merge pull request 'fix: Reorder default PATH to prioritize /usr/local directories to solve problem with archlinux' (#814) from jlucaso/ly:fix-reorder-path into master
Reviewed-on: https://codeberg.org/fairyglade/ly/pulls/814
Reviewed-by: AnErrupTion <anerruption@disroot.org>
2025-08-01 23:51:18 +02:00
João Lucas
8030cf5244 fix: Reorder default PATH to prioritize /usr/local directories to solve
problem with archlinux
2025-07-26 19:27:36 +02:00
AnErrupTion
933e5bdd2d Merge pull request 'fix: duplicated entry waylandsessions' (#813) from jlucaso/ly:fix-duplicate-waylandsessions-entry into master
Reviewed-on: https://codeberg.org/fairyglade/ly/pulls/813
Reviewed-by: AnErrupTion <anerruption@disroot.org>
2025-07-26 19:26:39 +02:00
João Lucas
a9d85a6925 fix: duplicated entry waylandsessions 2025-07-26 13:55:48 -03:00
tyusha
3d3cf84292 fix 2025-07-25 16:41:06 +03:00
tyusha
19c879a201 update russian translation 2025-07-25 16:36:06 +03:00
AnErrupTion
98f59a69cc Merge pull request 'Refactor: Pull termbox2 in as a Zig dependency' (#799) from jlucaso/ly:refactor/termbox2-dependency into master
Reviewed-on: https://codeberg.org/fairyglade/ly/pulls/799
Reviewed-by: AnErrupTion <anerruption@disroot.org>
2025-07-25 10:48:28 +02:00
João Lucas
5fb40899e5 refactor: remove termbox_extras in favor of the fork 2025-07-25 01:33:57 -03:00
jlucaso
6933c4db02 Merge branch 'master' into refactor/termbox2-dependency 2025-07-25 06:31:10 +02:00
João Lucas
c3d0864e62 fix: update termbox2 dependency URL 2025-07-25 01:29:57 -03:00
AnErrupTion
e8cb8970fd Merge pull request 'Feat: Add Japanese (ja_JP) localization' (#793) from darallium/ly:master into master
Reviewed-on: https://codeberg.org/fairyglade/ly/pulls/793
Reviewed-by: AnErrupTion <anerruption@disroot.org>
2025-07-19 22:11:14 +02:00
darallium
c11194332c Add Japanese lang file 2025-07-19 20:44:47 +09:00
AnErrupTion
35265f5e77 Merge pull request 'fix: confined labels/box title cutting off' (#806) from radsammyt/ly:fix-confined-labels into master
Reviewed-on: https://codeberg.org/fairyglade/ly/pulls/806
Reviewed-by: AnErrupTion <anerruption@disroot.org>
2025-07-17 10:39:08 +02:00
RadsammyT
5c3da10386 fix: confined labels cutting off
`drawConfinedLabel` didn't take into account the starting x axis
when checking to break for exceeding `max_length`.

This should fix the box title not appearing on
terminals with larger column counts.
2025-07-16 22:03:51 -04:00