AnErrupTion
03d976171a
Fix battery level overlapping shutdown label ( fixes #935 )
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2026-02-27 20:28:11 +01:00
AnErrupTion
5a4605ffb6
Add layering system for widgets
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2026-02-12 11:29:14 +01:00
AnErrupTion
01dcfa207e
Show UI errors in info line again
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2026-02-12 11:20:54 +01:00
AnErrupTion
32d5330efb
Move the event loop to a separate function
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2026-02-12 01:19:19 +01:00
AnErrupTion
5564fed664
Add Widget.calculateTimeout function
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2026-02-12 00:27:07 +01:00
AnErrupTion
7c7aed9cb2
Make animation timeout independent of event loop
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2026-02-11 23:51:32 +01:00
AnErrupTion
57c96a3478
Fix animation timeout bug + remove redundant check
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2026-02-11 22:55:10 +01:00
AnErrupTion
6773f74788
Add widget display name to improve logging
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2026-02-11 21:51:07 +01:00
AnErrupTion
b389e379fa
Make handling inputs widget-independent
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2026-02-11 21:00:00 +01:00
hynak
4a72e41e44
Fix default startup script ( #929 )
...
## What are the changes about?
Discussed in !920 . Adds fixes to the startup script by removing the array usage (some shells use arrays different/unsupported) and adds stdout_behavior Inherit flag to the child process to propagate the echos to the TTY.
## What existing issue does this resolve?
N/A
## Pre-requisites
- [x] I have tested & confirmed the changes work locally
Reviewed-on: https://codeberg.org/fairyglade/ly/pulls/929
Reviewed-by: AnErrupTion <anerruption@disroot.org >
Co-authored-by: hynak <hynak@noreply.codeberg.org >
Co-committed-by: hynak <hynak@noreply.codeberg.org >
2026-02-10 22:20:30 +01:00
AnErrupTion
d268d5bb45
Add the cascade animation as a separate widget
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2026-02-10 17:43:55 +01:00
AnErrupTion
70e95f094a
Fix incorrect key parsing
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2026-02-10 10:41:08 +01:00
AnErrupTion
207b352888
Add central Widget struct + clean up code
...
In particular, move all termbox2 usage to TerminalBuffer.zig &
keyboard.zig
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2026-02-10 00:22:27 +01:00
AnErrupTion
99dba44e46
Rename min_refresh_delta option to animation_frame_delay ( closes #925 )
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2026-02-09 11:38:56 +01:00
AnErrupTion
d1810d8c98
Fix numlock & capslock positioning
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2026-02-09 11:20:27 +01:00
AnErrupTion
852a602032
Support more configurable keybindings ( closes #679 )
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2026-02-09 11:11:00 +01:00
AnErrupTion
cf5f62661c
Remove resolution_changed bool
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2026-02-08 22:23:07 +01:00
AnErrupTion
1db780c7a7
Better handle screen resizes
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2026-02-08 22:18:00 +01:00
AnErrupTion
941b7e0dae
Properly calculate string lengths
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2026-02-08 22:04:09 +01:00
AnErrupTion
e9e2d51261
Better bigclock positioning
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2026-02-08 21:36:18 +01:00
AnErrupTion
769aefd6e9
Add separate big label widget for bigclock
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2026-02-08 21:14:49 +01:00
AnErrupTion
f678e3bb28
Add update function for Label
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2026-02-08 19:50:32 +01:00
AnErrupTion
f22593f828
Add Label component & make colors custom
...
This commit also makes Ly more resilient to (impossible) screen
resolutions.
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2026-02-08 17:40:50 +01:00
AnErrupTion
7bbdebe58b
Fix center offset error
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2026-02-08 15:09:55 +01:00
AnErrupTion
bca38856b1
Completely refactor widget placement code
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2026-02-08 14:53:36 +01:00
AnErrupTion
fd81da7cbd
Organise imports
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2026-02-07 17:01:11 +01:00
AnErrupTion
950eeed3ee
Log which VT is used
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2026-02-07 10:48:05 +01:00
AnErrupTion
7744745f09
Don't try to switch TTY with KMSCON
...
It can do it automatically (see the corresponding service file).
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2026-02-05 19:55:40 +01:00
AnErrupTion
11735290b8
Fix active TTY detection for KMSCON
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2026-02-05 19:50:48 +01:00
AnErrupTion
2b46a81796
Add basic KMSCON support ( closes #886 )
...
It's not perfect yet, but at least it works!
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2026-02-05 15:01:45 +01:00
AnErrupTion
b00d6899e5
Fix buffer not resizing with no animation
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2026-02-04 20:16:53 +01:00
AnErrupTion
7ce8ff61fe
Unify ini parsing logic
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2026-02-01 10:41:06 +01:00
AnErrupTion
1a04a608a1
Remove dummy animation
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2026-01-31 22:51:44 +01:00
AnErrupTion
b0dcc12785
Move UI drawing to separate function
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2026-01-31 22:35:28 +01:00
AnErrupTion
b672d04dc6
Improve authentication logging
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2026-01-31 11:46:55 +01:00
AnErrupTion
2e04ea4d79
Add time, severity & category in logs
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2026-01-31 11:17:36 +01:00
AnErrupTion
0c12008327
Move more termbox usage into TerminalBuffer
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2026-01-31 10:36:08 +01:00
AnErrupTion
a158098df0
Add config.x_vt option ( fixes #910 )
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2026-01-26 20:45:33 +01:00
AnErrupTion
5bfa1670cc
Better systemd-homed user detection ( fixes #913 )
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2026-01-26 20:36:44 +01:00
hynak
a4076b83da
[dur] Add support for alignments and negative offsets + Ly logo ( #893 )
...
## What are the changes about?
Add support for letting a user use a negative offset (#880 ), alignment, and logo. Below is example of the logo file, I hope it is what was request :). It has no padding so a user can move the alignment and offset to get it how they want on screen.
This technically is good to go, except I didn't upload the logo file as I'm not sure where to add the animation file to get it to here: $CONFIG_DIRECTORY/ly/example.dur

## What existing issue does this resolve?
#880
## Pre-requisites
- [x] I have tested & confirmed the changes work locally
Reviewed-on: https://codeberg.org/fairyglade/ly/pulls/893
Reviewed-by: AnErrupTion <anerruption@disroot.org >
Co-authored-by: hynak <hynak@noreply.codeberg.org >
Co-committed-by: hynak <hynak@noreply.codeberg.org >
2026-01-25 23:08:42 +01:00
AnErrupTion
2eea683078
Fix wrong session being chosen in autologin ( closes #911 )
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2026-01-18 21:35:49 +01:00
AnErrupTion
d7f64676ee
Split core code into ly-core library
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2026-01-18 21:07:53 +01:00
AnErrupTion
456916f059
Remove unused import in auth.zig
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2026-01-18 20:49:32 +01:00
AnErrupTion
2b1e4dc6c9
Fix undefined value in XCB connection check
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2026-01-18 18:03:21 +01:00
AnErrupTion
c0c400e0b6
Recursively create xauth file directory if non-existent
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2025-12-30 19:35:40 +01:00
AnErrupTion
9e4147bfb4
Fix invalid XDG_RUNTIME_DIR if D-Bus isn't used
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2025-12-30 19:29:47 +01:00
AnErrupTion
8e893932f2
Clamp user session index if invalid
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2025-12-30 18:09:46 +01:00
AnErrupTion
26e7585b0b
Don't forget to allocate :D
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2025-12-30 17:43:00 +01:00
AnErrupTion
b1cb576f67
Check for session file name in autologin ( closes #895 )
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2025-12-30 17:38:22 +01:00
AnErrupTion
add7f25f0d
Create session log directory if non-existent ( closes #896 )
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2025-12-30 17:20:04 +01:00