|
|
@ -2,9 +2,11 @@ local awful = require("awful") |
|
|
|
local gears = require("gears") |
|
|
|
local wibox = require("wibox") |
|
|
|
local menu = require("widgets.polymenu") |
|
|
|
local move_screentags = {} |
|
|
|
local toggle_screentags = {} |
|
|
|
awful.screen.connect_for_each_screen(function(s) |
|
|
|
-- To conserve memory we keep one menu at a time |
|
|
|
if not menu_widget then |
|
|
|
local move_screentags = {} |
|
|
|
local toggle_screentags = {} |
|
|
|
awful.screen.connect_for_each_screen(function(s) |
|
|
|
local move_tags = {} |
|
|
|
local toggle_tags = {} |
|
|
|
for _,tag in pairs(s.tags) do |
|
|
@ -42,14 +44,13 @@ awful.screen.connect_for_each_screen(function(s) |
|
|
|
"Screen "..tostring(s.index), |
|
|
|
toggle_tags |
|
|
|
}) |
|
|
|
end) |
|
|
|
local controls_widget = wibox.widget { |
|
|
|
end) |
|
|
|
controls_widget = wibox.widget { |
|
|
|
forced_width = 72, |
|
|
|
forced_height = 24, |
|
|
|
layout = wibox.layout.fixed.horizontal, |
|
|
|
} |
|
|
|
-- To conserve memory we keep one menu at a time |
|
|
|
local menu_widget = menu({ |
|
|
|
} |
|
|
|
menu_widget = menu({ |
|
|
|
before = { |
|
|
|
controls_widget |
|
|
|
}, |
|
|
@ -82,7 +83,8 @@ local menu_widget = menu({ |
|
|
|
} |
|
|
|
}, |
|
|
|
vertical = true |
|
|
|
}) |
|
|
|
}) |
|
|
|
end |
|
|
|
|
|
|
|
return function(c) |
|
|
|
local buttons = gears.table.join( |
|
|
|