Code: Select all
gdbus monitor -y -d org.tizen.system.deviced | awk '{if(/lcdon/){system("echo execute_script_on")};if(/lcdoff/){system("echo execute_script_off")}}'
and of course replacing "echo execute_script" by path to your script ^^
Code: Select all
gdbus monitor -y -d org.tizen.system.deviced | awk '{if(/lcdon/){system("echo execute_script_on")};if(/lcdoff/){system("echo execute_script_off")}}'