mirror of
https://github.com/zedsalim/debian-z.git
synced 2025-12-09 20:59:29 +00:00
Initial Commit
This commit is contained in:
parent
f18da1cc25
commit
a5bc6b13c5
96 changed files with 6936 additions and 0 deletions
24
config/scripts/brightness-control.sh
Executable file
24
config/scripts/brightness-control.sh
Executable file
|
|
@ -0,0 +1,24 @@
|
|||
#!/bin/bash
|
||||
|
||||
# This script handles brightness control using the brightnessctl utility.
|
||||
|
||||
# Configuration:
|
||||
# - Use the 'brightnessctl -l' command to identify the backlight control directory specific to your system.
|
||||
# - Update the 'intel_backlight' part in the decrease_brightness() and increase_brightness() functions with your specific backlight control directory.
|
||||
|
||||
function decrease_brightness() {
|
||||
brightnessctl -d intel_backlight set 10%-
|
||||
}
|
||||
|
||||
function increase_brightness() {
|
||||
brightnessctl -d intel_backlight set 10%+
|
||||
}
|
||||
|
||||
case "$1" in
|
||||
XF86MonBrightnessDown)
|
||||
decrease_brightness
|
||||
;;
|
||||
XF86MonBrightnessUp)
|
||||
increase_brightness
|
||||
;;
|
||||
esac
|
||||
Loading…
Add table
Add a link
Reference in a new issue