Differential D24223 Diff 66849 lookandfeel/redmond/contents/layouts/org.kde.plasma.desktop-layout.js
Changeset View
Changeset View
Standalone View
Standalone View
lookandfeel/redmond/contents/layouts/org.kde.plasma.desktop-layout.js
- This file was added.
1 | var plasma = getApiVersion(1) | ||||
---|---|---|---|---|---|
2 | | ||||
3 | | ||||
4 | | ||||
5 | // Bottom panel taskbar with Kickoff, search, Icons-Only Task Manager, system | ||||
6 | // tray, clock, and "minimize all" widget | ||||
7 | var taskbar = new Panel | ||||
8 | taskbar.location = "bottom" | ||||
9 | taskbar.height = gridUnit * 3 | ||||
10 | | ||||
11 | // TODO: Maybe substitute of those 3rd-party menus that looks like the Win10 start menu | ||||
12 | var kickoff = taskbar.addWidget("org.kde.plasma.kickoff") | ||||
13 | kickoff.currentConfigGroup = ["Shortcuts"] | ||||
14 | kickoff.writeConfig("global", "Alt+F1") | ||||
15 | | ||||
16 | // Show a button to trigger KRunner | ||||
17 | taskbar.addWidget("org.kde.milou") | ||||
18 | | ||||
19 | // Add an IOTM and pre-populate it with a minimal assortment of apps | ||||
20 | var iotm = taskbar.addWidget("org.kde.plasma.icontasks") | ||||
21 | iotm.currentConfigGroup = ["Configuration", "General"] | ||||
22 | iotm.writeConfig("launchers", ["preferred://browser", "applications:org.kde.dolphin.desktop"]) | ||||
23 | | ||||
24 | taskbar.addWidget("org.kde.plasma.systemtray") | ||||
25 | | ||||
26 | // Show the full date in the clock | ||||
27 | var clock = taskbar.addWidget("org.kde.plasma.digitalclock") | ||||
28 | clock.currentConfigGroup = ["Configuration", "Appearance"] | ||||
29 | clock.writeConfig("showDate", "true") | ||||
30 | | ||||
31 | taskbar.addWidget("org.kde.plasma.minimizeall") | ||||
32 | | ||||
33 | | ||||
34 | | ||||
35 | // Right panel sidebar that holds notification history | ||||
36 | var sidebar = new Panel | ||||
37 | sidebar.location = "right" | ||||
38 | sidebar.height = gridUnit * 20 | ||||
39 | sidebar.hiding = "autohide" | ||||
40 | | ||||
41 | sidebar.addWidget("org.kde.plasma.notifications") |