The Ubuntu 14.04 currently have at the top right corner these indicators shutdown,lock button, calender time details, battery details, Input format (English) as the default indicators. Is it possible to make indicator-sysmonitor as one of those default indicators.
Now what happens is only when we logged into a computer, indicator-sysmonitor will be shown and when you log out or lock our computer indicator-sysmonitor will automatically exit from panel. I know from experience in locked computers indicator-sysmonitor works in the background but will not show in the panel. I have some stats (includes cpu,mem and some custom) which i want to see when i lock my computer.
can it be done?
P.S. I have asked this question in the main software site and the author recommended this site.
I've looked at this Question and its answers and it looks promising – but I don't know how to adapt the answers for indicator-sysmonitor.
Best Answer
Greeter/Login Screen
I end up looking how the
nm-applet
works. I tracked it down, as it seems hard coded inunity-greeter
.This modification make it appear in the greeting screen after boot or logoff (but not in the lock screen).
Download source and build dependencies
Add spawn function for
indicator-sysmonitor
There you find
Process.spawn_command_line_async ("nm-applet");
in original code which spawn thenm-applet
for the greeter screen. Make a copy of it with the fulltry..catch
wrap and modify it to spawnindicator-sysmonitor
too.Build
Install
Reboot
Lock Screen
Anyway, this will show all application indicators (notice nm-applet in the screenshot), this may be a security & privacy drawback. It is possible to pre-define an indicator list for lockscreen mode only, I just don't have time to do so and test it.
Download source and build dependencies
Modify unity-panel-service to load application indicators even in lockscreen-mode.
if (!lockscreen_mode)
below prevent loading indicators in lock screen mode.Build
Install
Try it: CtrlAltL