I am working on setting up sensorsd so that i can automatically turn on my display when docking my laptop, but on doing so sensorsd does not execute my shell script. In syslogd sensord shows the sensors being tripped so i am confused on why the shell script will no execute.
#/etc/sensorsd.conf hw.sensors.acpidock0.indicator0:command=/etc/sensorsd/dock %2 #/etc/sensorsd/dock #!/bin/sh if [ $1 = "On" ] then xrandr --output VGA-1 --auto --right-of LVDS-1 elif [ $1 = "Off" ] then xrandr --output VGA-1 --off fi