Made ubuntu-11.10 preset a little better

This commit is contained in:
Yessiest 2022-04-18 13:08:10 +04:00
parent 768e6d49d3
commit 7cd97ec4b0
2 changed files with 84 additions and 70 deletions

View File

@ -96,20 +96,29 @@ awful.screen.connect_for_each_screen(function(s)
s.mywibox:setup { s.mywibox:setup {
expand = "outside", expand = "outside",
layout = wibox.layout.align.horizontal, layout = wibox.layout.align.horizontal,
{ -- Left widgets {
start_button, {
layout = wibox.layout.fixed.horizontal, -- Left widgets
--require("widgets.polylauncher")({vertical = false}), start_button,
--s.mytaglist, --require("widgets.polylauncher")({vertical = false}),
s.mypromptbox, --s.mytaglist,
spacing = 3 s.mypromptbox,
layout = wibox.layout.fixed.horizontal,
spacing = 3
},
widget = wibox.container.place,
halign = "left",
fill_horizontal = false
}, },
{ {
layout = wibox.layout.fixed.horizontal layout = wibox.layout.fixed.horizontal
}, },
{ -- Right widgets {
{ {
layout = wibox.layout.fixed.horizontal, -- Right widgets
require("widgets.drawer")({
wibox.widget.systray(),
}),
require("widgets.wallpapers")({ require("widgets.wallpapers")({
screen = s, screen = s,
path = os.getenv("HOME").."/Pictures/Wallpapers/", path = os.getenv("HOME").."/Pictures/Wallpapers/",
@ -124,10 +133,10 @@ awful.screen.connect_for_each_screen(function(s)
require("widgets.battery")({ require("widgets.battery")({
percentage = true, percentage = true,
}), }),
--wibox.widget.systray(),
awful.widget.keyboardlayout(), awful.widget.keyboardlayout(),
wibox.widget.textclock(), wibox.widget.textclock(),
s.mylayoutbox, s.mylayoutbox,
layout = wibox.layout.fixed.horizontal,
spacing = 4, spacing = 4,
}, },
widget = wibox.container.place, widget = wibox.container.place,

View File

@ -67,76 +67,81 @@ awful.screen.connect_for_each_screen(function(s)
}, },
bottom_widgets = { bottom_widgets = {
require("widgets.polylauncher")({vertical = true}) require("widgets.polylauncher")({vertical = true})
} },
position="left"
}) })
-- Menu
require("core.widgets.menu")
-- Start button
local start_button = wibox.widget {
{
{
image = beautiful.awesome_icon,
widget = wibox.widget.imagebox
},
widget = wibox.container.place,
halign = "center",
id = "menu"
},
bg = "#26262633",
widget = wibox.container.background,
forced_width = require("beautiful.xresources").apply_dpi(61),
}
start_button:connect_signal("button::press",function(self,x,y,button)
if button == 1 then
menu:show()
end
end)
-- Add widgets to the wibox -- Add widgets to the wibox
s.mywibox:setup { s.mywibox:setup {
expand = "outside",
layout = wibox.layout.align.horizontal, layout = wibox.layout.align.horizontal,
{ -- Left widgets
layout = wibox.layout.fixed.horizontal,
{
{
require("core.widgets.menu_launcher"),
widget = wibox.container.place,
halign = "center"
},
bg = "#26262633",
widget = wibox.container.background,
forced_width = require("beautiful.xresources").apply_dpi(61),
},
--require("widgets.polylauncher")({vertical = false}),
--s.mytaglist,
s.mypromptbox,
spacing = 3
},
-- Middle widget
{ {
--[[require("widgets.polytasklist")({ {
vertical = false, -- Left widgets
stretch = false, start_button,
constraint = 180, --require("widgets.polylauncher")({vertical = false}),
names = true, --s.mytaglist,
margins = 5 s.mypromptbox,
})(s),]] layout = wibox.layout.fixed.horizontal,
spacing = 3
},
widget = wibox.container.place,
halign = "left",
fill_horizontal = false
},
{
layout = wibox.layout.fixed.horizontal layout = wibox.layout.fixed.horizontal
}, },
{ -- Right widgets {
layout = wibox.layout.fixed.horizontal, {
awful.widget.keyboardlayout(), -- Right widgets
require("widgets.wallpapers")({ require("widgets.drawer")({
screen = s, wibox.widget.systray(),
path = os.getenv("HOME").."/Pictures/Wallpapers/", }),
style = { require("widgets.wallpapers")({
icon_bg_normal = beautiful.topbar_bg screen = s,
} path = os.getenv("HOME").."/Pictures/Wallpapers/",
}), }),
require("widgets.mailbox")({ require("widgets.mailbox")({
screen = s, screen = s,
style = { style = {
rounding = 1, rounding = 1,
icon_bg_normal = beautiful.topbar_bg }
} }),
}), require("widgets.volume")({}),
--wibox.widget.systray(), require("widgets.battery")({
require("widgets.volume")({ percentage = true,
style = { }),
icon_bg_normal = beautiful.topbar_bg awful.widget.keyboardlayout(),
} wibox.widget.textclock(),
}), s.mylayoutbox,
require("widgets.battery")({ layout = wibox.layout.fixed.horizontal,
percentage = true, spacing = 4,
style = { },
icon_bg_normal = beautiful.topbar_bg widget = wibox.container.place,
} halign = "right",
}), fill_horizontal = false
wibox.widget.textclock(),
require("widgets.username")({
style = {
icon_bg_normal = beautiful.topbar_bg
}
}),
s.mylayoutbox,
spacing = 4
}, },
} }
end) end)