View Single Post
  #17  
Old 12th April 2011, 04:58 AM
fpmurphy Offline
Registered User
 
Join Date: May 2009
Location: /dev/ph
Posts: 317
Re: Gnome 3 Remove Accessibility Icon From... task tray thing

Quote:
Originally Posted by RahulSundaram View Post
Hi

You could edit

const STANDARD_TRAY_ICON_ORDER = ['a11y', 'display', 'keyboard', 'volume', 'network', 'battery'];

Remove keyboard.

Do note that mucking around with these files are just hacks and will get overwritten everytime there is a GNOME Shell update. Probably extensions are the better way to do it
Here is such an extension. Put the two files in ~/.local/share/gnome-shell/extensions/noa11y@example.com/
Code:
$ cat metadata.json
{
   "shell-version": ["3.0"],
   "uuid": "noa11y@example.com",
   "name": "noa11y",
   "description": "Remove a11y icon/menu from panel"
}

$ cat extension.js
const Panel = imports.ui.panel;

function main() {
    
   Panel.STANDARD_TRAY_ICON_SHELL_IMPLEMENTATION['a11y'] = '';
}
Note - no stylesheet.css is required.