diff --git a/states/desktop/common-xwayland.sls b/states/desktop/common-xwayland.sls index 31ae059..9e2d4b4 100644 --- a/states/desktop/common-xwayland.sls +++ b/states/desktop/common-xwayland.sls @@ -15,3 +15,9 @@ common-X: {% if salt.grains.get('lsb_distrib_release', 12)|int <= 11 %} - firmware-linux-nonfree {% endif %} + +/etc/X11/xorg.conf.d/dpms.conf: + file.managed: + - source: salt://desktop/xorg.d/dpms.conf + - require: + - pkg: common-X diff --git a/states/desktop/xorg.d/dpms.conf b/states/desktop/xorg.d/dpms.conf new file mode 100644 index 0000000..c9b70f5 --- /dev/null +++ b/states/desktop/xorg.d/dpms.conf @@ -0,0 +1,16 @@ +Section "ServerLayout" + Identifier "X.org Configured" + Option "StandbyTime" "0" + Option "SuspendTime" "0" + Option "OffTime" "0" + Option "BlankTime" "0" +EndSection + +Section "Monitor" + Identifier "Monitor0" + Option "DPMS" "false" +EndSection + +Section "Extensions" + Option "DPMS" "Disable" +EndSection