desktop-base-kde/kde/apps/plasma-desktop/updates/10-openmamba-panel.js
2011-04-27 22:05:26 +02:00

26 lines
734 B
JavaScript

old_panel = panelById(panelIds[0]);
var panel = new Panel("panel");
launcher = panel.addWidget("launcher");
launcher.globalShortcut = "Alt+F1"
panel.addWidget("pager");
panel.addWidget("tasks");
//panel.addWidget("showdesktop");
systray = panel.addWidget("systemtray");
if (hasBattery) {
systray.currentConfigGroup = new Array("Applets", "1");
systray.writeConfig("plugin", "battery");
}
systray.currentConfigGroup = new Array("Applets", "2");
systray.writeConfig("plugin", "message-indicator");
systray.currentConfigGroup = new Array("Applets", "3");
systray.writeConfig("plugin", "notifier");
clock = panel.addWidget("digital-clock");
clock.writeConfig("showDate", "true");
panel.location = "bottom";
old_panel.remove();