1
0
Fork 0
dotfiles/bin/log-display-standby-state

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