[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-panel-devel
Subject:    plasma search and launch javasscripting
From:       Nowardev-Team <nowardev () gmail ! com>
Date:       2013-02-01 11:48:17
Message-ID: CAL6cU-1kVZEGvx8k8cQYB4my+2RVQecb_QGYSsQAVFvnv6w78w () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


 i am trying to scripting plasma to be like gnome2 gnome3 chrome os unity ,
i know that this could be sound bad but... i think that plasma can be what
unity is not ... anyway....

> ) i was trying to write chromeOS activity better


 and i tried to do that with Search and Launch "desktop layout"

i was able to customize it but not the stripwidget

i tried to use the array but it did not work :S

///CHROMEOS ACTIVITY
var screenrect = screenGeometry(0) // get information about your screen h w

function chromeos(){

  var activity = new Activity("sal")
activity.name = i18n("ChromeOs Activity")
activity.writeConfig("EnabledEntries","plasma-sal-bookmarks.desktop,plasma-sal-contact \
s.desktop,plasma-sal-multimedia.desktop,plasma-sal-internet.desktop,plasma-sal-graphics.desktop,plasma-sal-games.desktop,plasma-sal-office.desktop")
 activity.wallpaperPlugin = "image"
activity.wallpaperMode = "SingleImage"
activity.currentConfigGroup = Array("Wallpaper", "image")
activity.writeConfig("wallpaper", "nowardev-chromeos")
activity.writeConfig("previewPlugins","imagethumbnail,jpegthumbnail,kffmpegthumbnailer")
 activity.reloadConfig()
activity.currentConfigGroup = new Array('stripwidget')
activity.currentConfigGroup = new Array('favourite-0')
activity.writeConfig("url","/usr/share/applications/kde4/dolphin.desktop")
}

chromeos()


[Attachment #5 (text/html)]

<div dir="ltr"><div style> i am trying to scripting plasma to be like gnome2 gnome3 \
chrome os unity , i know that this could be sound bad but... i think that plasma can \
be what unity is not ... anyway.... </div><div style> <br></div>:) i was trying to \
write chromeOS activity better<div><br></div><div><br></div><div> and i tried to do \
that with Search and Launch &quot;desktop layout&quot;<div style><br></div><div \
style>i was able to customize it but not the stripwidget</div> </div><div \
style><br></div><div style>i tried to use the array but it did not work :S </div><div \
style><br></div><div style><div>///CHROMEOS ACTIVITY </div><div>var screenrect = \
screenGeometry(0) // get information about your screen h w </div> \
<div><br></div><div>function chromeos(){</div><div><br></div><div><span class="" \
style="white-space:pre">	</span></div><div><span class="" \
style="white-space:pre">	</span></div><div><span class="" \
style="white-space:pre">	</span></div> <div><span class="" \
style="white-space:pre">	</span>var activity = new \
Activity(&quot;sal&quot;)</div><div><span class="" style="white-space:pre">	</span><a \
href="http://activity.name">activity.name</a> = i18n(&quot;ChromeOs \
Activity&quot;)</div> <div><span class="" \
style="white-space:pre">	</span>activity.writeConfig(&quot;EnabledEntries&quot;,&quot; \
plasma-sal-bookmarks.desktop,plasma-sal-contacts.desktop,plasma-sal-multimedia.desktop \
,plasma-sal-internet.desktop,plasma-sal-graphics.desktop,plasma-sal-games.desktop,plasma-sal-office.desktop&quot;)</div>
 <div><span class="" style="white-space:pre">	</span>activity.wallpaperPlugin = \
&quot;image&quot;</div><div><span class="" \
style="white-space:pre">	</span>activity.wallpaperMode = \
&quot;SingleImage&quot;</div><div><span class="" \
style="white-space:pre">	</span>activity.currentConfigGroup = \
Array(&quot;Wallpaper&quot;, &quot;image&quot;)</div> <div><span class="" \
style="white-space:pre">	</span>activity.writeConfig(&quot;wallpaper&quot;, \
&quot;nowardev-chromeos&quot;)</div><div><span class="" \
style="white-space:pre">	</span>activity.writeConfig(&quot;previewPlugins&quot;,&quot;imagethumbnail,jpegthumbnail,kffmpegthumbnailer&quot;) \
</div> <div><span class="" \
style="white-space:pre">	</span>activity.reloadConfig()</div><div><span class="" \
style="white-space:pre">	</span>activity.currentConfigGroup = new \
Array(&#39;stripwidget&#39;)</div><div><span class="" \
style="white-space:pre">	</span>activity.currentConfigGroup = new \
Array(&#39;favourite-0&#39;)</div> <div><span class="" \
style="white-space:pre">	</span>activity.writeConfig(&quot;url&quot;,&quot;/usr/share/applications/kde4/dolphin.desktop&quot;)</div><div><span \
class="" style="white-space:pre">	</span></div><div>}</div> \
<div><br></div><div>chromeos()</div><div><br></div><div><br></div><div><br></div><div><br></div></div></div>




_______________________________________________
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic