Initial Commit
This commit is contained in:
18
layout/left-panel/dashboard/hardware-monitor.lua
Normal file
18
layout/left-panel/dashboard/hardware-monitor.lua
Normal file
@@ -0,0 +1,18 @@
|
||||
local wibox = require('wibox')
|
||||
local mat_list_item = require('widget.material.list-item')
|
||||
|
||||
return wibox.widget {
|
||||
-- wibox.widget {
|
||||
-- wibox.widget {
|
||||
-- text = 'Hardware monitor',
|
||||
-- font = 'Roboto medium 12',
|
||||
-- widget = wibox.widget.textbox
|
||||
-- },
|
||||
-- widget = mat_list_item
|
||||
-- },
|
||||
require('widget.cpu.cpu-meter'),
|
||||
require('widget.ram.ram-meter'),
|
||||
require('widget.temperature.temperature-meter'),
|
||||
require('widget.harddrive.harddrive-meter'),
|
||||
layout = wibox.layout.fixed.vertical
|
||||
}
|
71
layout/left-panel/dashboard/init.lua
Normal file
71
layout/left-panel/dashboard/init.lua
Normal file
@@ -0,0 +1,71 @@
|
||||
local awful = require('awful')
|
||||
local beautiful = require('beautiful')
|
||||
local wibox = require('wibox')
|
||||
local mat_list_item = require('widget.material.list-item')
|
||||
local mat_icon = require('widget.material.icon')
|
||||
local dpi = require('beautiful').xresources.apply_dpi
|
||||
local icons = require('theme.icons')
|
||||
|
||||
return function(_, panel)
|
||||
local search_button = wibox.widget {
|
||||
wibox.widget {icon = icons.search, size = dpi(24), widget = mat_icon},
|
||||
wibox.widget {
|
||||
text = 'Search Applications',
|
||||
font = 'Roboto medium 13',
|
||||
widget = wibox.widget.textbox
|
||||
},
|
||||
clickable = true,
|
||||
widget = mat_list_item
|
||||
}
|
||||
|
||||
search_button:buttons(awful.util.table.join(
|
||||
awful.button({}, 1,
|
||||
function() panel:run_rofi() end)))
|
||||
|
||||
local exit_button = wibox.widget {
|
||||
wibox.widget {icon = icons.logout, size = dpi(24), widget = mat_icon},
|
||||
wibox.widget {
|
||||
text = 'End work session',
|
||||
font = 'Roboto medium 13',
|
||||
widget = wibox.widget.textbox
|
||||
},
|
||||
clickable = true,
|
||||
divider = true,
|
||||
widget = mat_list_item
|
||||
}
|
||||
|
||||
exit_button:buttons(awful.util.table.join(
|
||||
awful.button({}, 1, function()
|
||||
panel:toggle()
|
||||
_G.exit_screen_show()
|
||||
end)))
|
||||
|
||||
return wibox.widget {
|
||||
layout = wibox.layout.align.vertical,
|
||||
{
|
||||
layout = wibox.layout.fixed.vertical,
|
||||
{
|
||||
search_button,
|
||||
bg = beautiful.primary.hue_800,
|
||||
widget = wibox.container.background
|
||||
},
|
||||
wibox.widget {
|
||||
orientation = 'horizontal',
|
||||
forced_height = 0.8,
|
||||
opacity = 0.3,
|
||||
widget = wibox.widget.separator
|
||||
},
|
||||
require('layout.left-panel.dashboard.quick-settings'),
|
||||
require('layout.left-panel.dashboard.hardware-monitor')
|
||||
},
|
||||
nil,
|
||||
{
|
||||
layout = wibox.layout.fixed.vertical,
|
||||
{
|
||||
exit_button,
|
||||
bg = beautiful.primary.hue_800,
|
||||
widget = wibox.container.background
|
||||
}
|
||||
}
|
||||
}
|
||||
end
|
16
layout/left-panel/dashboard/quick-settings.lua
Normal file
16
layout/left-panel/dashboard/quick-settings.lua
Normal file
@@ -0,0 +1,16 @@
|
||||
local wibox = require('wibox')
|
||||
local mat_list_item = require('widget.material.list-item')
|
||||
|
||||
return wibox.widget {
|
||||
-- wibox.widget {
|
||||
-- wibox.widget {
|
||||
-- text = 'Quick settings',
|
||||
-- font = 'Roboto medium 12',
|
||||
-- widget = wibox.widget.textbox
|
||||
-- },
|
||||
-- widget = mat_list_item
|
||||
-- },
|
||||
require('widget.volume.volume-slider'),
|
||||
require('widget.brightness.brightness-slider'),
|
||||
layout = wibox.layout.fixed.vertical
|
||||
}
|
Reference in New Issue
Block a user