aboutsummaryrefslogtreecommitdiff
path: root/.local/share/bin/caffeine
diff options
context:
space:
mode:
Diffstat (limited to '.local/share/bin/caffeine')
-rwxr-xr-x.local/share/bin/caffeine10
1 files changed, 7 insertions, 3 deletions
diff --git a/.local/share/bin/caffeine b/.local/share/bin/caffeine
index eced861..9901426 100755
--- a/.local/share/bin/caffeine
+++ b/.local/share/bin/caffeine
@@ -1,4 +1,8 @@
#!/bin/sh
-xset -dpms
-xset s off
-
+xset s off -dpms
+reset() {
+ trap - EXIT
+ xset s default
+}
+trap reset INT
+sleep infinity