summaryrefslogtreecommitdiffstats
path: root/kde4-profiles/Default/org.kde.plasma-desktop.mageia/contents/layout.js
blob: 6cc585a241625135c6d9a31e6d5466b614ad6eaa (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
////////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")
panel.addWidget("systemtray")
panel.addWidget("digital-clock")

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()