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 {
{
-- Left widgets
start_button, start_button,
layout = wibox.layout.fixed.horizontal,
--require("widgets.polylauncher")({vertical = false}), --require("widgets.polylauncher")({vertical = false}),
--s.mytaglist, --s.mytaglist,
s.mypromptbox, s.mypromptbox,
layout = wibox.layout.fixed.horizontal,
spacing = 3 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"
}) })
-- Add widgets to the wibox -- Menu
s.mywibox:setup { require("core.widgets.menu")
layout = wibox.layout.align.horizontal, -- Start button
{ -- Left widgets local start_button = wibox.widget {
layout = wibox.layout.fixed.horizontal,
{ {
{ {
require("core.widgets.menu_launcher"), image = beautiful.awesome_icon,
widget = wibox.widget.imagebox
},
widget = wibox.container.place, widget = wibox.container.place,
halign = "center" halign = "center",
id = "menu"
}, },
bg = "#26262633", bg = "#26262633",
widget = wibox.container.background, widget = wibox.container.background,
forced_width = require("beautiful.xresources").apply_dpi(61), 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
s.mywibox:setup {
expand = "outside",
layout = wibox.layout.align.horizontal,
{
{
-- Left widgets
start_button,
--require("widgets.polylauncher")({vertical = false}), --require("widgets.polylauncher")({vertical = false}),
--s.mytaglist, --s.mytaglist,
s.mypromptbox, s.mypromptbox,
layout = wibox.layout.fixed.horizontal,
spacing = 3 spacing = 3
}, },
-- Middle widget widget = wibox.container.place,
halign = "left",
fill_horizontal = false
},
{ {
--[[require("widgets.polytasklist")({
vertical = false,
stretch = false,
constraint = 180,
names = true,
margins = 5
})(s),]]
layout = wibox.layout.fixed.horizontal layout = wibox.layout.fixed.horizontal
}, },
{ -- Right widgets {
layout = wibox.layout.fixed.horizontal, {
awful.widget.keyboardlayout(), -- 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/",
style = {
icon_bg_normal = beautiful.topbar_bg
}
}), }),
require("widgets.mailbox")({ require("widgets.mailbox")({
screen = s, screen = s,
style = { style = {
rounding = 1, rounding = 1,
icon_bg_normal = beautiful.topbar_bg
}
}),
--wibox.widget.systray(),
require("widgets.volume")({
style = {
icon_bg_normal = beautiful.topbar_bg
} }
}), }),
require("widgets.volume")({}),
require("widgets.battery")({ require("widgets.battery")({
percentage = true, percentage = true,
style = {
icon_bg_normal = beautiful.topbar_bg
}
}), }),
awful.widget.keyboardlayout(),
wibox.widget.textclock(), wibox.widget.textclock(),
require("widgets.username")({
style = {
icon_bg_normal = beautiful.topbar_bg
}
}),
s.mylayoutbox, s.mylayoutbox,
spacing = 4 layout = wibox.layout.fixed.horizontal,
spacing = 4,
},
widget = wibox.container.place,
halign = "right",
fill_horizontal = false
}, },
} }
end) end)