Default config: Use connect_for_each_screen()

Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
Uli Schlachter 2016-03-26 18:36:38 +01:00
parent 3f40183177
commit bed09f6c18
1 changed files with 6 additions and 6 deletions

View File

@ -91,19 +91,19 @@ end
-- {{{ Wallpaper -- {{{ Wallpaper
if beautiful.wallpaper then if beautiful.wallpaper then
for s in screen do gears.screen.connect_for_each_screen(function(s)
gears.wallpaper.maximized(beautiful.wallpaper, s, true) gears.wallpaper.maximized(beautiful.wallpaper, s, true)
end end)
end end
-- }}} -- }}}
-- {{{ Tags -- {{{ Tags
-- Define a tag table which hold all screen tags. -- Define a tag table which hold all screen tags.
tags = {} tags = {}
for s in screen do gears.screen.connect_for_each_screen(function(s)
-- Each screen has its own tag table. -- Each screen has its own tag table.
tags[s] = awful.tag({ 1, 2, 3, 4, 5, 6, 7, 8, 9 }, s, awful.layout.layouts[1]) tags[s] = awful.tag({ 1, 2, 3, 4, 5, 6, 7, 8, 9 }, s, awful.layout.layouts[1])
end end)
-- }}} -- }}}
-- {{{ Menu -- {{{ Menu
@ -175,7 +175,7 @@ mytasklist.buttons = awful.util.table.join(
awful.client.focus.byidx(-1) awful.client.focus.byidx(-1)
end)) end))
for s in screen do gears.screen.connect_for_each_screen(function(s)
-- Create a promptbox for each screen -- Create a promptbox for each screen
mypromptbox[s] = awful.widget.prompt() mypromptbox[s] = awful.widget.prompt()
-- Create an imagebox widget which will contains an icon indicating which layout we're using. -- Create an imagebox widget which will contains an icon indicating which layout we're using.
@ -213,7 +213,7 @@ for s in screen do
mylayoutbox[s], mylayoutbox[s],
}, },
} }
end end)
-- }}} -- }}}
-- {{{ Mouse bindings -- {{{ Mouse bindings