summaryrefslogtreecommitdiff
path: root/mpv
diff options
context:
space:
mode:
Diffstat (limited to 'mpv')
-rw-r--r--mpv/xscreensaver.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/mpv/xscreensaver.lua b/mpv/xscreensaver.lua
new file mode 100644
index 0000000..b23dc64
--- /dev/null
+++ b/mpv/xscreensaver.lua
@@ -0,0 +1,4 @@
+local utils = require 'mp.utils'
+mp.add_periodic_timer(30, function()
+ utils.subprocess({args={"xscreensaver-command", "--deactivate"}})
+end)