diff options
author | Andreas Loibl <andreas@andreas-loibl.de> | 2012-05-18 05:56:33 +0200 |
---|---|---|
committer | Andreas Loibl <andreas@andreas-loibl.de> | 2012-05-18 05:56:33 +0200 |
commit | d18ec281cdcf2851180de54620206f394fda255e (patch) | |
tree | 323a5773652937eef705869e5bf29136cce72fa1 /kde-kanotix-settings/share/apps/plasma/layout-templates/com.kanotix.kde.plasma-desktop.defaultPanel/contents | |
parent | e42c2f330d1a997433323977734a26d3ab99f755 (diff) | |
download | etcskel-kanotix-d18ec281cdcf2851180de54620206f394fda255e.zip etcskel-kanotix-d18ec281cdcf2851180de54620206f394fda255e.tar.gz |
import changes from debian package version 2.0.0
Diffstat (limited to 'kde-kanotix-settings/share/apps/plasma/layout-templates/com.kanotix.kde.plasma-desktop.defaultPanel/contents')
-rw-r--r-- | kde-kanotix-settings/share/apps/plasma/layout-templates/com.kanotix.kde.plasma-desktop.defaultPanel/contents/layout.js | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/kde-kanotix-settings/share/apps/plasma/layout-templates/com.kanotix.kde.plasma-desktop.defaultPanel/contents/layout.js b/kde-kanotix-settings/share/apps/plasma/layout-templates/com.kanotix.kde.plasma-desktop.defaultPanel/contents/layout.js new file mode 100644 index 0000000..5ef8092 --- /dev/null +++ b/kde-kanotix-settings/share/apps/plasma/layout-templates/com.kanotix.kde.plasma-desktop.defaultPanel/contents/layout.js @@ -0,0 +1,53 @@ +// take care that desktop isn't locked +var was_locked = false; +if (locked) { + was_locked = true; + locked = false; +} + +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; +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", applicationPath("dolphin.desktop")); + +webbrowserIcon = panel.addWidget("icon"); +webbrowserIcon.writeConfig("Url", applicationPath("x-www-browser.desktop")); + +konsoleIcon = panel.addWidget("icon"); +konsoleIcon.writeConfig("Url", applicationPath("konsole.desktop")); + +panel.addWidget("pager") +panel.addWidget("tasks") + +systray = panel.addWidget("systemtray"); +systray.writeConfig("alwaysShown", "notifier"); +i = 0; +if (hasBattery) { + systray.currentConfigGroup = new Array("Applets", ++i); + systray.writeConfig("plugin", "battery"); +} +systray.currentConfigGroup = new Array("Applets", ++i); +systray.writeConfig("plugin", "notifier"); + +systray.currentConfigGroup = new Array("Applets", ++i); +systray.writeConfig("plugin", "org.kde.networkmanagement"); + +clock = panel.addWidget("digital-clock"); +clock.writeConfig("showDate", "true"); + +// restore previous lock state +if (was_locked) { + locked = true; +} |