diff --git a/brightness-by-daylight.sh b/brightness-by-daylight.sh index c67b9bf..9e70f2a 100644 --- a/brightness-by-daylight.sh +++ b/brightness-by-daylight.sh @@ -12,9 +12,16 @@ # Add the following to crontab to make it run automatically and properly -# @reboot && crontab +# @reboot crontab # 0 0,12 * * * crontab +# It might also be a good idea to add this script's location to your DE's autostart list, or to '.profile' so that it launches on system login + +# To run this script whenever and HDMI cable is connected, copy this file to /usr/local/bin/ and run 'chmod +x /usr/local/bin/brightness-by-daylight.sh' +# Then create the file /etc/udev/rules.d/89-hdmi_brightness.rules with the following content : +# KERNEL=="card0", SUBSYSTEM=="drm", ACTION=="add", RUN+="/usr/local/bin/brightness-by-daylight.sh" +# Then run 'udevadm control --reload-rules' and reboot + confdir="/home/sintan/.config" if test -f $confdir/latlong.toml ; then