Refactor brightness handling code

Signed-off-by: AnErrupTion <anerruption@disroot.org>
This commit is contained in:
AnErrupTion
2024-08-06 18:40:24 +02:00
parent f0869f0e13
commit 096b1a7d44
3 changed files with 11 additions and 21 deletions

View File

@@ -14,10 +14,10 @@ bigclock: bool = false,
blank_box: bool = true,
border_fg: u16 = 8,
box_title: ?[]const u8 = null,
brightness_change: []const u8 = "10",
brightness_down_cmd: [:0]const u8 = build_options.prefix_directory ++ "/bin/brightnessctl -q s 10%-",
brightness_down_key: []const u8 = "F5",
brightness_up_cmd: [:0]const u8 = build_options.prefix_directory ++ "/bin/brightnessctl -q s +10%",
brightness_up_key: []const u8 = "F6",
brightnessctl: [:0]const u8 = build_options.prefix_directory ++ "/bin/brightnessctl",
clear_password: bool = false,
clock: ?[:0]const u8 = null,
cmatrix_fg: u16 = 3,