diff options
author | Jon Santmyer <jon@jonsantmyer.com> | 2023-09-30 11:25:55 -0400 |
---|---|---|
committer | Jon Santmyer <jon@jonsantmyer.com> | 2023-09-30 11:25:55 -0400 |
commit | 7b599b6e10ab6e5fd3e7ec0c5b7d79a586375842 (patch) | |
tree | 212d9af3fd793814472aa3b93a6f4bbdfc3ec2d4 /modules/desktop/awesome | |
parent | 0d1276915ca8cdd9b1b65f8c11832d0d598c49af (diff) | |
download | nix-config-7b599b6e10ab6e5fd3e7ec0c5b7d79a586375842.tar.gz nix-config-7b599b6e10ab6e5fd3e7ec0c5b7d79a586375842.tar.bz2 nix-config-7b599b6e10ab6e5fd3e7ec0c5b7d79a586375842.zip |
add music module
Diffstat (limited to 'modules/desktop/awesome')
-rw-r--r-- | modules/desktop/awesome/rc.lua | 73 |
1 files changed, 33 insertions, 40 deletions
diff --git a/modules/desktop/awesome/rc.lua b/modules/desktop/awesome/rc.lua index 9c2bdc5..1fb1ea5 100644 --- a/modules/desktop/awesome/rc.lua +++ b/modules/desktop/awesome/rc.lua @@ -657,65 +657,58 @@ client.connect_signal("request::titlebars", function(c) end) ) - awful.titlebar(c, {size = 20}) : setup { + awful.titlebar(c, {size = dpi(20), position = "left"}) : setup { { -- Left awful.titlebar.widget.iconwidget(c), + widget = wibox.container.margin, + top = dpi(6), + bottom = dpi(6), buttons = buttons, - layout = wibox.layout.fixed.horizontal + layout = wibox.layout.fixed.vertical, }, { -- 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 - { { { - widget = awful.titlebar.widget.maximizedbutton(c), + { + widget = awful.titlebar.widget.maximizedbutton(c), + }, + widget = wibox.container.background, + shape = gears.shape.circle, + shape_border_width = 1, + shape_border_color = "#12ac28", + bg = "#28c940", + forced_height = dpi(14), }, - widget = wibox.container.background, - shape = gears.shape.circle, - shape_border_width = 1, - shape_border_color = "#12ac28", - bg = "#28c940", - forced_width = dpi(14), - }, - { { - widget = awful.titlebar.widget.closebutton(c), + { + widget = awful.titlebar.widget.closebutton(c), + }, + widget = wibox.container.background, + shape = gears.shape.circle, + shape_border_width = 1, + shape_border_color = "#ad3934", + bg = "#bf4943", + forced_height = dpi(14), }, - widget = wibox.container.background, - shape = gears.shape.circle, - shape_border_width = 1, - shape_border_color = "#ad3934", - bg = "#bf4943", - forced_width = dpi(14), + spacing = dpi(6), + layout = wibox.layout.fixed.vertical }, - spacing = dpi(6), - layout = wibox.layout.fixed.horizontal - }, - widget = wibox.container.margin; - left = dpi(6); - right = dpi(6); + widget = wibox.container.margin; + top = dpi(6); + bottom = dpi(6); }, - layout = wibox.layout.align.horizontal + layout = wibox.layout.align.vertical } end) -client.connect_signal("property::floating", function(c) - local tb = awful.titlebar(c) - - if c.floating then - awful.titlebar.show(c) - else - awful.titlebar.hide(c) - end -end) - -- Enable sloppy focus, so that focus follows mouse. client.connect_signal("mouse::enter", function(c) c:emit_signal("request::activate", "mouse_enter", {raise = false}) |