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:
tubi16
2024-07-04 14:17:56 +03:00
committed by GitHub
parent cbe7b37564
commit dc8d143fac
6 changed files with 52 additions and 0 deletions

View File

@@ -160,3 +160,8 @@ xauth_cmd = /usr/bin/xauth
# Xorg desktop environments
xsessions = /usr/share/xsessions
# Brightness control
brightness_down_key = F5
brightness_up_key = F6
Brightness_change = 10

View File

@@ -2,6 +2,7 @@ authenticating = authenticating...
capslock = capslock
err_alloc = failed memory allocation
err_bounds = out-of-bounds index
err_brightness_change = failed to change brightness
err_chdir = failed to open home folder
err_console_dev = failed to access console
err_dgn_oob = log message