summaryrefslogtreecommitdiff
path: root/kde-kanotix-settings
diff options
context:
space:
mode:
authorAndreas Loibl <andreas@andreas-loibl.de>2012-05-18 05:56:33 +0200
committerAndreas Loibl <andreas@andreas-loibl.de>2012-05-18 05:56:33 +0200
commitd18ec281cdcf2851180de54620206f394fda255e (patch)
tree323a5773652937eef705869e5bf29136cce72fa1 /kde-kanotix-settings
parente42c2f330d1a997433323977734a26d3ab99f755 (diff)
downloadetcskel-kanotix-d18ec281cdcf2851180de54620206f394fda255e.zip
etcskel-kanotix-d18ec281cdcf2851180de54620206f394fda255e.tar.gz
import changes from debian package version 2.0.0
Diffstat (limited to 'kde-kanotix-settings')
-rw-r--r--kde-kanotix-settings/share/apps/plasma-desktop/init/00-empty.js1
-rw-r--r--kde-kanotix-settings/share/apps/plasma-desktop/updates/01-kanotix-default-lock.js2
-rw-r--r--kde-kanotix-settings/share/apps/plasma-desktop/updates/02-kanotix-default-setup.js70
-rw-r--r--kde-kanotix-settings/share/apps/plasma/layout-templates/com.kanotix.kde.plasma-desktop.defaultActivity/contents/layout.js26
-rw-r--r--kde-kanotix-settings/share/apps/plasma/layout-templates/com.kanotix.kde.plasma-desktop.defaultActivity/metadata.desktop26
-rw-r--r--kde-kanotix-settings/share/apps/plasma/layout-templates/com.kanotix.kde.plasma-desktop.defaultPanel/contents/layout.js53
-rw-r--r--kde-kanotix-settings/share/apps/plasma/layout-templates/com.kanotix.kde.plasma-desktop.defaultPanel/metadata.desktop25
-rw-r--r--kde-kanotix-settings/share/kde4/services/plasma-layout-com.kanotix.kde.plasma-desktop.defaultActivity.desktop26
-rw-r--r--kde-kanotix-settings/share/kde4/services/plasma-layout-com.kanotix.kde.plasma-desktop.defaultPanel.desktop25
9 files changed, 254 insertions, 0 deletions
diff --git a/kde-kanotix-settings/share/apps/plasma-desktop/init/00-empty.js b/kde-kanotix-settings/share/apps/plasma-desktop/init/00-empty.js
new file mode 100644
index 0000000..4812e04
--- /dev/null
+++ b/kde-kanotix-settings/share/apps/plasma-desktop/init/00-empty.js
@@ -0,0 +1 @@
+// empty script that prevent kde executing the default init scripts
diff --git a/kde-kanotix-settings/share/apps/plasma-desktop/updates/01-kanotix-default-lock.js b/kde-kanotix-settings/share/apps/plasma-desktop/updates/01-kanotix-default-lock.js
new file mode 100644
index 0000000..80f258d
--- /dev/null
+++ b/kde-kanotix-settings/share/apps/plasma-desktop/updates/01-kanotix-default-lock.js
@@ -0,0 +1,2 @@
+// lock plasma desktop
+locked = true;
diff --git a/kde-kanotix-settings/share/apps/plasma-desktop/updates/02-kanotix-default-setup.js b/kde-kanotix-settings/share/apps/plasma-desktop/updates/02-kanotix-default-setup.js
new file mode 100644
index 0000000..b7d4a62
--- /dev/null
+++ b/kde-kanotix-settings/share/apps/plasma-desktop/updates/02-kanotix-default-setup.js
@@ -0,0 +1,70 @@
+// if desktop is locked, save current state and unlock
+var was_locked = false;
+if (locked) {
+ was_locked = true
+ locked = false
+}
+
+// remove all panels from desktop
+pIds = panelIds;
+for (i = 0; i < pIds.length; ++i) {
+ p = panelById(pIds[i]);
+ p.remove();
+}
+
+var activity = new Activity
+activity.name = i18n("Desktop");
+activity.wallpaperPlugin = "image";
+activity.wallpaperMode = "SingleImage";
+var wallpaper = "kanotix-starrise";
+activity.currentConfigGroup = new Array("Wallpaper", "image");
+activity.writeConfig("wallpaper", wallpaper);
+activity.writeConfig("userswallpaper", wallpaper);
+
+var folderview = activity.addWidget("folderview");
+folderview.writeConfig("url", userDataPath("desktop"));
+var geometry = screenGeometry(activity.screen).height > 800 ? QRectF(0,0,600,400) : QRectF(0,0,405,200);
+folderview.writeConfig("geometry", geometry);
+
+var panel = new Panel
+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");
+
+// lock again, if it was locked before
+if (was_locked) {
+ locked = true
+}
diff --git a/kde-kanotix-settings/share/apps/plasma/layout-templates/com.kanotix.kde.plasma-desktop.defaultActivity/contents/layout.js b/kde-kanotix-settings/share/apps/plasma/layout-templates/com.kanotix.kde.plasma-desktop.defaultActivity/contents/layout.js
new file mode 100644
index 0000000..8b0966c
--- /dev/null
+++ b/kde-kanotix-settings/share/apps/plasma/layout-templates/com.kanotix.kde.plasma-desktop.defaultActivity/contents/layout.js
@@ -0,0 +1,26 @@
+// take care that the desktop isn't locked
+var was_locked = false;
+if (locked) {
+ was_locked = true;
+ locked = false;
+}
+
+var activity = new Activity
+activity.name = i18n("Desktop");
+activity.wallpaperPlugin = "image";
+activity.wallpaperMode = "SingleImage";
+var wallpaper = "kanotix-starrise";
+activity.currentConfigGroup = new Array("Wallpaper", "image");
+activity.writeConfig("wallpaper", wallpaper);
+activity.writeConfig("userswallpaper", wallpaper);
+
+var folderview = activity.addWidget("folderview");
+folderview.writeConfig("url", userDataPath("desktop"));
+folderview.writeConfig("geometry", QRectF(0,0,600,400));
+
+loadTemplate("com.kanotix.kde.plasma-desktop.defaultPanel");
+
+// restore previous lock state
+if (was_locked) {
+ locked = true;
+}
diff --git a/kde-kanotix-settings/share/apps/plasma/layout-templates/com.kanotix.kde.plasma-desktop.defaultActivity/metadata.desktop b/kde-kanotix-settings/share/apps/plasma/layout-templates/com.kanotix.kde.plasma-desktop.defaultActivity/metadata.desktop
new file mode 100644
index 0000000..b26c48f
--- /dev/null
+++ b/kde-kanotix-settings/share/apps/plasma/layout-templates/com.kanotix.kde.plasma-desktop.defaultActivity/metadata.desktop
@@ -0,0 +1,26 @@
+[Desktop Entry]
+Encoding=UTF-8
+Name=Kanotix Activity
+Name[de]=Aktivität Kanotix
+Name[en_GB]=Kanotix Activity
+Name[es]=Actividad de Kanotix
+Name[fr]=Activité Kanotix
+Name[it]=Attività Kanotix
+Name[pt]=Actividade de Kanotix
+Name[pt_BR]=Atividade Kanotix
+Name[x-test]=xxKanotix Activityxx
+Icon=start-here-kanotix
+Type=Service
+ServiceTypes=Plasma/LayoutTemplate
+X-Plasma-Shell=plasma-desktop
+X-Plasma-ContainmentCategories=desktop
+X-Plasma-ContainmentLayout-ShowAsExisting=true
+X-KDE-PluginInfo-Author=Maximilian Gerhard
+X-KDE-PluginInfo-Email=maxbox@directbox.com
+X-KDE-PluginInfo-Name=com.kanotix.kde.plasma-desktop.defaultActivity
+X-KDE-PluginInfo-Version=1.0
+X-KDE-PluginInfo-Website=http://kanotix.com/
+X-KDE-PluginInfo-Category=
+X-KDE-PluginInfo-Depends=
+X-KDE-PluginInfo-License=GPL
+X-KDE-PluginInfo-EnabledByDefault=true
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;
+}
diff --git a/kde-kanotix-settings/share/apps/plasma/layout-templates/com.kanotix.kde.plasma-desktop.defaultPanel/metadata.desktop b/kde-kanotix-settings/share/apps/plasma/layout-templates/com.kanotix.kde.plasma-desktop.defaultPanel/metadata.desktop
new file mode 100644
index 0000000..c72849b
--- /dev/null
+++ b/kde-kanotix-settings/share/apps/plasma/layout-templates/com.kanotix.kde.plasma-desktop.defaultPanel/metadata.desktop
@@ -0,0 +1,25 @@
+[Desktop Entry]
+Encoding=UTF-8
+Name=Kanotix Panel
+Name[de]=Kanotix-Kontrollleiste
+Name[en_GB]=Kanotix Panel
+Name[es]=Panel Kanotix
+Name[fr]=Tableau de bord par Kanotix
+Name[it]=Pannello Kanotix
+Name[pt]=Painel Kanotix
+Name[pt_BR]=Painel Kanotix
+Name[x-test]=xxKanotix Panelxx
+Icon=start-here-kanotix
+Type=Service
+ServiceTypes=Plasma/LayoutTemplate
+X-Plasma-Shell=plasma-desktop
+X-Plasma-ContainmentCategories=panel
+X-KDE-PluginInfo-Author=Maximilian Gerhard
+X-KDE-PluginInfo-Email=maxbox@directbox.com
+X-KDE-PluginInfo-Name=com.kanotix.kde.plasma-desktop.defaultPanel
+X-KDE-PluginInfo-Version=1.0
+X-KDE-PluginInfo-Website=http://kanotix.com/
+X-KDE-PluginInfo-Category=
+X-KDE-PluginInfo-Depends=
+X-KDE-PluginInfo-License=GPL
+X-KDE-PluginInfo-EnabledByDefault=true
diff --git a/kde-kanotix-settings/share/kde4/services/plasma-layout-com.kanotix.kde.plasma-desktop.defaultActivity.desktop b/kde-kanotix-settings/share/kde4/services/plasma-layout-com.kanotix.kde.plasma-desktop.defaultActivity.desktop
new file mode 100644
index 0000000..b26c48f
--- /dev/null
+++ b/kde-kanotix-settings/share/kde4/services/plasma-layout-com.kanotix.kde.plasma-desktop.defaultActivity.desktop
@@ -0,0 +1,26 @@
+[Desktop Entry]
+Encoding=UTF-8
+Name=Kanotix Activity
+Name[de]=Aktivität Kanotix
+Name[en_GB]=Kanotix Activity
+Name[es]=Actividad de Kanotix
+Name[fr]=Activité Kanotix
+Name[it]=Attività Kanotix
+Name[pt]=Actividade de Kanotix
+Name[pt_BR]=Atividade Kanotix
+Name[x-test]=xxKanotix Activityxx
+Icon=start-here-kanotix
+Type=Service
+ServiceTypes=Plasma/LayoutTemplate
+X-Plasma-Shell=plasma-desktop
+X-Plasma-ContainmentCategories=desktop
+X-Plasma-ContainmentLayout-ShowAsExisting=true
+X-KDE-PluginInfo-Author=Maximilian Gerhard
+X-KDE-PluginInfo-Email=maxbox@directbox.com
+X-KDE-PluginInfo-Name=com.kanotix.kde.plasma-desktop.defaultActivity
+X-KDE-PluginInfo-Version=1.0
+X-KDE-PluginInfo-Website=http://kanotix.com/
+X-KDE-PluginInfo-Category=
+X-KDE-PluginInfo-Depends=
+X-KDE-PluginInfo-License=GPL
+X-KDE-PluginInfo-EnabledByDefault=true
diff --git a/kde-kanotix-settings/share/kde4/services/plasma-layout-com.kanotix.kde.plasma-desktop.defaultPanel.desktop b/kde-kanotix-settings/share/kde4/services/plasma-layout-com.kanotix.kde.plasma-desktop.defaultPanel.desktop
new file mode 100644
index 0000000..c72849b
--- /dev/null
+++ b/kde-kanotix-settings/share/kde4/services/plasma-layout-com.kanotix.kde.plasma-desktop.defaultPanel.desktop
@@ -0,0 +1,25 @@
+[Desktop Entry]
+Encoding=UTF-8
+Name=Kanotix Panel
+Name[de]=Kanotix-Kontrollleiste
+Name[en_GB]=Kanotix Panel
+Name[es]=Panel Kanotix
+Name[fr]=Tableau de bord par Kanotix
+Name[it]=Pannello Kanotix
+Name[pt]=Painel Kanotix
+Name[pt_BR]=Painel Kanotix
+Name[x-test]=xxKanotix Panelxx
+Icon=start-here-kanotix
+Type=Service
+ServiceTypes=Plasma/LayoutTemplate
+X-Plasma-Shell=plasma-desktop
+X-Plasma-ContainmentCategories=panel
+X-KDE-PluginInfo-Author=Maximilian Gerhard
+X-KDE-PluginInfo-Email=maxbox@directbox.com
+X-KDE-PluginInfo-Name=com.kanotix.kde.plasma-desktop.defaultPanel
+X-KDE-PluginInfo-Version=1.0
+X-KDE-PluginInfo-Website=http://kanotix.com/
+X-KDE-PluginInfo-Category=
+X-KDE-PluginInfo-Depends=
+X-KDE-PluginInfo-License=GPL
+X-KDE-PluginInfo-EnabledByDefault=true