Add revelation

Update and add bling task_preview, tag_preview and window_switcher
Add catppuccin-macchiato
Use my weather key
Update keybindings
Update autorun
Fix sliders
This commit is contained in:
Hydroxycarbamide 2023-03-20 09:51:48 +01:00
parent 4f850f7173
commit 2401cfcee2
56 changed files with 2040 additions and 858 deletions

View file

@ -22,11 +22,11 @@ naughty.config.defaults.title = "Notification"
naughty.config.defaults.position = "top_right"
naughty.config.defaults.border_width = 0
local function create_notifcation(n)
local function create_notifcation(n)
local time = os.date "%H:%M"
local icon_visibility
if n.icon == nil then
if n.icon == nil then
icon_visibility = false
else
icon_visibility = true
@ -41,7 +41,7 @@ local function create_notifcation(n)
font = "Roboto Mono 10",
widget = wibox.widget.textbox,
},
margins = {left = dpi(6), right = dpi(6)},
margins = { left = dpi(6), right = dpi(6) },
widget = wibox.container.margin,
},
widget = wibox.container.background,
@ -81,7 +81,7 @@ local function create_notifcation(n)
nil,
{
{
image = n.icon,
image = n.icon or n.app_icon,
visible = icon_visibility,
widget = wibox.widget.imagebox,
},
@ -133,22 +133,20 @@ local function create_notifcation(n)
widget = wibox.container.constraint,
},
bg = colors.container,
widget = wibox.container.background,
widget = wibox.container.background,
}
}
end
-- # Error handling :
naughty.connect_signal("request::display_error", function(message, startup)
naughty.notification {
urgency = "critical",
title = "Oops, an error happened"..(startup and " during startup!" or "!"),
message = message
}
naughty.notification {
urgency = "critical",
title = "Oops, an error happened" .. (startup and " during startup!" or "!"),
message = message
}
end)
naughty.connect_signal("request::display", function(n)
naughty.connect_signal("request::display", function(n)
create_notifcation(n)
end)