dotfiles/acpi_hotkeys/display.sh

14 lines
165 B
Bash
Raw Permalink Normal View History

2019-07-11 16:09:05 +02:00
#!/bin/bash
if xset -q | grep -q "DPMS is Disabled"
then
xset +dpms
fi
if xset -q | grep -q "Monitor is On"
then
xset dpms force off
else
xset dpms force on
fi