aboutsummaryrefslogtreecommitdiff
path: root/.local/share/bin/caffeine
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-10-28 22:45:51 +0100
committerLoek Le Blansch <loek@pipeframe.xyz>2024-10-28 22:45:51 +0100
commit136ccfa72ba67145d80d8257144061fc1a5e21b6 (patch)
treeb32e9731bc867fa121068a0dfb3ed6ca85aeeb0a /.local/share/bin/caffeine
parent80bd649862818e518f46ac7be7847924a7cf288c (diff)
update scripts
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