Monday, November 21, 2011

gnome-shell extension: move Skype indicator to the top panel

Moving Skype indicator from system tray to the top panel:


0. $ cd ~/.local/share/gnome-shell/extensions

1. $ mkdir skype.status@gnome-shell.rdiachenko.org

2. $ cd skype.status@gnome-shell.rdiachenko.org

3. Create file 'metadata.json' with this content:

{
     "description": "Integrates Skype Client into the status bar",
  "name
": "Skype Status Icon", 
  "shell-version": [ "3.0.2", "3.2", "3.4" ],
  "uuid": "skype.status@gnome-shell.rdiachenko.org",
  "version": 2.0
}

4. Create file 'extension.js' with this content:

// Creates a system status notification icon for skype
const StatusIconDispatcher = imports.ui.statusIconDispatcher;

function enable() {
    StatusIconDispatcher.STANDARD_TRAY_ICON_IMPLEMENTATIONS['skype'] = 'skype';
}

function disable() {
    StatusIconDispatcher.STANDARD_TRAY_ICON_IMPLEMENTATIONS['skype'] = '';
}

// gnome-shell extension entry point
function init() {
}


5. Type 'r' in Alt+F2 prompt to restart Gnome shell

6. Install gnome-tweak-tool:

$ su -c "yum install gnome-tweak-tool"

7. Press Alt+F2 and type in 'gnome-tweak-tool'

8. Choose 'Shell Extensions' and switch on 'Skype Status Icon Extension':


9. Type 'r' in Alt+F2 prompt to restart Gnome shell

You can also download this extension from here: skype_to_status_bar_v2.0.tar.gz