Merge pull request #37 from psimovec/fix_layout_list_multiple_screens
Fix layout_list widget for multiple screens
This commit is contained in:
@@ -31,7 +31,7 @@ awful.screen.connect_for_each_screen(
|
|||||||
s.date = require("src.widgets.date")()
|
s.date = require("src.widgets.date")()
|
||||||
s.clock = require("src.widgets.clock")()
|
s.clock = require("src.widgets.clock")()
|
||||||
--s.bluetooth = require("src.widgets.bluetooth")()
|
--s.bluetooth = require("src.widgets.bluetooth")()
|
||||||
s.layoutlist = require("src.widgets.layout_list")()
|
s.layoutlist = require("src.widgets.layout_list")(s)
|
||||||
s.powerbutton = require("src.widgets.power")()
|
s.powerbutton = require("src.widgets.power")()
|
||||||
s.kblayout = require("src.widgets.kblayout")(s)
|
s.kblayout = require("src.widgets.kblayout")(s)
|
||||||
s.taglist = require("src.widgets.taglist")(s)
|
s.taglist = require("src.widgets.taglist")(s)
|
||||||
|
|||||||
@@ -11,11 +11,11 @@ local wibox = require("wibox")
|
|||||||
require("src.core.signals")
|
require("src.core.signals")
|
||||||
|
|
||||||
-- Returns the layoutbox widget
|
-- Returns the layoutbox widget
|
||||||
return function()
|
return function(s)
|
||||||
local layout = wibox.widget {
|
local layout = wibox.widget {
|
||||||
{
|
{
|
||||||
{
|
{
|
||||||
awful.widget.layoutbox(),
|
awful.widget.layoutbox(s),
|
||||||
id = "icon_layout",
|
id = "icon_layout",
|
||||||
widget = wibox.container.place
|
widget = wibox.container.place
|
||||||
},
|
},
|
||||||
@@ -29,7 +29,8 @@ return function()
|
|||||||
shape = function(cr, width, height)
|
shape = function(cr, width, height)
|
||||||
gears.shape.rounded_rect(cr, width, height, 5)
|
gears.shape.rounded_rect(cr, width, height, 5)
|
||||||
end,
|
end,
|
||||||
widget = wibox.container.background
|
widget = wibox.container.background,
|
||||||
|
screen = s
|
||||||
}
|
}
|
||||||
|
|
||||||
-- Signals
|
-- Signals
|
||||||
@@ -38,7 +39,7 @@ return function()
|
|||||||
layout:connect_signal(
|
layout:connect_signal(
|
||||||
"button::press",
|
"button::press",
|
||||||
function()
|
function()
|
||||||
awful.layout.inc(-1)
|
awful.layout.inc(-1, s)
|
||||||
end
|
end
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user