diff --git a/freedesktop/freedesktop.lua b/freedesktop/freedesktop.lua index 03fe439..d778f45 100644 --- a/freedesktop/freedesktop.lua +++ b/freedesktop/freedesktop.lua @@ -7,7 +7,8 @@ local awful = require("awful") local beautiful = require("beautiful") -require('freedesktop') +require("freedesktop") +require("freedesktop.utils") -- require("debian.menu") freedesktop.utils.terminal = terminal -- defined in rc.lua, otherwise define it here (default: "xterm") diff --git a/lain b/lain index 90623d2..0f5ce4d 160000 --- a/lain +++ b/lain @@ -1 +1 @@ -Subproject commit 90623d2e5d787909be18b494faa041a5fd8cb515 +Subproject commit 0f5ce4dd76e96524ce7a534d228a212f51eb5c93 diff --git a/rc.lua.blackburn b/rc.lua.blackburn index f3d5fa7..4d543b3 100644 --- a/rc.lua.blackburn +++ b/rc.lua.blackburn @@ -1,5 +1,5 @@ --[[ - + Blackburn Awesome WM config 2.0 github.com/copycat-killer @@ -592,9 +592,9 @@ awful.rules.rules = { -- }}} -- {{{ Signals --- Signal function to execute when a new client appears. +-- signal function to execute when a new client appears. client.connect_signal("manage", function (c, startup) - -- Enable sloppy focus + -- enable sloppy focus c:connect_signal("mouse::enter", function(c) if awful.layout.get(c.screen) ~= awful.layout.suit.magnifier and awful.client.focus.filter(c) then @@ -607,16 +607,53 @@ client.connect_signal("manage", function (c, startup) awful.placement.no_overlap(c) awful.placement.no_offscreen(c) end + + local titlebars_enabled = false + if titlebars_enabled and (c.type == "normal" or c.type == "dialog") then + -- buttons for the titlebar + local buttons = awful.util.table.join( + awful.button({ }, 1, function() + client.focus = c + c:raise() + awful.mouse.client.move(c) + end), + awful.button({ }, 3, function() + client.focus = c + c:raise() + awful.mouse.client.resize(c) + end) + ) + + -- widgets that are aligned to the right + local right_layout = wibox.layout.fixed.horizontal() + right_layout:add(awful.titlebar.widget.floatingbutton(c)) + right_layout:add(awful.titlebar.widget.maximizedbutton(c)) + right_layout:add(awful.titlebar.widget.stickybutton(c)) + right_layout:add(awful.titlebar.widget.ontopbutton(c)) + right_layout:add(awful.titlebar.widget.closebutton(c)) + + -- the title goes in the middle + local middle_layout = wibox.layout.flex.horizontal() + local title = awful.titlebar.widget.titlewidget(c) + title:set_align("center") + middle_layout:add(title) + middle_layout:buttons(buttons) + + -- now bring it all together + local layout = wibox.layout.align.horizontal() + layout:set_right(right_layout) + layout:set_middle(middle_layout) + + awful.titlebar(c,{size=16}):set_widget(layout) + end end) -- No border for maximized clients client.connect_signal("focus", function(c) if c.maximized_horizontal == true and c.maximized_vertical == true then - c.border_width = 0 c.border_color = beautiful.border_normal else - c.border_width = beautiful.border_width c.border_color = beautiful.border_focus end end) @@ -636,7 +673,6 @@ for s = 1, screen.count() do screen[s]:connect_signal("arrange", function () -- No borders with only one visible client elseif #clients == 1 or layout == "max" then clients[1].border_width = 0 - awful.client.moveresize(0, 0, 2, 2, clients[1]) else c.border_width = beautiful.border_width end diff --git a/rc.lua.copland b/rc.lua.copland index 5462c6e..ba98930 100644 --- a/rc.lua.copland +++ b/rc.lua.copland @@ -706,10 +706,8 @@ end) client.connect_signal("focus", function(c) if c.maximized_horizontal == true and c.maximized_vertical == true then - c.border_width = 0 c.border_color = beautiful.border_normal else - c.border_width = beautiful.border_width c.border_color = beautiful.border_focus end end) @@ -729,7 +727,6 @@ for s = 1, screen.count() do screen[s]:connect_signal("arrange", function () -- No borders with only one visible client elseif #clients == 1 or layout == "max" then clients[1].border_width = 0 - awful.client.moveresize(0, 0, 2, 2, clients[1]) else c.border_width = beautiful.border_width end diff --git a/rc.lua.dremora b/rc.lua.dremora index 27c190f..0a17ef4 100644 --- a/rc.lua.dremora +++ b/rc.lua.dremora @@ -642,10 +642,8 @@ end) client.connect_signal("focus", function(c) if c.maximized_horizontal == true and c.maximized_vertical == true then - c.border_width = 0 c.border_color = beautiful.border_normal else - c.border_width = beautiful.border_width c.border_color = beautiful.border_focus end end) @@ -665,7 +663,6 @@ for s = 1, screen.count() do screen[s]:connect_signal("arrange", function () -- No borders with only one visible client elseif #clients == 1 or layout == "max" then clients[1].border_width = 0 - awful.client.moveresize(0, 0, 2, 2, clients[1]) else c.border_width = beautiful.border_width end diff --git a/rc.lua.holo b/rc.lua.holo index 8d9455e..9c3a28f 100644 --- a/rc.lua.holo +++ b/rc.lua.holo @@ -742,16 +742,53 @@ client.connect_signal("manage", function (c, startup) awful.placement.no_overlap(c) awful.placement.no_offscreen(c) end + + local titlebars_enabled = false + if titlebars_enabled and (c.type == "normal" or c.type == "dialog") then + -- buttons for the titlebar + local buttons = awful.util.table.join( + awful.button({ }, 1, function() + client.focus = c + c:raise() + awful.mouse.client.move(c) + end), + awful.button({ }, 3, function() + client.focus = c + c:raise() + awful.mouse.client.resize(c) + end) + ) + + -- Widgets that are aligned to the right + local right_layout = wibox.layout.fixed.horizontal() + right_layout:add(awful.titlebar.widget.floatingbutton(c)) + right_layout:add(awful.titlebar.widget.maximizedbutton(c)) + right_layout:add(awful.titlebar.widget.stickybutton(c)) + right_layout:add(awful.titlebar.widget.ontopbutton(c)) + right_layout:add(awful.titlebar.widget.closebutton(c)) + + -- The title goes in the middle + local middle_layout = wibox.layout.flex.horizontal() + local title = awful.titlebar.widget.titlewidget(c) + title:set_align("center") + middle_layout:add(title) + middle_layout:buttons(buttons) + + -- Now bring it all together + local layout = wibox.layout.align.horizontal() + layout:set_right(right_layout) + layout:set_middle(middle_layout) + + awful.titlebar(c,{size=16}):set_widget(layout) + end end) -- No border for maximized clients client.connect_signal("focus", function(c) if c.maximized_horizontal == true and c.maximized_vertical == true then - c.border_width = 0 c.border_color = beautiful.border_normal else - c.border_width = beautiful.border_width c.border_color = beautiful.border_focus end end) @@ -771,7 +808,6 @@ for s = 1, screen.count() do screen[s]:connect_signal("arrange", function () -- No borders with only one visible client elseif #clients == 1 or layout == "max" then clients[1].border_width = 0 - awful.client.moveresize(0, 0, 2, 2, clients[1]) else c.border_width = beautiful.border_width end diff --git a/rc.lua.multicolor b/rc.lua.multicolor index 95c1ca1..3649248 100644 --- a/rc.lua.multicolor +++ b/rc.lua.multicolor @@ -655,9 +655,9 @@ awful.rules.rules = { -- }}} -- {{{ Signals --- Signal function to execute when a new client appears. +-- signal function to execute when a new client appears. client.connect_signal("manage", function (c, startup) - -- Enable sloppy focus + -- enable sloppy focus c:connect_signal("mouse::enter", function(c) if awful.layout.get(c.screen) ~= awful.layout.suit.magnifier and awful.client.focus.filter(c) then @@ -670,16 +670,53 @@ client.connect_signal("manage", function (c, startup) awful.placement.no_overlap(c) awful.placement.no_offscreen(c) end + + local titlebars_enabled = false + if titlebars_enabled and (c.type == "normal" or c.type == "dialog") then + -- buttons for the titlebar + local buttons = awful.util.table.join( + awful.button({ }, 1, function() + client.focus = c + c:raise() + awful.mouse.client.move(c) + end), + awful.button({ }, 3, function() + client.focus = c + c:raise() + awful.mouse.client.resize(c) + end) + ) + + -- widgets that are aligned to the right + local right_layout = wibox.layout.fixed.horizontal() + right_layout:add(awful.titlebar.widget.floatingbutton(c)) + right_layout:add(awful.titlebar.widget.maximizedbutton(c)) + right_layout:add(awful.titlebar.widget.stickybutton(c)) + right_layout:add(awful.titlebar.widget.ontopbutton(c)) + right_layout:add(awful.titlebar.widget.closebutton(c)) + + -- the title goes in the middle + local middle_layout = wibox.layout.flex.horizontal() + local title = awful.titlebar.widget.titlewidget(c) + title:set_align("center") + middle_layout:add(title) + middle_layout:buttons(buttons) + + -- now bring it all together + local layout = wibox.layout.align.horizontal() + layout:set_right(right_layout) + layout:set_middle(middle_layout) + + awful.titlebar(c,{size=16}):set_widget(layout) + end end) -- No border for maximized clients client.connect_signal("focus", function(c) if c.maximized_horizontal == true and c.maximized_vertical == true then - c.border_width = 0 c.border_color = beautiful.border_normal else - c.border_width = beautiful.border_width c.border_color = beautiful.border_focus end end) diff --git a/rc.lua.powerarrow-darker b/rc.lua.powerarrow-darker index 6e191ad..3851716 100644 --- a/rc.lua.powerarrow-darker +++ b/rc.lua.powerarrow-darker @@ -673,9 +673,9 @@ awful.rules.rules = { -- }}} -- {{{ Signals --- Signal function to execute when a new client appears. +-- signal function to execute when a new client appears. client.connect_signal("manage", function (c, startup) - -- Enable sloppy focus + -- enable sloppy focus c:connect_signal("mouse::enter", function(c) if awful.layout.get(c.screen) ~= awful.layout.suit.magnifier and awful.client.focus.filter(c) then @@ -688,16 +688,53 @@ client.connect_signal("manage", function (c, startup) awful.placement.no_overlap(c) awful.placement.no_offscreen(c) end + + local titlebars_enabled = false + if titlebars_enabled and (c.type == "normal" or c.type == "dialog") then + -- buttons for the titlebar + local buttons = awful.util.table.join( + awful.button({ }, 1, function() + client.focus = c + c:raise() + awful.mouse.client.move(c) + end), + awful.button({ }, 3, function() + client.focus = c + c:raise() + awful.mouse.client.resize(c) + end) + ) + + -- widgets that are aligned to the right + local right_layout = wibox.layout.fixed.horizontal() + right_layout:add(awful.titlebar.widget.floatingbutton(c)) + right_layout:add(awful.titlebar.widget.maximizedbutton(c)) + right_layout:add(awful.titlebar.widget.stickybutton(c)) + right_layout:add(awful.titlebar.widget.ontopbutton(c)) + right_layout:add(awful.titlebar.widget.closebutton(c)) + + -- the title goes in the middle + local middle_layout = wibox.layout.flex.horizontal() + local title = awful.titlebar.widget.titlewidget(c) + title:set_align("center") + middle_layout:add(title) + middle_layout:buttons(buttons) + + -- now bring it all together + local layout = wibox.layout.align.horizontal() + layout:set_right(right_layout) + layout:set_middle(middle_layout) + + awful.titlebar(c,{size=16}):set_widget(layout) + end end) -- No border for maximized clients client.connect_signal("focus", function(c) if c.maximized_horizontal == true and c.maximized_vertical == true then - c.border_width = 0 c.border_color = beautiful.border_normal else - c.border_width = beautiful.border_width c.border_color = beautiful.border_focus end end) @@ -717,7 +754,6 @@ for s = 1, screen.count() do screen[s]:connect_signal("arrange", function () -- No borders with only one visible client elseif #clients == 1 or layout == "max" then clients[1].border_width = 0 - awful.client.moveresize(0, 0, 2, 2, clients[1]) else c.border_width = beautiful.border_width end diff --git a/rc.lua.rainbow b/rc.lua.rainbow index cd69ec0..2e8a8c3 100644 --- a/rc.lua.rainbow +++ b/rc.lua.rainbow @@ -590,9 +590,9 @@ awful.rules.rules = { -- }}} -- {{{ Signals --- Signal function to execute when a new client appears. +-- signal function to execute when a new client appears. client.connect_signal("manage", function (c, startup) - -- Enable sloppy focus + -- enable sloppy focus c:connect_signal("mouse::enter", function(c) if awful.layout.get(c.screen) ~= awful.layout.suit.magnifier and awful.client.focus.filter(c) then @@ -605,16 +605,53 @@ client.connect_signal("manage", function (c, startup) awful.placement.no_overlap(c) awful.placement.no_offscreen(c) end + + local titlebars_enabled = false + if titlebars_enabled and (c.type == "normal" or c.type == "dialog") then + -- buttons for the titlebar + local buttons = awful.util.table.join( + awful.button({ }, 1, function() + client.focus = c + c:raise() + awful.mouse.client.move(c) + end), + awful.button({ }, 3, function() + client.focus = c + c:raise() + awful.mouse.client.resize(c) + end) + ) + + -- widgets that are aligned to the right + local right_layout = wibox.layout.fixed.horizontal() + right_layout:add(awful.titlebar.widget.floatingbutton(c)) + right_layout:add(awful.titlebar.widget.maximizedbutton(c)) + right_layout:add(awful.titlebar.widget.stickybutton(c)) + right_layout:add(awful.titlebar.widget.ontopbutton(c)) + right_layout:add(awful.titlebar.widget.closebutton(c)) + + -- the title goes in the middle + local middle_layout = wibox.layout.flex.horizontal() + local title = awful.titlebar.widget.titlewidget(c) + title:set_align("center") + middle_layout:add(title) + middle_layout:buttons(buttons) + + -- now bring it all together + local layout = wibox.layout.align.horizontal() + layout:set_right(right_layout) + layout:set_middle(middle_layout) + + awful.titlebar(c,{size=16}):set_widget(layout) + end end) -- No border for maximized clients client.connect_signal("focus", function(c) if c.maximized_horizontal == true and c.maximized_vertical == true then - c.border_width = 0 c.border_color = beautiful.border_normal else - c.border_width = beautiful.border_width c.border_color = beautiful.border_focus end end) @@ -634,7 +671,6 @@ for s = 1, screen.count() do screen[s]:connect_signal("arrange", function () -- No borders with only one visible client elseif #clients == 1 or layout == "max" then clients[1].border_width = 0 - awful.client.moveresize(0, 0, 2, 2, clients[1]) else c.border_width = beautiful.border_width end diff --git a/rc.lua.steamburn b/rc.lua.steamburn index 3a01dd4..f6d521d 100644 --- a/rc.lua.steamburn +++ b/rc.lua.steamburn @@ -599,9 +599,9 @@ awful.rules.rules = { -- }}} -- {{{ Signals --- Signal function to execute when a new client appears. +-- signal function to execute when a new client appears. client.connect_signal("manage", function (c, startup) - -- Enable sloppy focus + -- enable sloppy focus c:connect_signal("mouse::enter", function(c) if awful.layout.get(c.screen) ~= awful.layout.suit.magnifier and awful.client.focus.filter(c) then @@ -614,16 +614,53 @@ client.connect_signal("manage", function (c, startup) awful.placement.no_overlap(c) awful.placement.no_offscreen(c) end + + local titlebars_enabled = false + if titlebars_enabled and (c.type == "normal" or c.type == "dialog") then + -- buttons for the titlebar + local buttons = awful.util.table.join( + awful.button({ }, 1, function() + client.focus = c + c:raise() + awful.mouse.client.move(c) + end), + awful.button({ }, 3, function() + client.focus = c + c:raise() + awful.mouse.client.resize(c) + end) + ) + + -- widgets that are aligned to the right + local right_layout = wibox.layout.fixed.horizontal() + right_layout:add(awful.titlebar.widget.floatingbutton(c)) + right_layout:add(awful.titlebar.widget.maximizedbutton(c)) + right_layout:add(awful.titlebar.widget.stickybutton(c)) + right_layout:add(awful.titlebar.widget.ontopbutton(c)) + right_layout:add(awful.titlebar.widget.closebutton(c)) + + -- the title goes in the middle + local middle_layout = wibox.layout.flex.horizontal() + local title = awful.titlebar.widget.titlewidget(c) + title:set_align("center") + middle_layout:add(title) + middle_layout:buttons(buttons) + + -- now bring it all together + local layout = wibox.layout.align.horizontal() + layout:set_right(right_layout) + layout:set_middle(middle_layout) + + awful.titlebar(c,{size=16}):set_widget(layout) + end end) -- No border for maximized clients client.connect_signal("focus", function(c) if c.maximized_horizontal == true and c.maximized_vertical == true then - c.border_width = 0 c.border_color = beautiful.border_normal else - c.border_width = beautiful.border_width c.border_color = beautiful.border_focus end end) @@ -643,7 +680,6 @@ for s = 1, screen.count() do screen[s]:connect_signal("arrange", function () -- No borders with only one visible client elseif #clients == 1 or layout == "max" then clients[1].border_width = 0 - awful.client.moveresize(0, 0, 2, 2, clients[1]) else c.border_width = beautiful.border_width end diff --git a/themes/copland/theme.lua b/themes/copland/theme.lua index c89f643..ffd70f6 100644 --- a/themes/copland/theme.lua +++ b/themes/copland/theme.lua @@ -48,7 +48,7 @@ theme.disk = theme.dir .. "/icons/disk.png" theme.ac = theme.dir .. "/icons/ac.png" theme.bat = theme.dir .. "/icons/bat.png" theme.bat_low = theme.dir .. "/icons/bat_low.png" -theme.bat_no = theme.dir .. "/icons/bat_no.png" +theme.bat_no = theme.dir .. "/icons/bat_no.png" theme.play = theme.dir .. "/icons/play.png" theme.pause = theme.dir .. "/icons/pause.png" @@ -92,14 +92,14 @@ theme.titlebar_maximized_button_normal_inactive = theme.dir .. "/icons/titlebar/ theme.useless_gap_width = 10 theme.layout_centerfair = theme.dir .. "/icons/centerfair.png" theme.layout_termfair = theme.dir .. "/icons/termfair.png" -theme.layout_centerwork = theme.dir .. "/icons/centerwork.png" +theme.layout_centerwork = theme.dir .. "/icons/centerwork.png" theme.layout_uselessfair = theme.dir .. "/icons/fairv.png" theme.layout_uselessfairh = theme.dir .. "/icons/fairh.png" theme.layout_uselessdwindle = theme.dir .. "/icons/dwindle.png" theme.layout_uselesstile = theme.dir .. "/icons/tile.png" theme.layout_uselesstiletop = theme.dir .. "/icons/tiletop.png" theme.layout_uselesstileleft = theme.dir .. "/icons/tileleft.png" -theme.layout_uselesstilebottom = theme.dir .. "/icons/tilebottom.png" +theme.layout_uselesstilebottom = theme.dir .. "/icons/tilebottom.png" theme.layout_uselesspiral = theme.dir .. "/icons/spiral.png" return theme diff --git a/themes/copland/wall.png b/themes/copland/wall.png index c4e0fae..169d582 100644 Binary files a/themes/copland/wall.png and b/themes/copland/wall.png differ