+-- Create one system tray that will be shared by multiple screens if we
+-- have more than one (e.g. in multiheaded display setups).
+mytray = wibox.widget.systray()
for s = 1, screen.count() do
-- Create an imagebox widget which will contains an icon indicating
-- which layout we're using. We need one layoutbox per screen.
-- Widgets that are aligned to the right
local right_layout = wibox.layout.fixed.horizontal()
- if s == 1 then right_layout:add(wibox.widget.systray()) end
+ -- Share one systray between all active screens.
+2011-11-30 Giorgos Keramidas <firstname.lastname@example.org>
+ * .config/awesome/rc.lua: Share the same systray widget
+ between multiple screens.
+ When focus moves from one screen to the next the shared
+ systray will appear in the currently active screen. This
+ is still not perfect, as it may be required to
+ temporarily switch to a new tag to let awesome notice
+ that 'screen' is now different, and move the system tray.
+ I'll try to hack something better in the upcoming days.
2011-11-28 Giorgos Keramidas <email@example.com>
* .config/awesome/rc.lua: Add a rule that floats 'gedit'