Commit Graph

29 Commits

Author SHA1 Message Date
RadsammyT
7a8d913531 Feature: Add custom command & label support (#945)
## What are the changes about?

Adds customizable commands and labels to ly.
Solves https://codeberg.org/fairyglade/ly/issues/905.

Since Ly doesn't use INI headers. I use them exclusively for declarations of custom commands and labels.

### Commands

Bind a keybind to a command, and add a hint to the HUD. Useful for use cases like display brightness, switching between GPUs, etc.

Supports localization in the `name` field only. ex: where `lang = es`: `$brightness_up` => `bajar brillo`

Declared in config.ini with the following:

```ini
[cmd:F8]
name = custom command 2
cmd = touch /tmp/ly.gaming
```

### Labels

Add a label to the HUD. As specified in #905.
The text of the label corresponds to the output of the command specified in `[lbl:NAME]`.
Only shows the first line of the output.

Declared in config.ini with the following:

```ini
[lbl:kernel]
cmd = uname -srn
refresh = 0
```

Example to add to the config.ini:
```ini
# Declare a command with the F8 binding.
[cmd:F8]
#The name of the command to show up in Ly.
name = custom command
cmd = touch /tmp/ly.gaming

# Declare a label with an ID. This ID should be unique across all labels.
[lbl:kernel]
cmd = uname -srn
# In frames, the time to re-run the command and update the label. If 0, only run once- do not refresh.
refresh = 0

# Once you're done setting up labels and commands, add an empty header
# below to continue configurating the rest of Ly.
# Put other settings not belonging to custom commands/labels below here.
[]

```

## Pre-requisites

- [x] I have tested & confirmed the changes work locally

![image](/attachments/f9373ac9-567e-4f47-987c-1df6f4ee0d84)

Reviewed-on: https://codeberg.org/fairyglade/ly/pulls/945
Reviewed-by: AnErrupTion <anerruption+codeberg@disroot.org>
Co-authored-by: RadsammyT <radsammyt@gmail.com>
Co-committed-by: RadsammyT <radsammyt@gmail.com>
2026-03-27 17:15:49 +01:00
Luna
3a4109eb2d Add toggle visibility to password (#938)
## What are the changes about?

I have add a keybinding to toggle the visibility of the password

## 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/938
Reviewed-by: AnErrupTion <anerruption+codeberg@disroot.org>
Co-authored-by: Luna <luna-39@noreply.codeberg.org>
Co-committed-by: Luna <luna-39@noreply.codeberg.org>
2026-03-17 12:27:23 +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
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
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
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
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
AnErrupTion
7a0520687d Add fallback TTY option (closes #838)
Signed-off-by: AnErrupTion <anerruption@disroot.org>
2025-09-29 21:30:51 +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
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
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
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
ce17d346e8 Remove lang.err_console_dev
Signed-off-by: AnErrupTion <anerruption@disroot.org>
2025-07-08 12:45:47 +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
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
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
d12fa27168 Added new error and updated French translation
Signed-off-by: AnErrupTion <anerruption@disroot.org>
2025-03-06 19:41:05 +01:00
Moritz Reinel
06e283961d add helper script for keeping lang files in sync with Lang.zig 2024-10-12 21:26:31 +02:00
lolicon0930
42bf929756 Add option to change shutdown/reboot keys (#487)
Include options in the configuration to change which function keys to use for shutdown and reboot.
Fix config.map_len size in src/config.c.
Add missing defaults in config_defaults() in src/config.c.
2023-06-20 13:22:38 +02:00
Vladyslav Prudius
c03ec1d15b Ukrainian and Russian localizations fixing (#503)
* Fix Ukrainian translation

* Fix Russian translation
2023-06-14 21:35:36 +02:00
AnErrupTion
e158bb5e9d Remove semicolons in language files 2022-06-03 10:13:54 +02:00
USBashka
6023565814 Fix ru translation
Replaced Е with Ё where needed
2021-12-16 23:11:36 +04:00
tyusha0
52d24304f8 Add Russian translation (#197)
Add Russian translation.
2020-07-27 18:10:48 +02:00