Fix leds getting unset when closing the program

This commit is contained in:
dec05eba
2025-11-08 13:24:40 +01:00
parent f017f04bdc
commit 2506750243
6 changed files with 105 additions and 18 deletions

View File

@@ -4,6 +4,14 @@
/* C stdlib */
#include <stdbool.h>
typedef struct {
/* These are set to -1 if not supported */
int scroll_lock_brightness;
int num_lock_brightness;
int caps_lock_brightness;
} ggh_leds;
bool set_leds(const char *led_name, bool enabled);
bool get_leds(int event_number, ggh_leds *leds);
#endif /* LEDS_H */