diff options
author | Luc Menut <lmenut@mageia.org> | 2012-03-05 22:29:01 +0000 |
---|---|---|
committer | Luc Menut <lmenut@mageia.org> | 2012-03-05 22:29:01 +0000 |
commit | e92528710cad4100e691b6016fadc5e4647ea040 (patch) | |
tree | 6d7c51532ce0bc3db24b38de10c18911a27e170b /kde4-profiles/Default/share/apps/plasma/layout-templates/org.mageia.plasma-desktop.classicPanel | |
parent | 027a1e4784d5ed71db413853554dc0aed59e9cab (diff) | |
download | config-e92528710cad4100e691b6016fadc5e4647ea040.tar config-e92528710cad4100e691b6016fadc5e4647ea040.tar.gz config-e92528710cad4100e691b6016fadc5e4647ea040.tar.bz2 config-e92528710cad4100e691b6016fadc5e4647ea040.tar.xz config-e92528710cad4100e691b6016fadc5e4647ea040.zip |
- new plasma's configuration :
+ remove system plasma-desktoprc & plasma-desktop-appletsrc
+ add ECMA Script to init & update panel
+ add default panel (using icontasks)
+ add classic panel (using tasks)
- show tooltips in systemsettings by default
Diffstat (limited to 'kde4-profiles/Default/share/apps/plasma/layout-templates/org.mageia.plasma-desktop.classicPanel')
2 files changed, 85 insertions, 0 deletions
diff --git a/kde4-profiles/Default/share/apps/plasma/layout-templates/org.mageia.plasma-desktop.classicPanel/contents/layout.js b/kde4-profiles/Default/share/apps/plasma/layout-templates/org.mageia.plasma-desktop.classicPanel/contents/layout.js new file mode 100644 index 0000000..ba94f85 --- /dev/null +++ b/kde4-profiles/Default/share/apps/plasma/layout-templates/org.mageia.plasma-desktop.classicPanel/contents/layout.js @@ -0,0 +1,69 @@ +function addIcon(appDesktop) { + var w_icon = panel.addWidget("icon"); + w_icon.writeConfig("Url", "file://" + applicationPath(appDesktop)); +} + +var panel = new Panel; +if (panelIds.length == 1) { + // we are the only panel, so set the location for the user + panel.location = 'bottom'; +} + +panel.height = screenGeometry(panel.screen).height > 1024 ? 35 : 27; + +var w_simplelauncher = panel.addWidget("simplelauncher"); +w_simplelauncher.writeConfig("icon", "mgabutton"); +w_simplelauncher.writeConfig("format", "Name"); +w_simplelauncher.writeConfig("showMenuTitles", "true"); +w_simplelauncher.writeConfig("views", "RecentlyUsedApplications,Applications,Favorites,RecentlyUsed,RunCommand,Leave"); +w_simplelauncher.reloadConfig(); + +panel.addWidget("org.kde.showActivityManager"); + +addIcon("dolphin.desktop"); +addIcon("systemsettings.desktop"); +addIcon("mageia-drakconf.desktop"); +addIcon("firefox.desktop"); + +panel.addWidget("pager"); + +panel.addWidget("tasks"); + +var w_systray = panel.addWidget("systemtray"); + +var w_clock = panel.addWidget("digital-clock"); +w_clock.writeConfig("displayHolidays","false"); +w_clock.writeConfig("displayEvents","false"); +w_clock.reloadConfig(); + +panel.addWidget("lockout"); + +var biggestId = 0; +var tmpBiggestId = 0; + +for (var i in activityIds) { + var activity = activityById(activityIds[i]); + if (activity.widgetIds.length > 0) { + tmpBiggestId = Math.max.apply(null, activity.widgetIds); + if (tmpBiggestId > biggestId) { + biggestId = tmpBiggestId; + } + } +} + +for (var i in panelIds) { + var panel = panelById(panelIds[i]); + if (panel.widgetIds.length > 0) { + tmpBiggestId = Math.max.apply(null, panel.widgetIds); + if (tmpBiggestId > biggestId) { + biggestId = tmpBiggestId; + } + } +} + +w_systray.currentConfigGroup = new Array('Applets', biggestId+1); +w_systray.writeConfig('plugin', 'org.kde.telepathy-presence'); +w_systray.currentConfigGroup = new Array(); +w_systray.reloadConfig(); + +sleep(2); diff --git a/kde4-profiles/Default/share/apps/plasma/layout-templates/org.mageia.plasma-desktop.classicPanel/metadata.desktop b/kde4-profiles/Default/share/apps/plasma/layout-templates/org.mageia.plasma-desktop.classicPanel/metadata.desktop new file mode 100644 index 0000000..0045821 --- /dev/null +++ b/kde4-profiles/Default/share/apps/plasma/layout-templates/org.mageia.plasma-desktop.classicPanel/metadata.desktop @@ -0,0 +1,16 @@ +[Desktop Entry] +Encoding=UTF-8 +Name=Mageia Classic Panel +Type=Service +ServiceTypes=Plasma/LayoutTemplate +X-Plasma-Shell=plasma-desktop +X-Plasma-ContainmentCategories=panel +X-KDE-PluginInfo-Author=Luc Menut +X-KDE-PluginInfo-Email=lmenut@mageia.org +X-KDE-PluginInfo-Name=org.mageia.plasma-desktop.classicPanel +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 |