xrandr.lua: Switch from awful.util.spawn to awful.spawn
It's been almost four years since this code was moved around. Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
parent
024075a376
commit
c75b355d50
|
@ -1,8 +1,8 @@
|
||||||
--- Separating Multiple Monitor functions as a separeted module (taken from awesome wiki)
|
--- Separating Multiple Monitor functions as a separeted module (taken from awesome wiki)
|
||||||
|
|
||||||
local gtable = require("gears.table")
|
local gtable = require("gears.table")
|
||||||
local awful = require("awful")
|
local spawn = require("awful.spawn")
|
||||||
local naughty = require("naughty")
|
local naughty = require("naughty")
|
||||||
|
|
||||||
-- A path to a fancy icon
|
-- A path to a fancy icon
|
||||||
local icon_path = ""
|
local icon_path = ""
|
||||||
|
@ -96,7 +96,7 @@ local function naughty_destroy_callback(reason)
|
||||||
reason == naughty.notificationClosedReason.dismissedByUser then
|
reason == naughty.notificationClosedReason.dismissedByUser then
|
||||||
local action = state.index and state.menu[state.index - 1][2]
|
local action = state.index and state.menu[state.index - 1][2]
|
||||||
if action then
|
if action then
|
||||||
awful.util.spawn(action, false)
|
spawn(action, false)
|
||||||
state.index = nil
|
state.index = nil
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue