Commit graph

357 commits

Author SHA1 Message Date
RadsammyT
b704640a85
zig fmt run 2026-03-21 15:47:48 -04:00
RadsammyT
bf678017ff
pass: no lid counter 2026-03-21 11:36:00 -04:00
RadsammyT
0fac957913
Merge branch 'master' into custom-commands 2026-03-21 11:27:11 -04:00
RadsammyT
eeefc1657c
labels positioned regardless of hiding key hints 2026-03-21 11:24:19 -04:00
AnErrupTion
60e3380375
Switch to single-instance Widget model
And make widget() functions return pointers to widgets instead of just
widgets

Signed-off-by: AnErrupTion <anerruption@disroot.org>
2026-03-21 16:19:33 +01:00
RadsammyT
3c54c1613a
No more lids 2026-03-21 11:08:00 -04:00
RadsammyT
7d42254ee5
Merge branch 'master' into custom-commands 2026-03-19 17:42:38 -04:00
Mr. Cat
dda56eab37 Fix compilation error when building without X11 support (#947)
## What are the changes about?

Add an argument to info log function to fix compiler error.

## What existing issue does this resolve?

If building with `zig build -Denable_x11_support=false` there is a compiler error about a missing argument.
```
install
└─ install ly
   └─ compile exe ly Debug native 1 errors
src/main.zig:730:27: error: member function expected 3 argument(s), found 2
        try state.log_file.info(
            ~~~~~~~~~~~~~~^~~~~
ly-core/src/LogFile.zig:26:5: note: function declared here
pub fn info(self: *LogFile, category: []const u8, comptime message: []const u8, args: anytype) !void {
~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
referenced by:
    callMain [inlined]: /home/oskar/.cache/zig/p/N-V-__8AACFNhBSaulceFT2Wx6Mx-ycGtZh7CEztyVdtX2jW/lib/std/start.zig:627:37
    callMainWithArgs [inlined]: /home/oskar/.cache/zig/p/N-V-__8AACFNhBSaulceFT2Wx6Mx-ycGtZh7CEztyVdtX2jW/lib/std/start.zig:587:20
    main: /home/oskar/.cache/zig/p/N-V-__8AACFNhBSaulceFT2Wx6Mx-ycGtZh7CEztyVdtX2jW/lib/std/start.zig:602:28
    1 reference(s) hidden; use '-freference-trace=4' to see all references
```

## Pre-requisites

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

Reviewed-on: https://codeberg.org/fairyglade/ly/pulls/947
Reviewed-by: AnErrupTion <anerruption+codeberg@disroot.org>
Co-authored-by: Mr. Cat <mrcat@posteo.com>
Co-committed-by: Mr. Cat <mrcat@posteo.com>
2026-03-18 20:18:45 +01:00
RadsammyT
f988f0294a
Review part 3 2026-03-18 14:33:29 -04:00
RadsammyT
6aa4a12fd2
Review part 2 2026-03-18 08:34:09 -04:00
RadsammyT
2e9e814dcb
Review part 1 2026-03-18 08:20:24 -04:00
RadsammyT
dc86dbe423
revert stray gpa change 2026-03-17 19:31:40 -04:00
RadsammyT
1be98f2163
no panic 2026-03-17 19:24:03 -04:00
RadsammyT
396df52ced
Merge branch 'master' into custom-commands 2026-03-17 19:10:31 -04:00
RadsammyT
a8ea7cc69a
hide my crimes against this codebase 2026-03-17 19:10:01 -04:00
AnErrupTion
9c50297059
Fix insert mode hack + fix bugs
Signed-off-by: AnErrupTion <anerruption@disroot.org>
2026-03-17 23:58:06 +01:00
RadsammyT
45db4ff02c
more res/config.ini stuff 2026-03-17 18:40:01 -04:00
RadsammyT
a3728e3bb1
fix off-by-one offset issue 2026-03-17 18:15:26 -04:00
RadsammyT
80c3a7ea0f
mergldlsl 2026-03-17 18:09:02 -04:00
RadsammyT
eeb7a0ab77
implement localization 2026-03-17 18:06:06 -04:00
AnErrupTion
acac884cfe
Add support for local keybinds
Signed-off-by: AnErrupTion <anerruption@disroot.org>
2026-03-17 22:58:39 +01:00
RadsammyT
512ef3732a
Merge branch 'master' into custom-commands 2026-03-17 17:23:38 -04:00
AnErrupTion
a89c918c5d
Move back custom widgets into main project
Signed-off-by: AnErrupTion <anerruption@disroot.org>
2026-03-17 21:59:24 +01:00
AnErrupTion
64539f4342
Split UI code into ly-ui library
Signed-off-by: AnErrupTion <anerruption@disroot.org>
2026-03-17 21:44:33 +01:00
radsammyt
2155c3723f Merge branch 'master' into custom-commands 2026-03-17 21:34:06 +01:00
RadsammyT
037f3020a6
further cleanup 2026-03-17 16:08:06 -04:00
AnErrupTion
93696a6b30
Remove unused import + add TODO
Signed-off-by: AnErrupTion <anerruption@disroot.org>
2026-03-17 21:03:59 +01:00
RadsammyT
d452fee5ef
reword panics, label errors, config.ini tidbit 2026-03-17 15:48:43 -04:00
AnErrupTion
4f26eeada0
Fix double spacing issue in labels
Signed-off-by: AnErrupTion <anerruption@disroot.org>
2026-03-17 20:10:47 +01:00
AnErrupTion
83e98a185f
Add TODO in main.zig
Signed-off-by: AnErrupTion <anerruption@disroot.org>
2026-03-17 20:01:47 +01:00
AnErrupTion
128dcb16f8
Merge branch 'master' of codeberg.org:fairyglade/ly
Signed-off-by: AnErrupTion <anerruption@disroot.org>
2026-03-17 19:58:58 +01:00
RadsammyT
0f1c506c91
error handling for labels 2026-03-17 14:29:22 -04:00
RadsammyT
1031ba08ab
fuck 2026-03-17 09:15:16 -04: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
RadsammyT
ecda6104ac
custom info: less buggy 2026-03-16 20:54:00 -04:00
RadsammyT
2a31f19baa
wtf 2026-03-10 14:37:52 -04:00
RadsammyT
e5991abe13
do memory freeing for CustomCommands 2026-03-10 14:37:52 -04:00
RadsammyT
faefe686dc
custom commands: very buggy first impl 2026-03-10 14:37:52 -04:00
AnErrupTion
9cde291ac7
Remove unused termbox alias
Signed-off-by: AnErrupTion <anerruption@disroot.org>
2026-02-27 22:19:09 +01:00
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