summaryrefslogtreecommitdiff
path: root/plasma-desktop/updates/01-kanotix-default-setup.js
blob: 23caacaccbfa6b2a91bc403debac1b1f99ba7bfb (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
var activity = activityForScreen(0);

var panel = new Panel("panel");
panel.location = "bottom";
launcher = panel.addWidget("launcher");
launcher.globalShortcut = "Alt+F1"
launcher.writeConfig("Share", "false");
launcher.writeConfig("icon", "start-here-kanotix");
launcher.reloadConfig();
panel.addWidget("showdesktop");

dolphinIcon = panel.addWidget("icon");
dolphinIcon.writeConfig("Url", "file:///usr/share/applications/kde4/dolphin.desktop");
dolphinIcon.reloadConfig();

iceweaselIcon = panel.addWidget("icon");
iceweaselIcon.writeConfig("Url", "file:///usr/share/applications/iceweasel.desktop");
iceweaselIcon.reloadConfig();

konsoleIcon = panel.addWidget("icon");
konsoleIcon.writeConfig("Url", "file:///usr/share/applications/kde4/konsole.desktop");
konsoleIcon.reloadConfig();

panel.addWidget("pager");
panel.addWidget("tasks");

systray = panel.addWidget("systemtray");
i = 0;
if (hasBattery) {
    systray.currentConfigGroup = new Array("Applets", ++i);
    systray.writeConfig("plugin", "battery");
}
systray.currentConfigGroup = new Array("Applets", ++i);
systray.writeConfig("plugin", "notifier");

clock = panel.addWidget("digital-clock");
clock.writeConfig("showDate", "true");