If I do the following from terminal, then the screen turns off after 10 seconds of inactivity, as I expect.
xset +dpms dpms 0 0 10
However, if I try to do the same from init.lua
, then it does not work.
awful.spawn("xset +dpms dpms 0 0 10")
I even tried awful.spawn.with_shell()
, but it still doesn't work.
Of course, I plan to use a higher timeout, but first I just want it to work.