FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Ubuntu > Kubuntu Development

 
 
LinkBack Thread Tools
 
Old 02-09-2010, 11:47 AM
Harald Sitter
 
Default Fwd: Rev 344: Add initial plasma config scripts to soon replace patches and weird rc files.

Hullos,

I have just done some trials with the new plasma scripting API [1] and
come up with replacement scripts for patch
kubuntu_71_default_plasma_layout.diff from kdebase-workspace.

Since I currently do not have access to either lucid nor a real 4.4.0,
I am unable to test this in action, so if anyone wants to jump in...

The scripts themselfs are rather simple, the one constructing the
desktop (or rather the activity representing the default desktop) just
takes the first activity (which at the time of init is the plasma
default activity) and adds the microblogging plasmoid to the list of
widgets (plasma should take care of proper placement and all).
The panel constructor is of a more cruel kind. It removes the first
panel (again this is the plasma default at the time of init) and
constructs a completely new one with widgets and settings as desired.

[1] http://techbase.kde.org/KDE_System_Administration/PlasmaDesktopScripting

---------- Forwarded message ----------
From: *<noreply@launchpad.net>
Date: Tue, Feb 9, 2010 at 1:37 PM
Subject: [Branch ~kubuntu-members/kubuntu-default-settings/ubuntu] Rev
344: Add initial plasma config scripts to soon replace patches and
weird rc files.
To: Harald Sitter <apachelogger@ubuntu.com>


------------------------------------------------------------
revno: 344
committer: Harald Sitter <me@logos>
branch nick: kds
timestamp: Tue 2010-02-09 13:31:40 +0100
message:
*Add initial plasma config scripts to soon replace patches and weird rc files.
*NOTE: the scripts are currently not used (as indicated by the current
dir name init.off), they are not QAed and incomplete
added:
*share/apps/plasma-desktop/
*share/apps/plasma-desktop/init.off/
*share/apps/plasma-desktop/init.off/01-kubuntu-desktop.js
*share/apps/plasma-desktop/init.off/02-kubuntu-panel.js


--
lp:~kubuntu-members/kubuntu-default-settings/ubuntu
https://code.launchpad.net/~kubuntu-members/kubuntu-default-settings/ubuntu

You are subscribed to branch
lp:~kubuntu-members/kubuntu-default-settings/ubuntu.
To unsubscribe from this branch go to
https://code.launchpad.net/~kubuntu-members/kubuntu-default-settings/ubuntu/+edit-subscription.

=== added directory 'share/apps/plasma-desktop'
=== added directory 'share/apps/plasma-desktop/init.off'
=== added file 'share/apps/plasma-desktop/init.off/01-kubuntu-desktop.js'
--- share/apps/plasma-desktop/init.off/01-kubuntu-desktop.js
1970-01-01 00:00:00 +0000
+++ share/apps/plasma-desktop/init.off/01-kubuntu-desktop.js
2010-02-09 12:31:40 +0000
@@ -0,0 +1,3 @@
+act = activityById(activityIds()[0])
+act.addWidget("twitter")
+// act.addWidget("opendesktop")

=== added file 'share/apps/plasma-desktop/init.off/02-kubuntu-panel.js'
--- share/apps/plasma-desktop/init.off/02-kubuntu-panel.js
1970-01-01 00:00:00 +0000
+++ share/apps/plasma-desktop/init.off/02-kubuntu-panel.js
2010-02-09 12:31:40 +0000
@@ -0,0 +1,18 @@
+old_panel = panelById(panelIds()[0])
+
+var panel = new Panel("panel")
+panel.addWidget("launcher")
+panel.addWidget("quickaccess")
+panel.addWidget("tasks")
+panel.addWidget("showdesktop")
+panel.addWidget("indicatordisplay")
+
+tray = panel.addWidget("systemtray")
+// TODO: embed battery and device notifier
+
+clock = panel.addWidget("digital-clock")
+clock.writeConfig("showDate", "true")
+
+panel.location = "bottom"
+
+old_panel.remove()

--
kubuntu-devel mailing list
kubuntu-devel@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/kubuntu-devel
 

Thread Tools




All times are GMT. The time now is 10:56 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org