summaryrefslogtreecommitdiffstats
path: root/kde4-profiles/Default
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
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')
-rw-r--r--kde4-profiles/Default/org.kde.plasma-desktop.mageia/contents/layout.js57
-rw-r--r--kde4-profiles/Default/org.kde.plasma-desktop.mageia/metadata.desktop5
-rw-r--r--kde4-profiles/Default/plasma-layout-org.kde.plasma-desktop.mageia.desktop16
3 files changed, 70 insertions, 8 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()
+
diff --git a/kde4-profiles/Default/org.kde.plasma-desktop.mageia/metadata.desktop b/kde4-profiles/Default/org.kde.plasma-desktop.mageia/metadata.desktop
index cad3c8e..6cc6cf9 100644
--- a/kde4-profiles/Default/org.kde.plasma-desktop.mageia/metadata.desktop
+++ b/kde4-profiles/Default/org.kde.plasma-desktop.mageia/metadata.desktop
@@ -7,10 +7,11 @@ X-Plasma-Shell=plasma-desktop
X-Plasma-ContainmentCategories=panel
X-KDE-PluginInfo-Author=Balcaen John
X-KDE-PluginInfo-Email=mikala@mageia.org
-X-KDE-PluginInfo-Name=org.kde.plasma-desktop.defaultMageia
-X-KDE-PluginInfo-Version=1.0
+X-KDE-PluginInfo-Name=org.kde.plasma-desktop.mageia
+X-KDE-PluginInfo-Version=0.1
X-KDE-PluginInfo-Website=http://www.mageia.org
X-KDE-PluginInfo-Category=
X-KDE-PluginInfo-Depends=
X-KDE-PluginInfo-License=GPL
X-KDE-PluginInfo-EnabledByDefault=true
+
diff --git a/kde4-profiles/Default/plasma-layout-org.kde.plasma-desktop.mageia.desktop b/kde4-profiles/Default/plasma-layout-org.kde.plasma-desktop.mageia.desktop
new file mode 100644
index 0000000..dc8ea31
--- /dev/null
+++ b/kde4-profiles/Default/plasma-layout-org.kde.plasma-desktop.mageia.desktop
@@ -0,0 +1,16 @@
+[Desktop Entry]
+Encoding=UTF-8
+Name=Mageia Default Panel
+Type=Service
+ServiceTypes=Plasma/LayoutTemplate
+X-Plasma-Shell=plasma-desktop
+X-Plasma-ContainmentCategories=panel
+X-KDE-PluginInfo-Author=Balcaen John
+X-KDE-PluginInfo-Email=mikala@mageia.org
+X-KDE-PluginInfo-Name=org.kde.plasma-desktop.mageia
+X-KDE-PluginInfo-Version=1.0
+X-KDE-PluginInfo-Website=http://www.mageia.org/
+X-KDE-PluginInfo-Category=
+X-KDE-PluginInfo-Depends=
+X-KDE-PluginInfo-License=GPL
+X-KDE-PluginInfo-EnabledByDefault=true