From 94d64ff4fb1b67a48b282e0fbdfa0058a0d6f0d6 Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Mon, 16 Jul 2012 17:03:19 +0200 Subject: [PATCH] xrandr: really execute xrandr command on timeout Also, fixes the use of "--off" switch. --- rc/xrandr.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rc/xrandr.lua b/rc/xrandr.lua index a94830f..419531e 100644 --- a/rc/xrandr.lua +++ b/rc/xrandr.lua @@ -62,7 +62,7 @@ local function menu() -- Disabled outputs for _, o in pairs(out) do if not awful.util.table.hasitem(choice, o) then - cmd = cmd .. " --output " .. o .. " -off" + cmd = cmd .. " --output " .. o .. " --off" end end @@ -125,7 +125,7 @@ local function xrandr() state.timer = nil state.iterator = nil if action then - -- awful.util.spawn(action, false) + awful.util.spawn(action, false) end end) state.timer:start()