Jamie Zawinski <[email protected]>:
> xscreensaver does not use the MIT SCREEN-SAVER server extension
> because it is a flaky, unreliable piece of shit that tends to cause
> the sever to crash.
Is it still the case after 7 years?
Also, the workaround given by the submitter no longer works, I use this
instead:
$ cat ~/.config/mpv/scripts/screensaver.lua
local function deactivate_screensaver()
mp.command_native({name={'subprocess'},
args={'xscreensaver-command', '--deactivate'}})
end
local timer = mp.add_periodic_timer(30, deactivate_screensaver)
local function on_pause_change(name, value)
if value then
timer:kill()
else
timer:resume()
end
end
mp.observe_property('pause', 'bool', on_pause_change)
$