summaryrefslogtreecommitdiffstats
path: root/disable-dpms
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2023-12-11 23:41:53 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2023-12-11 23:41:53 +0100
commitb6f5ed0197978bfa148a5355860378554a99f3a2 (patch)
treeda17c185ff823fcade75319690ad712c5f83b2ce /disable-dpms
parentfd090dde3027ccf709a3394755ef608d2cbef457 (diff)
downloadbin-b6f5ed0197978bfa148a5355860378554a99f3a2.zip
bin-b6f5ed0197978bfa148a5355860378554a99f3a2.tar.gz
add disable-dpms
Diffstat (limited to 'disable-dpms')
-rwxr-xr-xdisable-dpms9
1 files changed, 9 insertions, 0 deletions
diff --git a/disable-dpms b/disable-dpms
new file mode 100755
index 0000000..c02aae7
--- /dev/null
+++ b/disable-dpms
@@ -0,0 +1,9 @@
+#! /bin/bash
+
+export DISPLAY=${DISPLA:-0.0}
+
+xset -dpms # disable DPMS
+xset s off # disable the screen saver
+xset s noblank # disable screen blanking
+xset s noexpose # lesser sceensaver disabling
+xset s 0 0 # disable screensaver and blanking