Install plasma-desktop update script for KDE 4.7
This commit is contained in:
parent
b855d46f2f
commit
4ac35f2e2d
3
Makefile
3
Makefile
@ -46,6 +46,7 @@ kdeautostartdir = ${kdedatadir}/autostart
|
||||
kdeconfigdir = ${kdedatadir}/config
|
||||
kdewallpapersdir = ${kdedatadir}/wallpapers
|
||||
kdeappsdir = ${kdedatadir}/apps
|
||||
kdeplasmadesktopupdatesdir = ${kdeappsdir}/plasma-desktop/updates
|
||||
localesdir = ${kdedatadir}/locale
|
||||
|
||||
xdg_appsdir = ${datadir}/applications
|
||||
@ -121,6 +122,7 @@ install-kde-distro-addons: dist-update
|
||||
@$(INSTALL_DIR) $(DESTDIR)$(kdebindir)
|
||||
@$(INSTALL_DIR) $(DESTDIR)$(kdeconfigdir)
|
||||
@$(INSTALL_DIR) $(DESTDIR)$(kdewallpapersdir)
|
||||
@$(INSTALL_DIR) $(DESTDIR)$(kdeplasmadesktopupdatesdir)
|
||||
@$(INSTALL_DIR) $(DESTDIR)$(xprofiledir)
|
||||
$(INSTALL_DATA) etc/pam.d/kde $(DESTDIR)$(sysconfdir)/pam.d/
|
||||
$(INSTALL_DATA) etc/pam.d/kde-np $(DESTDIR)$(sysconfdir)/pam.d/
|
||||
@ -147,6 +149,7 @@ install-kde-distro-addons: dist-update
|
||||
$(INSTALL_DATA) kde/config/plasma-desktoprc $(DESTDIR)$(kdeconfigdir)/plasma-desktoprc
|
||||
$(INSTALL_DATA) kde/config/powerdevilrc $(DESTDIR)$(kdeconfigdir)/powerdevilrc
|
||||
$(INSTALL_DATA) kde/config/oxygenrc $(DESTDIR)$(kdeconfigdir)/oxygenrc
|
||||
$(INSTALL_DATA) kde/apps/plasma-desktop/updates/10-openmamba-theme.js $(DESTDIR)$(kdeplasmadesktopupdatesdir)/10-openmamba-theme.js
|
||||
cp -a kde/wallpapers/$(WALLPAPER) $(DESTDIR)$(kdewallpapersdir)
|
||||
cp -a kde/desktoptheme $(DESTDIR)$(kdeappsdir)/
|
||||
$(INSTALL_SCRIPT) bin/kickoffcfg $(DESTDIR)$(kdebindir)/kickoffcfg
|
||||
|
@ -1,25 +0,0 @@
|
||||
old_panel = panelById(panelIds[0]);
|
||||
|
||||
var panel = new Panel("panel");
|
||||
launcher = panel.addWidget("launcher");
|
||||
launcher.globalShortcut = "Alt+F1"
|
||||
panel.addWidget("pager");
|
||||
panel.addWidget("tasks");
|
||||
//panel.addWidget("showdesktop");
|
||||
|
||||
systray = panel.addWidget("systemtray");
|
||||
if (hasBattery) {
|
||||
systray.currentConfigGroup = new Array("Applets", "1");
|
||||
systray.writeConfig("plugin", "battery");
|
||||
}
|
||||
systray.currentConfigGroup = new Array("Applets", "2");
|
||||
systray.writeConfig("plugin", "message-indicator");
|
||||
systray.currentConfigGroup = new Array("Applets", "3");
|
||||
systray.writeConfig("plugin", "notifier");
|
||||
|
||||
clock = panel.addWidget("digital-clock");
|
||||
clock.writeConfig("showDate", "true");
|
||||
|
||||
panel.location = "bottom";
|
||||
|
||||
old_panel.remove();
|
48
kde/apps/plasma-desktop/updates/10-openmamba-theme.js
Normal file
48
kde/apps/plasma-desktop/updates/10-openmamba-theme.js
Normal file
@ -0,0 +1,48 @@
|
||||
theme='openmamba'
|
||||
|
||||
/*pids = panelIds
|
||||
for (i = 0; i < pids.length; ++i) {
|
||||
p = panelById(pids[i])
|
||||
if (!p) continue
|
||||
p.remove()
|
||||
}*/
|
||||
|
||||
aids = activityIds
|
||||
for (i = 0; i < aids.length; ++i) {
|
||||
a = activityById(aids[i])
|
||||
if (!a) continue
|
||||
// if (a.type == 'folderview') a.remove()
|
||||
a.remove()
|
||||
}
|
||||
|
||||
/*loadTemplate("org.kde.plasma-desktop.defaultPanel")*/
|
||||
|
||||
for (var i = 0; i < screenCount; ++i) {
|
||||
var desktop = new Activity('folderview')
|
||||
desktop.name = i18n("Desktop")
|
||||
desktop.writeConfig('plugin','folderview')
|
||||
desktop.screen = i
|
||||
desktop.wallpaperPlugin = 'image'
|
||||
desktop.wallpaperMode = 'SingleImage'
|
||||
|
||||
//Create more panels for other screens
|
||||
if (i > 0) {
|
||||
var panel = new Panel
|
||||
panel.screen = i
|
||||
panel.location = 'bottom'
|
||||
panel.height = panels()[i].height = screenGeometry(0).height > 1024 ? 35 : 27
|
||||
var tasks = panel.addWidget("tasks")
|
||||
tasks.writeConfig("showOnlyCurrentScreen", true);
|
||||
}
|
||||
}
|
||||
|
||||
aids = activityIds
|
||||
for (i = 0; i < aids.length; ++i) {
|
||||
a = activityById(aids[i])
|
||||
if (!a) continue
|
||||
a.currentConfigGroup = new Array("Wallpaper", "image")
|
||||
a.writeConfig("slidepaths", "/opt/kde/share/wallpapers")
|
||||
a.writeConfig("wallpaper", "openmamba_Bamboo")
|
||||
a.writeConfig("userwallpaper", "openmamba_Bamboo")
|
||||
a.writeConfig("wallpapercolor", "17,188,51")
|
||||
}
|
Loading…
Reference in New Issue
Block a user