mirror of
https://github.com/SinTan1729/random.git
synced 2024-12-25 20:58:37 -06:00
Improve brightness-by-daylight.sh autolaunch
This commit is contained in:
parent
a12dc70eda
commit
8b3eb8aa1d
1 changed files with 8 additions and 1 deletions
|
@ -12,9 +12,16 @@
|
|||
|
||||
# Add the following to crontab to make it run automatically and properly
|
||||
|
||||
# @reboot <location-of-this-script> && <location-of-this-script> crontab
|
||||
# @reboot <location-of-this-script> crontab
|
||||
# 0 0,12 * * * <location-of-this-script> 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
|
||||
|
|
Loading…
Reference in a new issue