Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:12.2
kdebase4-openSUSE
plasma-change-defaults.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File plasma-change-defaults.diff of Package kdebase4-openSUSE
--- ./usr/share/kde4/apps/plasma/layout-templates/org.kde.plasma-desktop.defaultPanel/contents/layout.js 2011-05-20 22:32:08.000000000 +0200 +++ ./usr/share/kde4/apps/plasma/layout-templates/org.kde.plasma-desktop.defaultPanel/contents/layout.js 2011-10-13 13:12:19.877173319 +0200 @@ -4,13 +4,16 @@ panel.location = 'bottom' } -panel.height = screenGeometry(panel.screen).height > 1024 ? 35 : 27 -panel.addWidget("launcher") +panel.height = screenGeometry(panel.screen).height > 899 ? 35 : 27 +var launcher = panel.addWidget("launcher") +launcher.globalShortcut = "Alt+F1"; panel.addWidget("org.kde.showActivityManager") panel.addWidget("pager") tasks = panel.addWidget("tasks") panel.addWidget("systemtray") -panel.addWidget("digital-clock") +var clock = panel.addWidget("digital-clock") +// avoid akonadi unless akonadi is started +clock.writeConfig("displayEvents", "false") tasks.currentConfigGroup = new Array("Launchers") tasks.writeConfig("browser", "preferred://browser, , , ") --- ./usr/share/kde4/apps/plasma-desktop/init/00-defaultLayout.js 2011-05-20 22:32:08.000000000 +0200 +++ ./usr/share/kde4/apps/plasma-desktop/init/00-defaultLayout.js 2011-10-13 13:03:13.251007088 +0200 @@ -1,3 +1,30 @@ +function widgetExists(name) +{ + var widgets = knownWidgetTypes; + for (i in widgets) { + if (widgets[i] == name) { + return true; + } + } + + return false; +} + +var topLeftScreen = 0 +var rect = screenGeometry(0) + +// find our "top left" screen to put the folderview on it +for (var i = 1; i < screenCount; ++i) { + var g = screenGeometry(i) + + if (g.x <= rect.x && g.top >= rect.top) { + rect = g + topLeftScreen = i + } +} + +var hasFolderview = widgetExists("folderview"); + loadTemplate("org.kde.plasma-desktop.defaultPanel") for (var i = 0; i < screenCount; ++i) { @@ -7,6 +34,11 @@ desktop.wallpaperPlugin = 'image' desktop.wallpaperMode = 'SingleImage' + if (hasFolderview && i == topLeftScreen) { + var folderview = desktop.addWidget("folderview") + folderview.writeConfig("url", "desktop:/") + } + //Create more panels for other screens if (i > 0){ var panel = new Panel
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor