Added script that changes brightness based on keycodes - can use to find how to manually map keycodes for my keybd
This commit is contained in:
parent
cf60a78ddd
commit
012dc98638
1 changed files with 11 additions and 0 deletions
11
bright_up.sh
Normal file
11
bright_up.sh
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
#!/bin/sh
|
||||
|
||||
#Bright_up.sh hopefully this works
|
||||
|
||||
current_brightness=$(cat /sys/class/backlight/intel_backlight/brightness)
|
||||
max_brightness=$(cat /sys/class/backlight/intel_backlight/max_brightness)
|
||||
|
||||
step=$(($max_brightness * 5/100))
|
||||
|
||||
current_brightness=$(echo "$step + $current_brightness" | bc)
|
||||
echo $current_brightness > /sys/class/backlight/intel_backlight/brightness
|
||||
Loading…
Add table
Add a link
Reference in a new issue