summaryrefslogtreecommitdiffstats
path: root/kde4-profiles/Default/org.kde.plasma-desktop.mageia/contents/layout.js
diff options
context:
space:
mode:
Diffstat (limited to 'kde4-profiles/Default/org.kde.plasma-desktop.mageia/contents/layout.js')
-rw-r--r--kde4-profiles/Default/org.kde.plasma-desktop.mageia/contents/layout.js57
1 files changed, 51 insertions, 6 deletions
diff --git a/kde4-profiles/Default/org.kde.plasma-desktop.mageia/contents/layout.js b/kde4-profiles/Default/org.kde.plasma-desktop.mageia/contents/layout.js
index ec5d473..6cc585a 100644
--- a/kde4-profiles/Default/org.kde.plasma-desktop.mageia/contents/layout.js
+++ b/kde4-profiles/Default/org.kde.plasma-desktop.mageia/contents/layout.js
@@ -1,3 +1,38 @@
+////////function remove in case of error of first remove :S
+
+function remove()
+{
+ for (i in panelIds) {
+
+
+ panelById(panelIds[i]).remove()
+ }
+
+}
+//////////////////////////////////////////////////////////
+
+
+/////function remove standard///////////////////////////////
+function RemoveOldPanels()
+{
+ for (i in panelIds) {
+ // panelById(panelIds[i]).remove()
+ p = panelById(panelIds[i]);
+ if (typeof p === "undefined") {
+ print("E: Couldn't find first panel");
+ remove() //load the remove function in case of problems
+ }
+ else {
+ panelById(panelIds[i]).remove()
+ }
+ }
+}
+
+//RemoveOldPanels() //load the function
+ //////////////////////////////////////////////////////////
+
+function mageiapanel(){
+
var panel = new Panel
if (panelIds.length == 1) {
// we are the only panel, so set the location for the user
@@ -5,14 +40,24 @@ if (panelIds.length == 1) {
}
panel.height = screenGeometry(panel.screen).height > 1024 ? 35 : 27
+
panel.addWidget("simplelauncher")
-panel.addWidget("notifier")
panel.addWidget("showdesktop")
-panel.addWidget("pager")
-tasks = panel.addWidget("icontasks")
+pager = panel.addWidget("pager");
+pager.writeGlobalConfig("rows", "1");
+var icontasks = panel.addWidget("icontasks")
panel.addWidget("systemtray")
panel.addWidget("digital-clock")
-tasks.currentConfigGroup = new Array("Launchers")
-tasks.writeConfig("browser", "preferred://browser, , , ")
-tasks.writeConfig("filemanager", "preferred://filemanager, , , ")
+icontasks.currentConfigGroup = new Array("Launchers")
+icontasks.writeConfig("browser", "preferred://browser, , , ")
+icontasks.writeConfig("filemanager", "preferred://filemanager, , , ")
+icontasks.writeConfig("showOnlyCurrentActivity","false");
+icontasks.writeConfig("showOnlyCurrentDesktop","false");
+icontasks.writeConfig("showOnlyCurrentScreen","false");
+icontasks.writeConfig("style","1");
+
+}
+
+mageiapanel()
+