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
Theo Gaige
2e7bb3eb58
Use buf_height and buf_width in Matrix.draw() ( #903 )
...
## What are the changes about?
buf_height is declared at the start of the draw() function of the
Matrix animation but both buf_height and self.terminal_buffer.height are
used in the function. replace every occurence of
self.terminal_buffer.height by buf_height for consistency.
The same goes for buf_width and self.terminal_buffer.width.
no functionnal changes
## 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/903
Reviewed-by: AnErrupTion <anerruption@disroot.org >
Co-authored-by: Theo Gaige <theo.gaige@free.fr >
Co-committed-by: Theo Gaige <theo.gaige@free.fr >
2025-12-29 23:39:10 +01:00
AnErrupTion
ced8f9bee3
Fix session not being saved correctly
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2025-12-17 17:32:16 +01:00
AnErrupTion
e0692885c5
Make delay floating point in dur format
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2025-12-06 14:34:47 +01:00
AnErrupTion
e6966a628c
Fix wrong session index + save file corruption
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2025-12-06 14:25:01 +01:00
AnErrupTion
a9ff0a6d07
Only support dur format v7, set -1 color to black
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2025-12-06 10:05:41 +01:00
AnErrupTion
92beb24c80
Fix save file initialisation & incorrect saved session index
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2025-12-05 19:49:27 +01:00
hynak
7e18d906c4
[Feature] Add support for .dur file format and animations ( closes #719 ) ( #833 )
...
Adds support for durdraw's .dur file format. Supports ascii, animations, and 16/256 color display.
Reviewed-on: https://codeberg.org/fairyglade/ly/pulls/833
Reviewed-by: AnErrupTion <anerruption@disroot.org >
Co-authored-by: hynak <hynak@noreply.codeberg.org >
Co-committed-by: hynak <hynak@noreply.codeberg.org >
2025-12-05 19:46:42 +01:00
AnErrupTion
3bfdc75a70
Add option to run command after inactivity delay ( closes #747 )
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2025-12-03 20:39:27 +01:00
AnErrupTion
1c99574f73
Add option to run command before UI is initialised ( closes #798 )
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2025-12-02 22:23:10 +01:00
radsammyt
6cb53b6e38
Refactor active_input field-jumping logic ( #873 )
...
Reviewed-on: https://codeberg.org/fairyglade/ly/pulls/873
Reviewed-by: AnErrupTion <anerruption@disroot.org >
Co-authored-by: radsammyt <radsammyt@noreply.codeberg.org >
Co-committed-by: radsammyt <radsammyt@noreply.codeberg.org >
2025-12-01 20:07:59 +01:00
AnErrupTion
d82fa82a87
Always add hostname last in the info line
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2025-11-30 23:50:39 +01:00
AnErrupTion
c2b3d794e8
Fix fallback UID range + add error if UID range not found
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2025-11-30 23:36:47 +01:00
AnErrupTion
e29bda3250
Add systemd-homed UID range
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2025-11-30 23:02:23 +01:00
AnErrupTion
4df2382698
Add possibility to disable auth_fails animation ( closes #835 )
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2025-11-30 22:19:38 +01:00
AnErrupTion
fe354a4809
Add fallback UID range options at compile-time
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2025-11-30 09:47:50 +01:00
AnErrupTion
8c964d9ce5
Don't crash when failing to crawl a session directory ( closes #870 )
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2025-11-30 09:30:33 +01:00
AnErrupTion
10854e643a
Don't crash when failing to parse arguments
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2025-11-30 09:14:10 +01:00
ebits
1980b2e479
Feature: Added option for hibernate between sleep and brightness down ( #867 ) ( closes #866 )
...
Reviewed-on: https://codeberg.org/fairyglade/ly/pulls/867
Reviewed-by: AnErrupTion <anerruption@disroot.org >
Co-authored-by: ebits <tspamiitesh@gmail.com >
Co-committed-by: ebits <tspamiitesh@gmail.com >
2025-11-28 19:05:17 +01:00
AnErrupTion
f0758d812e
Fix potential out of bounds issue when automatically changing session
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2025-11-19 22:15:07 +01:00
AnErrupTion
3c0c84d067
Fix build error
...
I really should test PRs before merging them, shouldn't I?
2025-11-15 20:02:59 +01:00
notiant
cc07c4870a
Add option to hide CapsLock and NumLock states ( #864 )
...
Reviewed-on: https://codeberg.org/fairyglade/ly/pulls/864
Reviewed-by: AnErrupTion <anerruption@disroot.org >
Co-authored-by: notiant <codeberg.cizj4@simplelogin.com >
Co-committed-by: notiant <codeberg.cizj4@simplelogin.com >
2025-11-15 16:32:42 +01:00
ferreo
0cf752f3b8
[Feature] Add autologin support ( #841 ) ( closes #200 )
...
This is the simplest change I could come up with to add working autologin, only bit I really dislike is the event but it seemed like the cleanest way without refactoring.
Co-authored-by: ferreo <harderthanfire@gmail.com >
Reviewed-on: https://codeberg.org/fairyglade/ly/pulls/841
Reviewed-by: AnErrupTion <anerruption@disroot.org >
Co-authored-by: ferreo <ferreo@noreply.codeberg.org >
Co-committed-by: ferreo <ferreo@noreply.codeberg.org >
2025-10-25 23:09:24 +02:00
AnErrupTion
38173d8557
Add edge margin to numlock & capslock
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2025-10-25 20:39:34 +02:00
AnErrupTion
95d1d9378c
Add edge margin to top-right clock
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2025-10-23 22:53:58 +02:00
AnErrupTion
6f62106fcc
Merge changes
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2025-10-23 22:16:24 +02:00
AnErrupTion
80c27224e9
Create xauth directory if it doesn't exist
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2025-10-23 22:15:16 +02:00
ebits
106f157a2c
[Feature] Add edge margin option ( #856 ) ( closes #848 )
...
Allows setting a balanced margin on all sides.
Reviewed-on: https://codeberg.org/fairyglade/ly/pulls/856
Reviewed-by: AnErrupTion <anerruption@disroot.org >
Co-authored-by: ebits <tspamiitesh@gmail.com >
Co-committed-by: ebits <tspamiitesh@gmail.com >
2025-10-23 19:07:54 +02:00
AnErrupTion
1c05664c85
Fix xauth file name UB
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2025-10-18 16:18:05 +02:00
AnErrupTion
1fbcb10110
Open new log file after every fork() where necessary
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2025-10-18 15:29:47 +02:00
AnErrupTion
44c8acff16
Open new log file handle after fork()
...
This would also need to be done in the
nested fork() calls.
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2025-10-18 12:03:48 +02:00
AnErrupTion
3faf3dec42
Fix login issue
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2025-10-18 08:41:36 +02:00
AnErrupTion
02f5aa702d
Implement /etc/login.defs in interop, TODO for FreeBSD
...
We should be able to parse the "minuid" and "maxuid"
values in /etc/rc.conf to get the UID range of the
system, with default values of 1000 to 32000 (as
they don't seem to be present by default).
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2025-10-18 00:28:12 +02:00
AnErrupTion
ed88458efd
Fix platform-specific bugs for FreeBSD compilation
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2025-10-18 00:05:53 +02:00
AnErrupTion
657daafec8
Fix crash after reading saved credentials for first time
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2025-10-17 22:58:50 +02:00
AnErrupTion
e36872baa6
Don't spam battery status error if already tried once
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2025-10-15 16:32:57 +02:00
Matthew Rothlisberger
1f2453f0fb
Disable battery status display by default ( #852 )
...
A couple things to fix in the new battery status display configuration.
I think this should be disabled by default. My reasoning:
- Historically a conservative approach is taken with new capabilities in Ly; even the clock is disabled by default
- The existing default creates a regression (error message) for anyone without `/sys/class/power_supply/BAT0` on their system (all non-portable PCs, and laptops that use a different identifier)
- The battery status check causes animations to momentarily hang at a regular interval
Other changes:
- Comment for `battery_id` aligned with similar config switch comments (description / useful information / effect of null setting)
- `battery_id` moved to its correct alphabetical position in the config file
- Setting aligned between `Config.zig` and `config.ini` (the prototypical config file should reflect the actual default)
- Configurations prefixed with `hide_` alphabetized
Reviewed-on: https://codeberg.org/fairyglade/ly/pulls/852
Reviewed-by: AnErrupTion <anerruption@disroot.org >
Co-authored-by: Matthew Rothlisberger <mattjrothlis@gmail.com >
Co-committed-by: Matthew Rothlisberger <mattjrothlis@gmail.com >
2025-10-15 13:58:04 +02:00
AnErrupTion
e577c454da
Fix merge conflict
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2025-10-14 21:10:17 +02:00
AnErrupTion
b3f1e91cf6
Remember last session for each user ( closes #619 )
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2025-10-14 21:05:54 +02:00