Hi everyone, Is it possible to have a systray widget in all the active screens of multiheaded setups?
I tried adding a "shared" systray widget to all my active screens and I think I'm not doing the right thing. At first I tried removing the "if s == 1" check from rc.lua, but then awesome complains that I have more than one instance of wibox.widget.systray() active at the same time. So I moved the systray() creation out of the main screen-setup loop and tried adding the same tray widget to multiple wiboxes: % kobe:~/.config/awesome$ hg diff rc.lua % --- a/.config/awesome/rc.lua Tue Nov 29 11:45:06 2011 +0100 % +++ b/.config/awesome/rc.lua Wed Nov 30 09:47:28 2011 +0100 % @@ -156,6 +156,10 @@ mytasklist.buttons = awful.util.table.jo % end % end)) % % +-- 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. % @@ -190,7 +194,8 @@ for s = 1, screen.count() do % % -- 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. % + right_layout:add(mytray) % right_layout:add(mytextclock) % right_layout:add(mylayoutbox[s]) % % kobe:~/.config/awesome$ But this seems to show the system tray to only one of the screens too. The "shared" system tray *doesn't* show up when I move my mouse pointer to another screen, but it *does* show in the new screen if I move my mouse *and* toggle between two tags of the new screen. Is there a better way of showing the system tray automatically at the same time in all screens? -- To unsubscribe, send mail to [email protected].
