手机版
你好,游客 登录 注册 搜索
背景:
阅读新闻

新的Gnome Shell扩展带来一种类似于Gnome2的用户体验

[日期:2011-05-17] 来源:wowubuntu.com  作者:wowubuntu [字体:大 中 小]

GNOME Shell extensions

The shell in GNOME 3 can be modified by writing extensions in JavaScript. Here are some extensions I've written to provide a user experience more akin to that of GNOME 2.

Move the clock

Move the clock from the centre of the panel towards the right. This isn't a very significant change, but it was the first extension I wrote. One minor annoyance is that the width of the clock changes with the time so the indicator icons move about a little.

Favourites in panel

Place a launcher for each favourite application in the panel. It isn't possible to manage the list from the panel: instead you can add, remove or move favourite applications in the dash and the panel display will update to match.

Applications menu in panel

Replace the Activities button in the panel with an Applications menu. The menu is implemented using facilities supplied by the shell so it doesn't behave exactly like a normal menu.

Disable dynamic workspaces

The GNOME 3 shell attempts to maintain just one empty workspace. New workspaces are created on demand and when the last application in a workspace is closed that workspace is removed. This extension disables that behaviour.

The extensions are available as gnome-shell-frippery-0.0.3.tgz and are licensed under the GPL version 2 or later. To install them unpack the tar file in your home directory: the extensions will be placed in ~/.local/share/gnome-shell/extensions.

There doesn't seem to be an easy way to manage extensions yet so if you don't want to use any of them just delete the corresponding directory. The extensions can be made available to all users by placing them in /usr/share/gnome-shell/extensions. After installation you'll need to restart the shell to make the extensions take effect: enter 'r' in the Alt+F2 dialog or log out and in again.

If you're using the extension that disables dynamic workspaces you'll probably need to adjust the number of workspaces. When the extension is started with one workspace present (the default in GNOME 3) it'll automatically create four static workspaces. Failing that you can modify the gconf key /apps/metacity/general/num_workspaces. This can be done using gconf-editor or with a command like:

    gconftool-2 -t int -s /apps/metacity/general/num_workspaces 4

The extensions hook into the very core of the GNOME shell. It's almost inevitable that future changes to the shell will break them and that they'll be incompatible with other extensions.

linux
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款