mirror of
https://github.com/fairyglade/ly.git
synced 2025-12-21 03:34:54 +00:00
Add brightness control support with brightnessctl (#626)
* Added key binds to control brightness I added keybinds to control brightness with brightnessctl. F5 to decrease brightness. f6 to increase brightness. * Update src/main.zig Co-authored-by: ShiningLea <anerruption@disroot.org> * added proper keybinds and configs for brightness control * Update src/main.zig Co-authored-by: ShiningLea <anerruption@disroot.org> * code improvement and changes * updated en.ini --------- Co-authored-by: ShiningLea <anerruption@disroot.org>
This commit is contained in:
@@ -51,3 +51,7 @@ xinitrc: ?[]const u8 = "~/.xinitrc",
|
||||
x_cmd_setup: []const u8 = build_options.data_directory ++ "/xsetup.sh",
|
||||
xauth_cmd: []const u8 = "/usr/bin/xauth",
|
||||
xsessions: []const u8 = "/usr/share/xsessions",
|
||||
brightness_down_key: []const u8 = "F5",
|
||||
brightness_up_key: []const u8 = "F6",
|
||||
brightnessctl: []const u8 = "/usr/bin/brightnessctl",
|
||||
brightness_change: []const u8 = "10",
|
||||
|
||||
@@ -2,6 +2,7 @@ authenticating: []const u8 = "authenticating...",
|
||||
capslock: []const u8 = "capslock",
|
||||
err_alloc: []const u8 = "failed memory allocation",
|
||||
err_bounds: []const u8 = "out-of-bounds index",
|
||||
err_brightness_change: []const u8 = "failed to change brightness",
|
||||
err_chdir: []const u8 = "failed to open home folder",
|
||||
err_console_dev: []const u8 = "failed to access console",
|
||||
err_dgn_oob: []const u8 = "log message",
|
||||
@@ -54,3 +55,5 @@ sleep: []const u8 = "sleep",
|
||||
wayland: []const u8 = "wayland",
|
||||
xinitrc: [:0]const u8 = "xinitrc",
|
||||
x11: []const u8 = "x11",
|
||||
brightness_down: []const u8 = "decrease brightness",
|
||||
brightness_up: []const u8 = "increase brightness",
|
||||
|
||||
Reference in New Issue
Block a user