diff options
author | Holger Paradies <retabell@gmx.de> | 2017-10-31 22:36:01 +0100 |
---|---|---|
committer | Holger Paradies <retabell@gmx.de> | 2017-10-31 22:36:01 +0100 |
commit | eca271b994c614d82e9b5bfacfab3e69114852ed (patch) | |
tree | e84ffa40cea6811267b9b5072ae12e7e26d7fec3 /kf5-kanotix-settings/share/plasma/layout-templates/org.kde.plasma.desktop.kanotixPanel | |
parent | 0eb500371df987dd06423157b47edd2617fb77b8 (diff) | |
download | etcskel-kanotix-eca271b994c614d82e9b5bfacfab3e69114852ed.zip etcskel-kanotix-eca271b994c614d82e9b5bfacfab3e69114852ed.tar.gz |
kf5 Desktop Theme and Layouts
Diffstat (limited to 'kf5-kanotix-settings/share/plasma/layout-templates/org.kde.plasma.desktop.kanotixPanel')
3 files changed, 131 insertions, 0 deletions
diff --git a/kf5-kanotix-settings/share/plasma/layout-templates/org.kde.plasma.desktop.kanotixPanel/contents/layout.js b/kf5-kanotix-settings/share/plasma/layout-templates/org.kde.plasma.desktop.kanotixPanel/contents/layout.js new file mode 100644 index 0000000..3231673 --- /dev/null +++ b/kf5-kanotix-settings/share/plasma/layout-templates/org.kde.plasma.desktop.kanotixPanel/contents/layout.js @@ -0,0 +1,91 @@ +var panel = new Panel +var panelScreen = panel.screen +var freeEdges = {"bottom": true, "top": true, "left": true, "right": true} + +for (i = 0; i < panelIds.length; ++i) { + var tmpPanel = panelById(panelIds[i]) + if (tmpPanel.screen == panelScreen) { + // Ignore the new panel + if (tmpPanel.id != panel.id) { + freeEdges[tmpPanel.location] = false; + } + } +} + +if (freeEdges["bottom"] == true) { + panel.location = "bottom"; +} else if (freeEdges["top"] == true) { + panel.location = "top"; +} else if (freeEdges["left"] == true) { + panel.location = "left"; +} else if (freeEdges["right"] == true) { + panel.location = "right"; +} else { + // There is no free edge, so leave the default value + panel.location = "top"; +} + +panel.height = gridUnit * 2.45 + +var kickoff = panel.addWidget("org.kde.plasma.kickoff") +kickoff.currentConfigGroup = ["Shortcuts"] +kickoff.writeConfig("global", "Alt+F1") + +//panel.addWidget("Kanotix-Design, Icon = Mini-All, Dolphin, Konsole, Webbrowser") +panel.addWidget("org.kde.plasma.minimizeall") +dolphinIcon = panel.addWidget("org.kde.plasma.icon") +dolphinIcon.writeConfig("url", "file:///usr/share/applications/org.kde.dolphin.desktop") +konsoleIcon = panel.addWidget("org.kde.plasma.icon") +konsoleIcon.writeConfig("url", "file:///usr/share/applications/org.kde.konsole.desktop") +webbrowserIcon = panel.addWidget("org.kde.plasma.icon") +webbrowserIcon.writeConfig("url", "file:///usr/share/applications/x-www-browser.desktop") + +//panel.addWidget("org.kde.plasma.showActivityManager") +panel.addWidget("org.kde.plasma.pager") +panel.addWidget("org.kde.plasma.taskmanager") + +/* Next up is determining whether to add the Input Method Panel + * widget to the panel or not. This is done based on whether + * the system locale's language id is a member of the following + * white list of languages which are known to pull in one of + * our supported IME backends when chosen during installation + * of common distributions. */ + +var langIds = ["as", // Assamese + "bn", // Bengali + "bo", // Tibetan + "brx", // Bodo + "doi", // Dogri + "gu", // Gujarati + "hi", // Hindi + "ja", // Japanese + "kn", // Kannada + "ko", // Korean + "kok", // Konkani + "ks", // Kashmiri + "lep", // Lepcha + "mai", // Maithili + "ml", // Malayalam + "mni", // Manipuri + "mr", // Marathi + "ne", // Nepali + "or", // Odia + "pa", // Punjabi + "sa", // Sanskrit + "sat", // Santali + "sd", // Sindhi + "si", // Sinhala + "ta", // Tamil + "te", // Telugu + "th", // Thai + "ur", // Urdu + "vi", // Vietnamese + "zh_CN", // Simplified Chinese + "zh_TW"] // Traditional Chinese + +if (langIds.indexOf(languageId) != -1) { + panel.addWidget("org.kde.plasma.kimpanel"); +} + +panel.addWidget("org.kde.plasma.systemtray") +panel.addWidget("org.kde.plasma.digitalclock") diff --git a/kf5-kanotix-settings/share/plasma/layout-templates/org.kde.plasma.desktop.kanotixPanel/metadata.desktop b/kf5-kanotix-settings/share/plasma/layout-templates/org.kde.plasma.desktop.kanotixPanel/metadata.desktop new file mode 100644 index 0000000..6cbfdb4 --- /dev/null +++ b/kf5-kanotix-settings/share/plasma/layout-templates/org.kde.plasma.desktop.kanotixPanel/metadata.desktop @@ -0,0 +1,16 @@ +[Desktop Entry] +Encoding=UTF-8 +Name=Kanotix Panel +Type=Service +ServiceTypes=Plasma/LayoutTemplate +X-Plasma-Shell=plasmashell +X-Plasma-ContainmentCategories=panel +X-KDE-PluginInfo-Author=Holger Paradies +X-KDE-PluginInfo-Email=retabell@gmx.de +X-KDE-PluginInfo-Name=org.kde.plasma.desktop.kanotixPanel +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/kf5-kanotix-settings/share/plasma/layout-templates/org.kde.plasma.desktop.kanotixPanel/metadata.json b/kf5-kanotix-settings/share/plasma/layout-templates/org.kde.plasma.desktop.kanotixPanel/metadata.json new file mode 100644 index 0000000..4398ba6 --- /dev/null +++ b/kf5-kanotix-settings/share/plasma/layout-templates/org.kde.plasma.desktop.kanotixPanel/metadata.json @@ -0,0 +1,24 @@ +{ + "KPlugin": { + "Authors": [ + { + "Email": "retabell@gmx.de", + "Name": "Holger Paradies" + } + ], + "Category": "", + "Dependencies": [ + ], + "EnabledByDefault": true, + "Id": "org.kde.plasma.desktop.kanotixPanel", + "License": "GPL", + "Name": "Kanotix Panel", + "ServiceTypes": [ + "Plasma/LayoutTemplate" + ], + "Version": "1.0", + "Website": "http://kanotix.com/" + }, + "X-Plasma-ContainmentCategories": "panel", + "X-Plasma-Shell": "plasmashell" +} |