From ee8b8cec5fa5bd027efb4add7a87fe4421e0799d Mon Sep 17 00:00:00 2001 From: MikunoNaka Date: Wed, 30 Jun 2021 14:21:15 +0530 Subject: customized the theme and added more functionality for floating clients --- .config/awesome/rc.lua | 35 +++++++++++++++++++---------------- 1 file changed, 19 insertions(+), 16 deletions(-) (limited to '.config/awesome/rc.lua') 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) -- cgit v1.2.3