Map keycode e033 (or any other key you choose) to the following command that toggles the sensor on or off:
echo $((1 - $(cat /sys/devices/platform/hp-wmi/als))) | sudo tee -a /sys/devices/platform/hp-wmi/als
In the void is virtue, and no evil. Wisdom has existence, principle has existence, The Way has existence, spirit is nothingness.
No comments:
Post a Comment