4 ms·
Nice idea! That might come in handy for desktops. Note that if anyone wants to do the same thing on macOS or Linux: 1. macOS: Using the Lunar CLI (https://lun
by alin23 4y ago
Nice idea! That might come in handy for desktops.
Note that if anyone wants to do the same thing on macOS or Linux:
1. macOS: Using the Lunar CLI (https://lunar.fyi/#cli https://lunar.fyi/#cli) you can run
lunar displays external power off
2. Linux: Using ddcutil (https://www.ddcutil.com https://www.ddcutil.com) you can run
ddcutil setvcp 0xD6 5
The shutdown event can be caught using launchd on macOS (https://github.com/freedev/macosx-script-boot-shutdown https://github.com/freedev/macosx-script-boot-shutdown) and using systemd on Linux (https://askubuntu.com/a/1335024 https://askubuntu.com/a/1335024).