Commit Graph

505 Commits

Author SHA1 Message Date
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
816be7449f Update Repology URL
Signed-off-by: AnErrupTion <anerruption@disroot.org>
2025-11-19 22:19:12 +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
RomanPro100
68ec85f412 Add missing Russian translations (#863)
Reviewed-on: https://codeberg.org/fairyglade/ly/pulls/863
Reviewed-by: AnErrupTion <anerruption@disroot.org>
Co-authored-by: RomanPro100 <romanpro100@disroot.org>
Co-committed-by: RomanPro100 <romanpro100@disroot.org>
2025-11-09 17:35:26 +01:00
Corey Newton
1537addd67 Change default session log directory to ~/.local/state (#859)
This addresses #808 and #823 conclusively for all parties.
- It requires no additional directory creation.
- It does not impact users who do not have a problem.
- It adds additional documentation detail in both the bug template and
the readme to help users who *are* having a problem.
- Fulfills the spirit of the [XDG Spec(https://specifications.freedesktop.org/basedir-spec/latest)
but not in practice as `$XDG_CONFIG_HOME` and `$HOME` and the associated
logic are not implemented. `~/.local/state` is the fallback location.

In particular, the spec indicates:
> It may contain: actions history (**logs**, history, …)

Reviewed-on: https://codeberg.org/fairyglade/ly/pulls/859
Reviewed-by: AnErrupTion <anerruption@disroot.org>
Co-authored-by: Corey Newton <corey.newton@zenoprax.com>
Co-committed-by: Corey Newton <corey.newton@zenoprax.com>
2025-11-05 21:57:10 +01:00
Piotr Ginał
2da3648179 Add missing Polish translations (#861)
Reviewed-on: https://codeberg.org/fairyglade/ly/pulls/861
Reviewed-by: AnErrupTion <anerruption@disroot.org>
Co-authored-by: Piotr Ginał <ginal.piotr11@gmail.com>
Co-committed-by: Piotr Ginał <ginal.piotr11@gmail.com>
2025-11-03 19:45:59 +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
15c78c838a Update screenshot (for real this time)
Signed-off-by: AnErrupTion <anerruption@disroot.org>
2025-10-25 20:51:51 +02:00
AnErrupTion
4a486bd876 Update screenshot
Signed-off-by: AnErrupTion <anerruption@disroot.org>
2025-10-25 20:49:56 +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
4171e29995 Fix build error when runit service symlink already exists
Signed-off-by: AnErrupTion <anerruption@disroot.org>
2025-10-23 22:15:43 +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
ec16ad5dfc Remove mention of config.tty option in README (fixes #854)
Signed-off-by: AnErrupTion <anerruption@disroot.org>
2025-10-21 17:36:42 +02:00
AnErrupTion
5f22173b91 Mention only Ly v1.2.0 and above are supported in issue template
Signed-off-by: AnErrupTion <anerruption@disroot.org>
2025-10-18 19:10:44 +02:00
AnErrupTion
4bc405f239 Start Ly v1.3.0 development cycle
Signed-off-by: AnErrupTion <anerruption@disroot.org>
2025-10-18 18:12:16 +02:00
AnErrupTion
c4b68364ef Add FreeBSD-specific PAM file
Signed-off-by: AnErrupTion <anerruption@disroot.org>
v1.2.0
2025-10-18 17:34:44 +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
bfb3f925d9 Use shutdown -p now on FreeBSD, update instructions
Signed-off-by: AnErrupTion <anerruption@disroot.org>
2025-10-18 13:47:52 +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
541eae5311 Update init service for FreeBSD
Signed-off-by: AnErrupTion <anerruption@disroot.org>
2025-10-18 11:23:57 +02:00
AnErrupTion
3faf3dec42 Fix login issue
Signed-off-by: AnErrupTion <anerruption@disroot.org>
2025-10-18 08:41:36 +02:00
AnErrupTion
52d29bbd47 Fix FreeBSD installation in README
Signed-off-by: AnErrupTion <anerruption@disroot.org>
2025-10-18 00:46:56 +02:00
AnErrupTion
a3a8f11575 Add basic FreeBSD service, change default fallback TTY to 2
Signed-off-by: AnErrupTion <anerruption@disroot.org>
2025-10-18 00:46:09 +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
8df9603188 Install SysVinit service as an executable
Signed-off-by: AnErrupTion <anerruption@disroot.org>
2025-10-17 23:12:21 +02:00
AnErrupTion
412994775b Add SysVinit service (closes #224)
Signed-off-by: AnErrupTion <anerruption@disroot.org>
2025-10-17 23:10:52 +02:00
AnErrupTion
bb669c239c Remove config TTY options in OpenRC & runit services
Signed-off-by: AnErrupTion <anerruption@disroot.org>
2025-10-17 23:08:15 +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
AnErrupTion
4738ca81a7 Merge changes
Signed-off-by: AnErrupTion <anerruption@disroot.org>
2025-10-15 14:10:00 +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
76da16904f Update French translation
Signed-off-by: AnErrupTion <anerruption@disroot.org>
2025-10-14 21:17:58 +02:00
AnErrupTion
e577c454da Fix merge conflict
Signed-off-by: AnErrupTion <anerruption@disroot.org>
2025-10-14 21:10:17 +02:00
AnErrupTion
09c2cfb74d Remove file that was added by mistake
Signed-off-by: AnErrupTion <anerruption@disroot.org>
2025-10-14 21:07:42 +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
AnErrupTion
aef1dd9c1a Add more logs when logging into an X11 session
Signed-off-by: AnErrupTion <anerruption@disroot.org>
2025-10-14 20:09:39 +02:00
AnErrupTion
3d977d2ff7 Fix compatibility with Zig 0.15.2
Signed-off-by: AnErrupTion <anerruption@disroot.org>
2025-10-14 20:05:50 +02:00
AnErrupTion
a34a5a97bd Execute shell in case exec_cmd is null
Signed-off-by: AnErrupTion <anerruption@disroot.org>
2025-10-14 20:02:55 +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
4f4855b5e9 Implement dummy active TTY getter for FreeBSD
Signed-off-by: AnErrupTion <anerruption@disroot.org>
2025-10-12 22:47:03 +02:00
Galtrhan
1e2faad0f8 Add Latvian language translation (#847)
Reviewed-on: https://codeberg.org/fairyglade/ly/pulls/847
Reviewed-by: AnErrupTion <anerruption@disroot.org>
Co-authored-by: Galtrhan <galtrhan@gmail.com>
Co-committed-by: Galtrhan <galtrhan@gmail.com>
2025-10-12 20:57:28 +02:00