dark dim fixes
This commit is contained in:
13
dim
13
dim
@@ -2,12 +2,17 @@
|
||||
#dim: control display brightness from terminal
|
||||
#usage: dim x
|
||||
#where x is an integer for a new display brightness within the [min,max] range of [0,100]
|
||||
#user should be part of the video user group to run this without sudo
|
||||
#James B. Ackman 2019-02-06T15:55:20-08:00
|
||||
#
|
||||
# Check kernel backlight driver names on your machine: `ls -l /sys/class/backlight/*`
|
||||
# e.g. acpi_video0 nv_backlight or intel_backlight
|
||||
# user should be part of the video user group to run this without sudo and a udev rule with correct driver name should be added as `/etc/udev/rules.d/backlight.rules`
|
||||
#ACTION=="add", SUBSYSTEM=="backlight", KERNEL=="intel_backlight", RUN+="/bin/chgrp video /sys/class/backlight/%k/brightness"
|
||||
#ACTION=="add", SUBSYSTEM=="backlight", KERNEL=="intel_backlight", RUN+="/bin/chmod g+w /sys/class/backlight/%k/brightness"
|
||||
|
||||
# Then set following var to your backlight driver name
|
||||
backlightDriver="intel_backlight"
|
||||
|
||||
#check kernel backlight driver names on your machine: `ls -l /sys/class/backlight/*`
|
||||
#then set following var, e.g. acpi_video0 nv_backlight or intel_backlight
|
||||
backlightDriver="acpi_video0"
|
||||
set -e #exit if an error
|
||||
percentValue=$1
|
||||
|
||||
|
||||
Reference in New Issue
Block a user