summaryrefslogtreecommitdiffstats
path: root/kde4-profiles/Default/org.kde.plasma-desktop.mageia/contents/layout.js
blob: 72358a236c27d040f82ae3e31ca1c87d405a004e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
////////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
    panel.location = 'bottom'
}

panel.height = screenGeometry(panel.screen).height > 1024 ? 35 : 27

panel.addWidget("simplelauncher")
panel.addWidget("showdesktop")
pager = panel.addWidget("pager");
pager.writeGlobalConfig("rows", "1");
var icontasks = panel.addWidget("icontasks")
systray = panel.addWidget("systemtray")
panel.addWidget("digital-clock")

icontasks.currentConfigGroup = new Array("Launchers")
icontasks.writeConfig("Items","file:///usr/share/applications/mageia-drakconf.desktop,file:///usr/share/applications/kde4/systemsettings.desktop")
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()