From c75b355d50f7084a0a6f15c909083c781a7155ea Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Wed, 26 Jun 2019 13:29:33 +0200 Subject: [PATCH] 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 --- recipes/xrandr.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/recipes/xrandr.lua b/recipes/xrandr.lua index 2808d43..59bf69e 100644 --- a/recipes/xrandr.lua +++ b/recipes/xrandr.lua @@ -1,8 +1,8 @@ --- Separating Multiple Monitor functions as a separeted module (taken from awesome wiki) -local gtable = require("gears.table") -local awful = require("awful") -local naughty = require("naughty") +local gtable = require("gears.table") +local spawn = require("awful.spawn") +local naughty = require("naughty") -- A path to a fancy icon local icon_path = "" @@ -96,7 +96,7 @@ local function naughty_destroy_callback(reason) reason == naughty.notificationClosedReason.dismissedByUser then local action = state.index and state.menu[state.index - 1][2] if action then - awful.util.spawn(action, false) + spawn(action, false) state.index = nil end end