mirror of
https://github.com/elenapan/dotfiles.git
synced 2026-05-11 17:35:57 +08:00
Remove deprecated naughty functions
This commit is contained in:
parent
febad9fe9f
commit
edb2c66413
2 changed files with 4 additions and 4 deletions
|
|
@ -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)
|
||||
))
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue