aboutsummaryrefslogtreecommitdiff
path: root/.config/awesome/rc.lua
diff options
context:
space:
mode:
Diffstat (limited to '.config/awesome/rc.lua')
-rw-r--r--.config/awesome/rc.lua35
1 files changed, 19 insertions, 16 deletions
diff --git a/.config/awesome/rc.lua b/.config/awesome/rc.lua
index 739bf81..9f331a9 100644
--- a/.config/awesome/rc.lua
+++ b/.config/awesome/rc.lua
@@ -149,7 +149,7 @@ local tasklist_buttons = gears.table.join(
local function set_wallpaper(s)
-- Wallpaper
if beautiful.wallpaper then
- local wallpaper = "/home/zt/Media/Waifu/Tohru.png" -- beautiful.wallpaper
+ local wallpaper = beautiful.wallpaper
-- If wallpaper is a function, call it with the screen
if type(wallpaper) == "function" then
wallpaper = wallpaper(s)
@@ -573,28 +573,31 @@ client.connect_signal("request::titlebars", function(c)
)
awful.titlebar(c) : setup {
+ layout = wibox.layout.align.horizontal(),
{ -- Left
- awful.titlebar.widget.iconwidget(c),
- buttons = buttons,
- layout = wibox.layout.fixed.horizontal
+ awful.titlebar.widget.closebutton (c),
+ awful.titlebar.widget.maximizedbutton(c),
+ awful.titlebar.widget.ontopbutton (c),
+ awful.titlebar.widget.floatingbutton (c),
+ awful.titlebar.widget.stickybutton (c),
+ layout = wibox.layout.fixed.horizontal()
},
{ -- Middle
- { -- Title
- align = "center",
- widget = awful.titlebar.widget.titlewidget(c)
- },
+ --{ -- Title
+ -- align = "center",
+ -- widget = awful.titlebar.widget.titlewidget(c)
+ --},
buttons = buttons,
layout = wibox.layout.flex.horizontal
},
{ -- Right
- awful.titlebar.widget.floatingbutton (c),
- awful.titlebar.widget.maximizedbutton(c),
- awful.titlebar.widget.stickybutton (c),
- awful.titlebar.widget.ontopbutton (c),
- awful.titlebar.widget.closebutton (c),
- layout = wibox.layout.fixed.horizontal()
- },
- layout = wibox.layout.align.horizontal
+ { -- Title
+ widget = awful.titlebar.widget.titlewidget(c)
+ },
+ awful.titlebar.widget.iconwidget(c),
+ buttons = buttons,
+ layout = wibox.layout.fixed.horizontal()
+ }
}
end)