Add flasher credential provisioning, LUKS2 FDE, LED fixes, and docs
This commit is contained in:
1 parent
2706b9a901
commit
b7dca4f15f
49 files changed
+1524
-183
No files matched your search
@@ -128,7 +128,7 @@ static void on_draw(gemui_app_t *app, cairo_t *cr, int w, int h, void *ud) {
|
||||
gemui_draw_text(cr, t, (gemui_rect_t){pad, 472, cw, 40},
|
||||
"AW9120 LED Strip Indicator", -1, true, GEMUI_ALIGN_LEFT, t->fg_bright);
|
||||
int lw = (cw - 36) / 4;
|
||||
static const char *leds[4] = {"Off", "Cyan Pulse", "Green OK", "Amber Warn"};
|
||||
static const char *leds[4] = {"Off", "Cyan", "Green OK", "Amber Warn"};
|
||||
for (int i = 0; i < 4; i++) {
|
||||
gemui_draw_button(app, cr, (gemui_rect_t){pad + i * (lw + 12), 518, lw, 76},
|
||||
leds[i], HIT_LED, i, false, false, false);
|
||||
@@ -195,9 +195,9 @@ static void on_ptr(gemui_app_t *app, int type, int x, int y, unsigned int btn, v
|
||||
gemui_show_toast(app, "Updated power profile", 1600);
|
||||
gemui_request_redraw(app);
|
||||
} else if (hit->id == HIT_LED) {
|
||||
static const char *lcmds[4] = {"off", "rgb 0 40 60", "rgb 0 64 16", "rgb 64 40 0"};
|
||||
gemui_unix_cmd("/run/geminux/leds.sock", lcmds[hit->val], NULL, 0);
|
||||
gemui_show_toast(app, "Updated AW9120 LED state", 1400);
|
||||
static const char *lcmds[4] = {"off", "rgb 0 40 64", "rgb 0 64 8", "rgb 160 16 0"};
|
||||
int lrc = gemui_unix_cmd("/run/geminux/leds.sock", lcmds[hit->val], NULL, 0);
|
||||
gemui_show_toast(app, lrc == 0 ? "Updated AW9120 LED strip" : "LED daemon unavailable", 1400);
|
||||
} else if (hit->id == HIT_LOCK) {
|
||||
const char *cmd[] = {"geminux-lock", NULL};
|
||||
gemui_spawn_detached(cmd);
|
||||
|
||||
Reference in new issue
Block a user