shift-shell/shell/contents/layout.js
Marco Martin e5b479b3f9 try with the standard notification applet
is one of the more complicated, this one
would have already complete support for jobs
and years of bugfixing
2015-09-25 12:20:56 +02:00

33 lines
1.1 KiB
JavaScript

var id = currentActivity();
if (id.length < 1) {
id = createActivity("Homescreen", "org.kde.phone.homescreen")
}
var desktopsArray = desktopsForActivity(id);
for (var j = 0; j < desktopsArray.length; j++) {
desktopsArray[j].wallpaperPlugin = "org.kde.image";
//desktopsArray[j].name = "Homescreen" + (j > 0 ? " " + j : "");
desktopsArray[j].currentConfigGroup = ["Wallpaper",
desktopsArray[j].wallpaperPlugin,
"General"];
desktopsArray[j].writeConfig("Image", "org.kde.plasma.phone.lockers");
}
desktopsForActivity(id)[0].addWidget("org.kde.plasma.analogclock");
var panel = new Panel("org.kde.phone.panel");
panel.addWidget("org.kde.plasma.notifications");
panel.addWidget("org.kde.plasma.networkmanagement");
panel.addWidget("org.kde.plasma.phone.battery");
panel.addWidget("org.kde.plasma.volume");
panel.height = 60;
var bottomPanel = new Panel("org.kde.phone.taskpanel");
bottomPanel.location = "bottom";
if (screenGeometry(bottomPanel.screen).height > screenGeometry(bottomPanel.screen).width)
bottomPanel.height = 150;
else
bottomPanel.height = 60;