aboutsummaryrefslogtreecommitdiff
path: root/.config/awesome/rc.lua
diff options
context:
space:
mode:
authorMikunoNaka <bokuwakanojogahoshii@yahoo.com>2021-06-30 14:21:15 +0530
committerMikunoNaka <bokuwakanojogahoshii@yahoo.com>2021-06-30 14:21:15 +0530
commitee8b8cec5fa5bd027efb4add7a87fe4421e0799d (patch)
tree5fde20a10c0f1d3c9a29cac7136338d871144b54 /.config/awesome/rc.lua
parentb07f55778de28332b072996168d9fade8155f920 (diff)
customized the theme and added more functionality for floating clients
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)