mirror of
https://bitbucket.org/smil3y/kde-workspace.git
synced 2025-02-26 03:42:52 +00:00

the default layout is done via the scripting support, that's just a no go. plasma-default-layoutrc is possible simpler solution with for the madness that the default plasma settings are done on initial setup but it most likely some features will have to be extended, especially the containment size option. hardcoding panel and default view to always be available by setting virtual desktops and other misc settings accordingly seems better but that will probably break more code thus avoiding it for now
18 lines
552 B
JavaScript
18 lines
552 B
JavaScript
loadTemplate("org.kde.plasma-desktop.defaultPanel")
|
|
|
|
for (var i = 0; i < screenCount; ++i) {
|
|
var desktop = new Activity
|
|
desktop.screen = i
|
|
desktop.wallpaperPlugin = 'image'
|
|
desktop.wallpaperMode = 'SingleImage'
|
|
|
|
//Create more panels for other screens
|
|
if (i > 0){
|
|
var panel = new Panel
|
|
panel.screen = i
|
|
panel.location = 'bottom'
|
|
panel.height = screenGeometry(i).height > 1024 ? 35 : 27
|
|
var tasks = panel.addWidget("tasks")
|
|
tasks.writeConfig("showOnlyCurrentScreen", true);
|
|
}
|
|
}
|