summaryrefslogtreecommitdiffstats
path: root/kde4-profiles/Default/org.kde.plasma-desktop.mageia/contents
diff options
context:
space:
mode:
authorJohn Balcaen <mikala@mageia.org>2012-01-14 00:09:41 +0000
committerJohn Balcaen <mikala@mageia.org>2012-01-14 00:09:41 +0000
commitd2fb1b06f2beaa0bfd7dd9ff0e0b9b6c1bd8d298 (patch)
tree2a4c00b0d991b6a16bc154496173bf2f95a6ddb7 /kde4-profiles/Default/org.kde.plasma-desktop.mageia/contents
parent052be3cfc72e1d1b30dde3bca7dcea4d2df78e0b (diff)
downloadconfig-d2fb1b06f2beaa0bfd7dd9ff0e0b9b6c1bd8d298.tar
config-d2fb1b06f2beaa0bfd7dd9ff0e0b9b6c1bd8d298.tar.gz
config-d2fb1b06f2beaa0bfd7dd9ff0e0b9b6c1bd8d298.tar.bz2
config-d2fb1b06f2beaa0bfd7dd9ff0e0b9b6c1bd8d298.tar.xz
config-d2fb1b06f2beaa0bfd7dd9ff0e0b9b6c1bd8d298.zip
- more work on a default mageia panel using icontasks (- based on Peace-'s work from #plasma@freenode)
- add also the .desktop file (without it kde won't be able to use the js.)
Diffstat (limited to 'kde4-profiles/Default/org.kde.plasma-desktop.mageia/contents')
-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()
+