mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-07-09 17:54:22 +02:00
xrandr: really execute xrandr command on timeout
Also, fixes the use of "--off" switch.
This commit is contained in:
parent
49f302ca34
commit
94d64ff4fb
1 changed files with 2 additions and 2 deletions
|
@ -62,7 +62,7 @@ local function menu()
|
||||||
-- Disabled outputs
|
-- Disabled outputs
|
||||||
for _, o in pairs(out) do
|
for _, o in pairs(out) do
|
||||||
if not awful.util.table.hasitem(choice, o) then
|
if not awful.util.table.hasitem(choice, o) then
|
||||||
cmd = cmd .. " --output " .. o .. " -off"
|
cmd = cmd .. " --output " .. o .. " --off"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -125,7 +125,7 @@ local function xrandr()
|
||||||
state.timer = nil
|
state.timer = nil
|
||||||
state.iterator = nil
|
state.iterator = nil
|
||||||
if action then
|
if action then
|
||||||
-- awful.util.spawn(action, false)
|
awful.util.spawn(action, false)
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
state.timer:start()
|
state.timer:start()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue