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
137
awes2/layout/left-panel/dashboard/init.lua
Normal file
137
awes2/layout/left-panel/dashboard/init.lua
Normal file
|
@ -0,0 +1,137 @@
|
|||
local awful = require('awful')
|
||||
local wibox = require('wibox')
|
||||
local gears = require('gears')
|
||||
local beautiful = require('beautiful')
|
||||
|
||||
local dpi = beautiful.xresources.apply_dpi
|
||||
|
||||
local clickable_container = require('widget.clickable-container')
|
||||
local icons = require('theme.icons')
|
||||
|
||||
return function(_, panel)
|
||||
local search_widget = wibox.widget {
|
||||
{
|
||||
{
|
||||
{
|
||||
image = icons.search,
|
||||
resize = true,
|
||||
widget = wibox.widget.imagebox
|
||||
},
|
||||
top = dpi(12),
|
||||
bottom = dpi(12),
|
||||
widget = wibox.container.margin
|
||||
},
|
||||
{
|
||||
text = 'Global Search',
|
||||
font = 'SF Pro Text Regular 12',
|
||||
align = 'left',
|
||||
valign = 'center',
|
||||
widget = wibox.widget.textbox
|
||||
},
|
||||
spacing = dpi(24),
|
||||
layout = wibox.layout.fixed.horizontal
|
||||
},
|
||||
left = dpi(24),
|
||||
right = dpi(24),
|
||||
forced_height = dpi(48),
|
||||
widget = wibox.container.margin
|
||||
}
|
||||
|
||||
search_button = wibox.widget {
|
||||
{
|
||||
search_widget,
|
||||
widget = clickable_container
|
||||
},
|
||||
bg = beautiful.groups_bg,
|
||||
shape = function(cr, width, height)
|
||||
gears.shape.rounded_rect(cr, width, height, beautiful.groups_radius)
|
||||
end,
|
||||
widget = wibox.container.background
|
||||
}
|
||||
|
||||
search_button:buttons(
|
||||
awful.util.table.join(
|
||||
awful.button(
|
||||
{},
|
||||
1,
|
||||
function()
|
||||
panel:run_rofi()
|
||||
end
|
||||
)
|
||||
)
|
||||
)
|
||||
|
||||
local exit_widget = {
|
||||
{
|
||||
{
|
||||
{
|
||||
image = icons.logout,
|
||||
resize = true,
|
||||
widget = wibox.widget.imagebox
|
||||
},
|
||||
top = dpi(12),
|
||||
bottom = dpi(12),
|
||||
widget = wibox.container.margin
|
||||
},
|
||||
{
|
||||
text = 'End work session',
|
||||
font = 'SF Pro Text Regular 12',
|
||||
align = 'left',
|
||||
valign = 'center',
|
||||
widget = wibox.widget.textbox
|
||||
},
|
||||
spacing = dpi(24),
|
||||
layout = wibox.layout.fixed.horizontal
|
||||
},
|
||||
left = dpi(24),
|
||||
right = dpi(24),
|
||||
forced_height = dpi(48),
|
||||
widget = wibox.container.margin
|
||||
}
|
||||
|
||||
exit_button = wibox.widget {
|
||||
{
|
||||
exit_widget,
|
||||
widget = clickable_container
|
||||
|
||||
},
|
||||
bg = beautiful.groups_bg,
|
||||
shape = function(cr, width, height)
|
||||
gears.shape.rounded_rect(cr, width, height, beautiful.groups_radius)
|
||||
end,
|
||||
widget = wibox.container.background
|
||||
}
|
||||
|
||||
|
||||
exit_button:buttons(
|
||||
awful.util.table.join(
|
||||
awful.button(
|
||||
{},
|
||||
1,
|
||||
function()
|
||||
panel:toggle()
|
||||
awesome.emit_signal("module::exit_screen_show")
|
||||
end
|
||||
)
|
||||
)
|
||||
)
|
||||
|
||||
return wibox.widget {
|
||||
{
|
||||
{
|
||||
layout = wibox.layout.fixed.vertical,
|
||||
spacing = dpi(7),
|
||||
search_button,
|
||||
require('layout.left-panel.dashboard.hardware-monitor'),
|
||||
require('layout.left-panel.dashboard.quick-settings'),
|
||||
|
||||
},
|
||||
nil,
|
||||
exit_button,
|
||||
layout = wibox.layout.align.vertical
|
||||
},
|
||||
margins = dpi(16),
|
||||
widget = wibox.container.margin
|
||||
|
||||
}
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue