ebits
339e39d496
Adding the battery status for the top bar alongside brightness controls ( closes #821 ) ( #826 )
...
Reviewed-on: https://codeberg.org/fairyglade/ly/pulls/826
Reviewed-by: AnErrupTion <anerruption@disroot.org>
Co-authored-by: ebits <tspamiitesh@gmail.com>
Co-committed-by: ebits <tspamiitesh@gmail.com>
2025-10-09 18:48:46 +02:00
mctaylors
44faa263b1
change(config): add -n flag to prevent accidental backlight disabling ( #840 )
...
Reviewed-on: https://codeberg.org/fairyglade/ly/pulls/840
Reviewed-by: AnErrupTion <anerruption@disroot.org>
Co-authored-by: mctaylors <cantsendmails@mctaylors.ru>
Co-committed-by: mctaylors <cantsendmails@mctaylors.ru>
2025-10-05 19:26:09 +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
cee0e0ca4b
Log more detailed config error messages ( closes #801 )
...
Signed-off-by: AnErrupTion <anerruption@disroot.org>
2025-09-26 09:54:38 +02:00
AnErrupTion
3edd1ff1be
Log error name when zigini fails to parse config
...
Signed-off-by: AnErrupTion <anerruption@disroot.org>
2025-09-25 13:35:28 +02:00
AnErrupTion
145ad5142c
Clean up redundant authentication & session code
...
Signed-off-by: AnErrupTion <anerruption@disroot.org>
2025-09-25 08:32:30 +02:00
AnErrupTion
d8b0ae34f3
Remove semi-colons in default locale
...
Signed-off-by: AnErrupTion <anerruption@disroot.org>
2025-09-25 08:30:13 +02:00
AnErrupTion
ee97f3b5e1
Automatically detect TTY ( closes #795 )
...
Signed-off-by: AnErrupTion <anerruption@disroot.org>
2025-09-07 17:44:50 +02:00
AnErrupTion
5924db58e1
Use std.mem.span + remove useless dupeZ()
...
Signed-off-by: AnErrupTion <anerruption@disroot.org>
2025-08-30 13:17:19 +02:00
AnErrupTion
36e220e2ff
Remove usage of std.c.stat() for xauth code
...
Signed-off-by: AnErrupTion <anerruption@disroot.org>
2025-08-30 02:09:51 +02:00
AnErrupTion
0a9ceca822
Don't dupeZ() in main
...
Signed-off-by: AnErrupTion <anerruption@disroot.org>
2025-08-30 01:09:12 +02:00
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
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
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
ff9b6279d3
Update to Zig 0.15.0 ( closes #829 )
...
Signed-off-by: AnErrupTion <anerruption@disroot.org>
2025-08-27 23:44:39 +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
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
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 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
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
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
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
AnErrupTion
1d4e32ba82
List all users in the system ( fixes #373 )
...
Signed-off-by: AnErrupTion <anerruption@disroot.org>
2025-07-10 10:06:19 +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
AnErrupTion
48e5369f56
Fix character width calculation
...
Signed-off-by: AnErrupTion <anerruption@disroot.org>
2025-07-08 16:32:20 +02:00
AnErrupTion
918e9ad5ac
Only show lang.err_lock_state once
...
Signed-off-by: AnErrupTion <anerruption@disroot.org>
2025-07-08 12:47:24 +02:00
AnErrupTion
ce17d346e8
Remove lang.err_console_dev
...
Signed-off-by: AnErrupTion <anerruption@disroot.org>
2025-07-08 12:45:47 +02:00
Matthew Rothlisberger
99f3ab96ba
changes fire parameters
2025-07-07 21:02:58 -04:00
Matthew Rothlisberger
2a8e221e80
improves fire gradient in true color mode
2025-07-07 21:02:58 -04:00
Matthew Rothlisberger
1c5686ea54
further improves fire behavior
2025-07-07 21:02:58 -04:00
Matthew Rothlisberger
ab23631e66
reimplements PSX Doom fire animation; adds flame height control
2025-07-07 21:02:58 -04:00
AnErrupTion
1bcbb08202
Add config.console_dev as a removed property in migrator
...
Signed-off-by: AnErrupTion <anerruption@disroot.org>
2025-07-07 21:46:49 +02:00
AnErrupTion
d08b9a916e
Remove config.console_dev option + handle ioctl errors
...
Signed-off-by: AnErrupTion <anerruption@disroot.org>
2025-07-07 21:45:54 +02:00
AnErrupTion
e5eb8b7f6f
Merge branch 'master' of codeberg.org:fairyglade/ly
2025-07-06 09:26:38 +02:00
AnErrupTion
41f4378bfe
Fix XDG_RUNTIME_DIR not being set properly ( fixes #781 )
...
Signed-off-by: AnErrupTion <anerruption@disroot.org>
2025-07-06 09:25:06 +02:00
thoxy
e7aad8de88
remove gameoflife_randomize_colors argument in main for gameoflife
2025-06-17 12:40:49 +02:00
thoxy
9b00df4337
Merge branch 'master' into master
2025-06-17 12:36:17 +02:00
thoxy
a5e38e2ce5
Remove color randomization from Game of Life animation
2025-06-17 12:35:22 +02:00
Dusan
14aae40fda
Use existing label value for x
2025-06-10 14:34:20 +02:00
Dusan
3504180e95
Option to hide version string
2025-06-10 06:12:48 +02:00
thoxy
b4952cdc51
Merge branch 'master' into master
2025-05-31 18:04:56 +02:00
thoxy
5e8e0af59c
Remove redundant comments and type annotations
2025-05-31 17:56:16 +02:00
AnErrupTion
a8b8292318
Add name of unknown error instead of generic string
...
Signed-off-by: AnErrupTion <anerruption@disroot.org>
2025-05-31 11:04:46 +02:00
AnErrupTion
36a27f6167
Fix big clock UB in ReleaseSafe
...
Signed-off-by: AnErrupTion <anerruption@disroot.org>
2025-05-31 10:32:03 +02:00
thoxy
78ed67b35f
Merge branch 'master' into master
2025-05-30 20:07:32 +02:00
thoxy
fa46155f72
make gameoflife more configurable and fix pull reviews
2025-05-30 20:04:52 +02:00
AnErrupTion
67a4dd8f9d
Rewrite DOOM animation ( fixes #692 )
...
Signed-off-by: AnErrupTion <anerruption@disroot.org>
2025-05-30 16:11:14 +02:00
AnErrupTion
cedb7a3b02
Fix TTY not being cleared sometimes ( closes #696 )
...
Signed-off-by: AnErrupTion <anerruption@disroot.org>
2025-05-30 14:18:29 +02:00
AnErrupTion
d9204131aa
Fix brightness up key not working ( closes #763 )
...
Signed-off-by: AnErrupTion <anerruption@disroot.org>
2025-05-30 09:24:07 +02:00
thoxy
98af3a98c8
Add GameOfLife Animation
2025-05-27 07:07:37 +02:00
jack-avery
fecc688418
snake case
2025-03-28 11:01:33 -04:00
jack-avery
be5a68dd1d
allow specify multiple dirs
2025-03-28 00:47:12 -04:00
AnErrupTion
9ded9fd765
Remove use of deprecated aliases/types + use upstream zigini
...
Signed-off-by: AnErrupTion <anerruption@disroot.org>
2025-03-16 22:45:46 +01:00
AnErrupTion
13ba52319c
Clean termbox2 usage + fix animation bug
...
Signed-off-by: AnErrupTion <anerruption@disroot.org>
2025-03-16 11:40:27 +01:00
AnErrupTion
1672d4a9ec
Make main code less directly dependent on termbox2
...
Signed-off-by: AnErrupTion <anerruption@disroot.org>
2025-03-16 11:17:38 +01:00
AnErrupTion
e0ed1b4eb1
Add animation framework
...
Signed-off-by: AnErrupTion <anerruption@disroot.org>
2025-03-16 10:54:06 +01:00
AnErrupTion
86ea38f460
Split session crawling from TUI component
...
Signed-off-by: AnErrupTion <anerruption@disroot.org>
2025-03-16 00:24:56 +01:00
AnErrupTion
9efb734fd5
Show Ly version string at top-left
...
Signed-off-by: AnErrupTion <anerruption@disroot.org>
2025-03-13 13:27:18 +01:00
AnErrupTion
4dcef65b1c
Fix X11 session logout
...
Signed-off-by: AnErrupTion <anerruption@disroot.org>
2025-03-06 23:32:23 +01:00
AnErrupTion
ac1d828a5f
Stop spamming err_console_dev when first time didn't work
...
Signed-off-by: AnErrupTion <anerruption@disroot.org>
2025-03-06 22:02:01 +01:00
AnErrupTion
92845268af
Add option to allow empty password or not ( closes #577 )
...
Signed-off-by: AnErrupTion <anerruption@disroot.org>
2025-03-06 22:00:46 +01:00
AnErrupTion
932c751ac2
Stop redirecting X11 output to session log ( closes #693 , #688 )
...
Signed-off-by: AnErrupTion <anerruption@disroot.org>
2025-03-06 21:46:40 +01:00
AnErrupTion
e19a23b54c
Allow using up to a UTF-32 codepoint as a password asterisk ( closes #715 )
...
Signed-off-by: AnErrupTion <anerruption@disroot.org>
2025-03-06 21:16:24 +01:00
AnErrupTion
4e859e56cb
Allow modifying DOOM animation fire colors ( closes #239 )
...
Signed-off-by: AnErrupTion <anerruption@disroot.org>
2025-03-06 20:40:53 +01:00
AnErrupTion
d80ec8fd1f
Allow changing matrix animation min/max codepoints ( closes #615 )
...
Signed-off-by: AnErrupTion <anerruption@disroot.org>
2025-03-06 19:48:11 +01:00
AnErrupTion
d12fa27168
Added new error and updated French translation
...
Signed-off-by: AnErrupTion <anerruption@disroot.org>
2025-03-06 19:41:05 +01:00
AnErrupTion
593a775148
Use unsigned integers only in Matrix animation
...
Signed-off-by: AnErrupTion <anerruption@disroot.org>
2025-03-06 19:36:42 +01:00
AnErrupTion
6079c01a4b
Allow disabling the brightness control commands ( closes #664 )
...
Signed-off-by: AnErrupTion <anerruption@disroot.org>
2025-03-06 19:16:47 +01:00
AnErrupTion
9c79137c9f
Remove all deprecated calls to tb_cell_buffer()
...
Signed-off-by: AnErrupTion <anerruption@disroot.org>
2025-03-06 15:42:33 +01:00
AnErrupTion
9168266cca
Don't shutdown termbox2 if authentication fails
...
Signed-off-by: AnErrupTion <anerruption@disroot.org>
2025-03-06 15:29:56 +01:00
AnErrupTion
6cb102257c
Fix Doom & Matrix animation + bug in migrator
...
Signed-off-by: AnErrupTion <anerruption@disroot.org>
2025-03-06 15:27:38 +01:00
AnErrupTion
55abc4d7f1
Decouple TerminalBuffer and auth from Config
...
Signed-off-by: AnErrupTion <anerruption@disroot.org>
2025-03-06 14:32:05 +01:00
AnErrupTion
f013af0dde
Fix segmentation fault when using color mix after auth
...
Signed-off-by: AnErrupTion <anerruption@disroot.org>
2025-03-06 14:31:11 +01:00
AnErrupTion
973d8fe120
Don't dynamically allocate color strings
...
Signed-off-by: AnErrupTion <anerruption@disroot.org>
2025-03-06 13:23:47 +01:00
AnErrupTion
3e6d7a1b3b
Forgot a file lol
...
Signed-off-by: AnErrupTion <anerruption@disroot.org>
2025-03-06 13:09:19 +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
f54657432a
Don't set XDG_CURRENT_DESKTOP and XDG_SESSION_DESKTOP if they're empty ( closes #702 )
...
Signed-off-by: AnErrupTion <anerruption@disroot.org>
2025-03-05 22:50:09 +01:00
AnErrupTion
24599368df
Minor changes in color mix animation
...
Signed-off-by: AnErrupTion <anerruption@disroot.org>
2025-03-05 22:06:56 +01:00
AnErrupTion
c9a416b8a2
Merge branch 'master' into winlith/colormix
2025-03-05 20:53:53 +00:00
AnErrupTion
142073c362
Merge branch 'master' into moritz-reinel/03_uniform-lang-files
2025-03-05 20:26:01 +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
winlith
f5f7422d82
color mix animation
2025-01-17 22:37:48 +01:00
Moritz Reinel
117eccd65a
rename language normalizer script
2024-10-26 13:19:33 +02:00
Moritz Reinel
fe36879dfb
added note to Lang.zig and updated lang script to not process the comment
2024-10-12 22:07:29 +02:00
Moritz Reinel
06e283961d
add helper script for keeping lang files in sync with Lang.zig
2024-10-12 21:26:31 +02:00