dotfiles/bin/log-display-standby-state
2023-02-22 15:33:55 +01:00

6 lines
119 B
Bash
Executable File

#!/bin/sh
DISPLAY=:0.0 xset -q | grep -q "Monitor is Off"
echo $? > $HOME/.cache/node-exporter/display-standby-state