diff options
| -rwxr-xr-x | deploy.sh | 3 | ||||
| -rw-r--r-- | mpv/xscreensaver.lua | 4 |
2 files changed, 6 insertions, 1 deletions
@@ -24,8 +24,9 @@ ln -sf ${CONFIG_DIR}/ripgreprc ${HOME}/.config/ripgreprc ln -sf ${CONFIG_DIR}/quiltrc ${HOME}/.quiltrc -mkdir -p ${HOME}/.config/mpv +mkdir -p ${HOME}/.config/mpv/scripts ln -sf ${CONFIG_DIR}/mpv/mpv.conf ${HOME}/.config/mpv/mpv.conf +ln -sf ${CONFIG_DIR}/mpv/xscreensaver.lua ${HOME}/.config/mpv/scripts/xscreensaver.lua mkdir -p ${HOME}/.local/share/tig 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) |
