diff options
Diffstat (limited to 'kde4-profiles')
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 |