mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-26 14:23:09 +00:00
32 lines
1.1 KiB
JavaScript
32 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.phone.notifications");
|
|
|
|
var panel = new Panel("org.kde.phone.panel");
|
|
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;
|
|
|