From 4df67e68bf0819fa386f6255e8b8da2c1685a641 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20L=C3=A9cureuil?= Date: Wed, 27 Apr 2016 14:31:27 +0200 Subject: Remove modifed layout.js --- .../org.kde.plasma.desktop/contents/layout.js | 117 --------------------- 1 file changed, 117 deletions(-) delete mode 100644 usr/share/plasma/shells/org.kde.plasma.desktop/contents/layout.js diff --git a/usr/share/plasma/shells/org.kde.plasma.desktop/contents/layout.js b/usr/share/plasma/shells/org.kde.plasma.desktop/contents/layout.js deleted file mode 100644 index 0913539..0000000 --- a/usr/share/plasma/shells/org.kde.plasma.desktop/contents/layout.js +++ /dev/null @@ -1,117 +0,0 @@ -loadTemplate("org.mageia.plasma.desktop.defaultPanel") - -var panel = new Panel -var panelScreen = panel.screen -var freeEdges = {"bottom": true, "top": true, "left": true, "right": true} - -for (i = 0; i < panelIds.length; ++i) { - var tmpPanel = panelById(panelIds[i]) - if (tmpPanel.screen == panelScreen) { - // Ignore the new panel - if (tmpPanel.id != panel.id) { - freeEdges[tmpPanel.location] = false; - } - } -} - -if (freeEdges["bottom"] == true) { - panel.location = "bottom"; -} else if (freeEdges["top"] == true) { - panel.location = "top"; -} else if (freeEdges["left"] == true) { - panel.location = "left"; -} else if (freeEdges["right"] == true) { - panel.location = "right"; -} else { - // There is no free edge, so leave the default value - panel.location = "top"; -} - - -for (var i = 0; i < screenCount; ++i) { - var id = createActivity("Desktop", "org.kde.plasma.folder") - var desktopsArray = desktopsForActivity(id); - for( var j = 0; j < desktopsArray.length; j++) { - desktopsArray[j].wallpaperPlugin = 'org.kde.image' - desktopsArray[j].wallpaperMode = 'SingleImage' - desktopsArray[j].currentConfigGroup = new Array("General") - desktopsArray[j].writeConfig("pressToMove",true) - desktopsArray[j].writeConfig("showToolbox",false) - desktopsArray[j].writeConfig("toolTips", "true") - desktopsArray[j].writeConfig("selectionMarkers",false) - desktopsArray[j].writeConfig("sortMode","-1") - desktopsArray[j].currentConfigGroup = new Array("Wallpaper", "org.kde.image", "General") - desktopsArray[j].writeConfig("Image", "file:///usr/share/mga/backgrounds/default.jpg") - desktopsArray[j].writeConfig("FillMode","2") - } - -// 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) - } -} - -panel.height = gridUnit * 2 - -var kickoff = panel.addWidget("org.kde.plasma.kickoff") -kickoff.currentConfigGroup = ["Shortcuts"] -kickoff.writeConfig("global", "Alt+F1") - -//panel.addWidget("org.kde.plasma.showActivityManager") -panel.addWidget("org.kde.plasma.pager") -panel.addWidget("org.kde.plasma.taskmanager") - -/* Next up is determining whether to add the Input Method Panel - * widget to the panel or not. This is done based on whether - * the system locale's language id is a member of the following - * white list of languages which are known to pull in one of - * our supported IME backends when chosen during installation - * of common distributions. */ - -var langIds = ["as", // Assamese - "bn", // Bengali - "bo", // Tibetan - "brx", // Bodo - "doi", // Dogri - "gu", // Gujarati - "hi", // Hindi - "ja", // Japanese - "kn", // Kannada - "ko", // Korean - "kok", // Konkani - "ks", // Kashmiri - "lep", // Lepcha - "mai", // Maithili - "ml", // Malayalam - "mni", // Manipuri - "mr", // Marathi - "ne", // Nepali - "or", // Odia - "pa", // Punjabi - "sa", // Sanskrit - "sat", // Santali - "sd", // Sindhi - "si", // Sinhala - "ta", // Tamil - "te", // Telugu - "th", // Thai - "ur", // Urdu - "vi", // Vietnamese - "zh_CN", // Simplified Chinese - "zh_TW"] // Traditional Chinese - -if (langIds.indexOf(languageId) != -1) { - panel.addWidget("org.kde.plasma.kimpanel"); -} - -panel.addWidget("org.kde.plasma.systemtray") -panel.addWidget("org.kde.plasma.digitalclock") - -//sleep(1) -// lock desktop -//locked = true; -- cgit v1.2.1