Re: 桌面接力,把你的桌面Show出来……
发表于 : 2011-06-18 20:19
freebsd
gnome-shell-extension-activities-button
cat .local/share/gnome-shell/extensions/activitiesbutton\@fpmurphy.com/extension.js
const St = imports.gi.St;
const Main = imports.ui.main;
const Panel = imports.ui.panel;
const Gettext = imports.gettext.domain('gnome-shell');
const _ = Gettext.gettext;
function main() {
let hotCornerButton = Main.panel.button;
let box = new St.BoxLayout({ style_class: 'activities_box'});
// change the text string if you want to display different text
// for the activities button
let label = new St.Label({ text: _("archlinux"),
style_class: 'activities_text' });
// change the icon_name if you want to display a different icon
// the icon must exist in the appropriate directory
let logo = new St.Icon({ icon_type: St.IconType.FULLCOLOR,
icon_size: hotCornerButton.height,
icon_name: 'archlinux-logo-icon' });
// comment out this line if you do not want an icon displayed
box.add_actor(logo);
// comment out this line if you do not want the label displayed
box.add_actor(label);
Main.panel.button.set_child(box);
}