Initial commit
This commit is contained in:
1 parent
ed88af090f
commit
05c9c7fc71
448 files changed
+46802
No files matched your search
@@ -0,0 +1,47 @@
|
||||
local wibox = require('wibox')
|
||||
local gears = require('gears')
|
||||
local beautiful = require('beautiful')
|
||||
local dpi = beautiful.xresources.apply_dpi
|
||||
|
||||
local hardware_header = wibox.widget {
|
||||
text = 'Hardware Monitor',
|
||||
font = 'Inter Regular 12',
|
||||
align = 'left',
|
||||
valign = 'center',
|
||||
widget = wibox.widget.textbox
|
||||
|
||||
}
|
||||
|
||||
return wibox.widget {
|
||||
layout = wibox.layout.fixed.vertical,
|
||||
{
|
||||
{
|
||||
hardware_header,
|
||||
left = dpi(24),
|
||||
right = dpi(24),
|
||||
widget = wibox.container.margin
|
||||
},
|
||||
bg = beautiful.groups_title_bg,
|
||||
shape = function(cr, width, height)
|
||||
gears.shape.partially_rounded_rect(cr, width, height, true, true, false, false, beautiful.groups_radius)
|
||||
end,
|
||||
forced_height = dpi(35),
|
||||
widget = wibox.container.background
|
||||
|
||||
},
|
||||
{
|
||||
{
|
||||
layout = wibox.layout.fixed.vertical,
|
||||
require('widget.cpu-meter'),
|
||||
require('widget.ram-meter'),
|
||||
require('widget.temperature-meter'),
|
||||
require('widget.harddrive-meter')
|
||||
},
|
||||
bg = beautiful.groups_bg,
|
||||
shape = function(cr, width, height)
|
||||
gears.shape.partially_rounded_rect(cr, width, height, false, false, true, true, beautiful.groups_radius)
|
||||
end,
|
||||
widget = wibox.container.background
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,80 @@
|
||||
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 = 'Inter 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
|
||||
)
|
||||
)
|
||||
)
|
||||
|
||||
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,
|
||||
require('widget.end-session')(),
|
||||
layout = wibox.layout.align.vertical
|
||||
},
|
||||
margins = dpi(16),
|
||||
widget = wibox.container.margin
|
||||
}
|
||||
end
|
||||
@@ -0,0 +1,67 @@
|
||||
local wibox = require('wibox')
|
||||
local gears = require('gears')
|
||||
local beautiful = require('beautiful')
|
||||
local bar_color = beautiful.groups_bg
|
||||
local dpi = beautiful.xresources.apply_dpi
|
||||
|
||||
local quick_header = wibox.widget {
|
||||
text = 'Quick Settings',
|
||||
font = 'Inter Regular 12',
|
||||
align = 'left',
|
||||
valign = 'center',
|
||||
widget = wibox.widget.textbox
|
||||
|
||||
}
|
||||
|
||||
return wibox.widget {
|
||||
layout = wibox.layout.fixed.vertical,
|
||||
spacing = dpi(7),
|
||||
{
|
||||
layout = wibox.layout.fixed.vertical,
|
||||
{
|
||||
{
|
||||
quick_header,
|
||||
left = dpi(24),
|
||||
right = dpi(24),
|
||||
widget = wibox.container.margin
|
||||
},
|
||||
forced_height = dpi(35),
|
||||
bg = beautiful.groups_title_bg,
|
||||
shape = function(cr, width, height)
|
||||
gears.shape.partially_rounded_rect(cr, width, height, true, true, false, false, beautiful.groups_radius)
|
||||
end,
|
||||
widget = wibox.container.background
|
||||
},
|
||||
{
|
||||
layout = wibox.layout.fixed.vertical,
|
||||
spacing = dpi(7),
|
||||
{
|
||||
{
|
||||
layout = wibox.layout.fixed.vertical,
|
||||
require('widget.brightness-slider'),
|
||||
require('widget.volume-slider'),
|
||||
require('widget.airplane-mode'),
|
||||
require('widget.bluetooth-toggle'),
|
||||
require('widget.blue-light')
|
||||
},
|
||||
bg = beautiful.groups_bg,
|
||||
shape = function(cr, width, height)
|
||||
gears.shape.partially_rounded_rect(cr, width, height, false, false, true, true, beautiful.groups_radius)
|
||||
end,
|
||||
widget = wibox.container.background
|
||||
},
|
||||
{
|
||||
{
|
||||
layout = wibox.layout.fixed.vertical,
|
||||
require('widget.blur-slider'),
|
||||
require('widget.blur-toggle')
|
||||
},
|
||||
bg = beautiful.groups_bg,
|
||||
shape = function(cr, width, height)
|
||||
gears.shape.rounded_rect(cr, width, height, beautiful.groups_radius)
|
||||
end,
|
||||
widget = wibox.container.background
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user