From edb2c66413d0ddf4d3f5295d99b50145259483f8 Mon Sep 17 00:00:00 2001 From: elenapan Date: Mon, 20 Apr 2020 22:23:12 +0300 Subject: [PATCH] Remove deprecated naughty functions --- config/awesome/elemental/dashboard/amarena.lua | 4 ++-- config/awesome/elemental/dashboard/skyfall.lua | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/config/awesome/elemental/dashboard/amarena.lua b/config/awesome/elemental/dashboard/amarena.lua index 8fb3798..5ebfba7 100644 --- a/config/awesome/elemental/dashboard/amarena.lua +++ b/config/awesome/elemental/dashboard/amarena.lua @@ -560,7 +560,7 @@ local notification_state = wibox.widget { widget = wibox.widget.textbox("") } local function update_notification_state_icon() - if naughty.is_suspended() then + if naughty.suspended then notification_state.markup = helpers.colorize_text(notification_state.text, x.color8) else notification_state.markup = helpers.colorize_text(notification_state.text, x.color2) @@ -571,7 +571,7 @@ local notification_state_box = create_boxed_widget(notification_state, dpi(150), notification_state_box:buttons(gears.table.join( -- Left click - Toggle notification state awful.button({ }, 1, function () - naughty.toggle() + naughty.suspended = not naughty.suspended update_notification_state_icon() end) )) diff --git a/config/awesome/elemental/dashboard/skyfall.lua b/config/awesome/elemental/dashboard/skyfall.lua index 5a83d1f..6026f6d 100644 --- a/config/awesome/elemental/dashboard/skyfall.lua +++ b/config/awesome/elemental/dashboard/skyfall.lua @@ -481,7 +481,7 @@ notification_state.forced_height = icon_size -- local notification_state = wibox.widget.textbox() -- notification_state.font = "Material Design Icons 30" local function update_notification_state_icon() - if naughty.is_suspended() then + if naughty.suspended then notification_state.image = icons.alarm_off else notification_state.image = icons.alarm @@ -492,7 +492,7 @@ local notification_state_box = create_boxed_widget(notification_state, dpi(150), notification_state_box:buttons(gears.table.join( -- Left click - Toggle notification state awful.button({ }, 1, function () - naughty.toggle() + naughty.suspended = not naughty.suspended update_notification_state_icon() end) ))