moved to personal fennel config for awesome and added qutebrowser
This commit is contained in:
parent
403cb92b7d
commit
688748f8a6
502 changed files with 8576 additions and 9597 deletions
65
awes2/widget/notif-center/build-notifbox/empty-notifbox.lua
Normal file
65
awes2/widget/notif-center/build-notifbox/empty-notifbox.lua
Normal file
|
@ -0,0 +1,65 @@
|
|||
-- This returns the "Wow, such empty." message.
|
||||
|
||||
local wibox = require('wibox')
|
||||
|
||||
local dpi = require('beautiful').xresources.apply_dpi
|
||||
|
||||
local config_dir = require('gears').filesystem.get_configuration_dir()
|
||||
local widget_icon_dir = config_dir .. 'widget/notif-center/icons/'
|
||||
|
||||
local empty_notifbox = wibox.widget {
|
||||
{
|
||||
layout = wibox.layout.fixed.vertical,
|
||||
spacing = dpi(5),
|
||||
{
|
||||
expand = 'none',
|
||||
layout = wibox.layout.align.horizontal,
|
||||
nil,
|
||||
{
|
||||
image = widget_icon_dir .. 'empty-notification' .. '.svg',
|
||||
resize = true,
|
||||
forced_height = dpi(35),
|
||||
forced_width = dpi(35),
|
||||
widget = wibox.widget.imagebox,
|
||||
},
|
||||
nil
|
||||
},
|
||||
{
|
||||
text = 'Wow, such empty.',
|
||||
font = 'SF Pro Text Bold 14',
|
||||
align = 'center',
|
||||
valign = 'center',
|
||||
widget = wibox.widget.textbox
|
||||
},
|
||||
{
|
||||
text = 'Come back later.',
|
||||
font = 'SF Pro Text Regular 10',
|
||||
align = 'center',
|
||||
valign = 'center',
|
||||
widget = wibox.widget.textbox
|
||||
},
|
||||
},
|
||||
margins = dpi(20),
|
||||
widget = wibox.container.margin
|
||||
|
||||
}
|
||||
|
||||
|
||||
local separator_for_empty_msg = wibox.widget
|
||||
{
|
||||
orientation = 'vertical',
|
||||
opacity = 0.0,
|
||||
widget = wibox.widget.separator
|
||||
}
|
||||
|
||||
-- Make empty_notifbox center
|
||||
local centered_empty_notifbox = wibox.widget {
|
||||
expand = 'none',
|
||||
layout = wibox.layout.align.vertical,
|
||||
separator_for_empty_msg,
|
||||
empty_notifbox,
|
||||
separator_for_empty_msg
|
||||
}
|
||||
|
||||
return centered_empty_notifbox
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue