ly/res
MartorSkull fdf241bed5 Add option to move the box relative to the screen size (#964)
## What are the changes about?

Added a new option in the configuration file for moving the box relative to the screen size.

```
box_h_position = 0.5
box_v_position = 0.5
```

The big clock is centered relative to the box. In the cases where it would be outside of the screen, it moves the box to fit in the screen.

## What existing issue does this resolve?

Add more options for personalization

## Examples

Normal usage:
```
box_h_position = 0.15
box_v_position = 0.35
```
![image](/attachments/6595dfa9-aade-45f4-887c-e5db7f8d5a89)

Clock would be outside of the screen vertically:
```
box_h_position = 0.15
box_v_position = -1.0
```
![image](/attachments/0d6bdcc4-e9dd-4671-a65d-b8b9f063ffb6)

Clock would be outside of the screen horizontally and vertically:
```
box_h_position = -1.0
box_v_position = -1.0
input_len = 3
```
![image](/attachments/630b07fd-b400-4e71-8a67-1baf3a6700a0)

Clock would be outside of the screen horizontally and vertically on the bottom left of the screen:
```
box_h_position = 2.0
box_v_position = 2.0
input_len = 3
```
![image](/attachments/28902967-11a8-4c02-a4c9-1b92f9a728ee)

## What existing issue does this resolve?

_Replace this with a reference to an existing issue, or N/A if there is none_

## Pre-requisites

- [x] I have tested & confirmed the changes work locally
- [x] I have run `zig fmt` throughout my changes

Co-authored-by: AnErrupTion <anerruption+codeberg@disroot.org>
Reviewed-on: https://codeberg.org/fairyglade/ly/pulls/964
Reviewed-by: AnErrupTion <anerruption+codeberg@disroot.org>
2026-05-01 20:09:34 +02:00
..
custom-sessions custom-sessions/README: remove extraneous comma (#927) 2026-02-08 13:16:25 +01:00
lang Update French translation 2026-03-28 12:09:41 +01:00
ly-runit-service Remove config TTY options in OpenRC & runit services 2025-10-17 23:08:15 +02:00
ly-s6 Fix dinit & s6 service + don't hardcode paths in runit service 2025-08-29 02:18:11 +02:00
pam.d [Feature] Add autologin support (#841) (closes #200) 2025-10-25 23:09:24 +02:00
config.ini Add option to move the box relative to the screen size (#964) 2026-05-01 20:09:34 +02:00
example.dur [dur] Add support for alignments and negative offsets + Ly logo (#893) 2026-01-25 23:08:42 +01:00
ly-dinit Fix dinit & s6 service + don't hardcode paths in runit service 2025-08-29 02:18:11 +02:00
ly-freebsd-wrapper Update init service for FreeBSD 2025-10-18 11:23:57 +02:00
ly-kmsconvt@.service Use the unifont engine for KMSCON 2026-02-07 10:43:08 +01:00
ly-openrc Remove config TTY options in OpenRC & runit services 2025-10-17 23:08:15 +02:00
ly-sysvinit Add SysVinit service (closes #224) 2025-10-17 23:10:52 +02:00
ly@.service Escape TTY in systemd service (closes #889) (#890) 2025-12-18 12:17:00 +01:00
setup.sh Possibly fix .Xresources not being loaded (closes #600) 2025-03-06 20:06:28 +01:00
startup.sh Make default startup script more compatible 2026-02-12 17:10:52 +01:00