File plasma-change-defaults.diff of Package kdebase4-openSUSE

--- ./plasma/layout-templates/org.kde.plasma-desktop.defaultPanel/contents/layout.js	2011-05-20 22:32:08.000000000 +0200
+++ ./plasma/layout-templates/org.kde.plasma-desktop.defaultPanel/contents/layout.js	2011-10-13 13:12:19.877173319 +0200
@@ -25,14 +25,17 @@ if (freeEdges["bottom"] == true) {
     panel.location = "top";
 }
 
-panel.height = screenGeometry(panel.screen).height > 1024 ? 35 : 27
-panel.addWidget("launcher")
+panel.height = screenGeometry(panel.screen).height > 899 ? 35 : 27
+var launcher = panel.addWidget("launcher")
+launcher.globalShortcut = "Alt+F1";
 panel.addWidget("org.kde.showActivityManager")
 pager = panel.addWidget("pager")
 pager.writeConfig("hideWhenSingleDesktop", "true")
 tasks = panel.addWidget("tasks")
 panel.addWidget("systemtray")
-panel.addWidget("digital-clock")
+var clock = panel.addWidget("digital-clock")
+// avoid akonadi unless akonadi is started
+clock.writeConfig("displayEvents", "false")
 
 tasks.currentConfigGroup = new Array("Launchers")
 tasks.writeConfig("browser", "preferred://browser, , , ")
--- ./plasma-desktop/init/00-defaultLayout.js	2011-05-20 22:32:08.000000000 +0200
+++ ./plasma-desktop/init/00-defaultLayout.js	2011-10-13 13:03:13.251007088 +0200
@@ -1,3 +1,30 @@
+function widgetExists(name)
+{
+    var widgets = knownWidgetTypes;
+    for (i in widgets) {
+        if (widgets[i] == name) {
+            return true;
+        }
+    }
+
+    return false;
+}
+
+var topLeftScreen = 0
+var rect = screenGeometry(0)
+
+// find our "top left" screen to put the folderview on it
+for (var i = 1; i < screenCount; ++i) {
+    var g = screenGeometry(i)
+
+    if (g.x <= rect.x && g.top >= rect.top) {
+        rect = g
+        topLeftScreen = i
+    }
+}
+
+var hasFolderview = widgetExists("folderview");
+
 loadTemplate("org.kde.plasma-desktop.defaultPanel")

 for (var i = 0; i < screenCount; ++i) {
@@ -7,6 +34,11 @@ for (var i = 0; i < screenCount; ++i) {
     desktop.wallpaperPlugin = 'image'
     desktop.wallpaperMode = 'SingleImage'

+    if (hasFolderview && i == topLeftScreen) {
+       var folderview = desktop.addWidget("folderview")
+       folderview.writeConfig("url", "desktop:/")
+    }
+
     //Create more panels for other screens
     if (i > 0){
         var panel = new Panel