summaryrefslogtreecommitdiffstats
path: root/kde4-profiles/Default/share/apps/plasma-desktop/init/00-defaultLayout.js
diff options
context:
space:
mode:
Diffstat (limited to 'kde4-profiles/Default/share/apps/plasma-desktop/init/00-defaultLayout.js')
-rw-r--r--kde4-profiles/Default/share/apps/plasma-desktop/init/00-defaultLayout.js23
1 files changed, 23 insertions, 0 deletions
diff --git a/kde4-profiles/Default/share/apps/plasma-desktop/init/00-defaultLayout.js b/kde4-profiles/Default/share/apps/plasma-desktop/init/00-defaultLayout.js
new file mode 100644
index 0000000..8c53e02
--- /dev/null
+++ b/kde4-profiles/Default/share/apps/plasma-desktop/init/00-defaultLayout.js
@@ -0,0 +1,23 @@
+loadTemplate("org.mageia.plasma-desktop.defaultPanel");
+
+for (var i = 0; i < screenCount; ++i) {
+ var desktop = new Activity("folderview");
+ desktop.name = i18n("Desktop");
+ desktop.screen = i;
+ desktop.wallpaperPlugin = 'image';
+ desktop.wallpaperMode = 'SingleImage';
+ desktop.currentConfigGroup = Array('Wallpaper', 'image');
+ desktop.writeConfig('wallpaper', '/usr/share/mga/backgrounds/default.jpg');
+ desktop.currentConfigGroup = Array();
+
+ //Create more panels for other screens
+ if (i > 0){
+ var panel = new Panel;
+ panel.screen = i;
+ panel.location = 'bottom';
+ panel.height = panels()[i].height = screenGeometry(0).height > 1024 ? 35 : 27;
+ var tasks = panel.addWidget("tasks");
+ tasks.writeConfig("showOnlyCurrentScreen", true);
+ }
+}
+locked = true;