STDIN Plasmoid

Plasma 4 Extensions

Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net

28
7 .9
Description:

This plasmoid executes a process and captures its stdout or stderr output stream, it can also display the content of a local file or a remote file via KIO.
You can think of this plasmoid as a general purpose scriptable plasmoid, even for languages not supported by kross, because you can make an script and capture its output :-).

Building:
This package contains both, the 0.2 and 0.1 versions, to install the package just execute the install.sh script or these commands in order:

mkdir build
cd build
cmake .. -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix`
sudo make install
kbuildsycoca4
kquitapp plasma; sleep 1; plasma (or restart KDE)

The 0.2 version requires KDE 4.2, users of KDE 4.1 may only install the 0.1 version. The build script in the root directory tries to find your KDE version and select the proper version, if it fails enter to the 0.1 or 0.2 directory and execute the corresponding install.sh script

Videos:
These are some demonstration videos

* http://ezeaguerre.googlepages.com/notes.ogg: Leaving a note on desktop.
* http://ezeaguerre.googlepages.com/cpu.ogg: Watch cpu speed and temperature.
* http://ezeaguerre.googlepages.com/encoding.ogg: Select from all the different encodings KDE supports.
* http://ezeaguerre.googlepages.com/log.ogg: Watch a log across a network on realtime using tail, or with a 1 second delay using KIO.
* http://ezeaguerre.googlepages.com/svnygit.ogg: Monitor Subversion and Git logs.
* http://ezeaguerre.googlepages.com/chat.ogg: Interface with a PHP script and its results across a network.
* http://ezeaguerre.googlepages.com/script.ogg: Interface with a perl script (http://ezeaguerre.googlepages.com/speed.pl).

SVN:
The Subversion repository now has a 0.2 directory:
0.2/trunk: The most recent version.
0.2/branches/0.2-workarounds: trunk + workarounds for various bugs found in Qt and KDE.
0.2/tags: Tagged releases

0.1 trunk: svn co https://plasmoidstdin.svn.sourceforge.net/svnroot/plasmoidstdin/0.1 stdin
0.2 trunk: svn co https://plasmoidstdin.svn.sourceforge.net/svnroot/plasmoidstdin/0.2/trunk stdin
0.2-workarounds branch: svn co https://plasmoidstdin.svn.sourceforge.net/svnroot/plasmoidstdin/0.2/branches/0.2-workarounds stdin
This package: svn co https://plasmoidstdin.svn.sourceforge.net/svnroot/plasmoidstdin/0.2/tags/0.2-beta1 stdin

This package is based on 0.2-workarounds branch, which is the one we recommend, and has workarounds for at least these bugs:
* Qt 4.4 doesn't propagate changes in geometry to parent QGraphicsWidget, hopefully it will be fixed by Qt 4.5.
http://mail.kde.org/pipermail/plasma-devel/2008-December/003038.html
http://www.qtsoftware.com/developer/task-tracker/index_html?id=211500&method=entry
http://www.qtsoftware.com/developer/task-tracker/index_html?id=231114&method=entry
* Plasma::PopupApplet doesn't remember the size nor the aspect ratio of the plasmoid after iconifying to the panel.
* Plasma::Applet::setBackgroundHints(Plasma::Applet::NoBackground) fails when called from Plasma::Applet::init().
* Maybe more which I don't remember right now...

Translated into:
* Spanish.
* Czech.
* Brazilian Portuguese.

Some Useful Commands
You may need to edit them slightly for your system.
* WLAN SIGNAL: iwconfig wlan0 | grep -i quality.*signal | cut -b 11-100
* WLAN USEAGE: ifstat wlan0 | grep -iE "(wlan0)|(Interface)"
* NVIDIA TEMP: printf "Core Temp: "; nvidia-settings -q gpucoretemp |grep '):' | awk '{print$4}' |cut -b 1,2
Last changelog:

11 years ago

0.2-beta1:
* Completely rewritten from scratch.
* Support various encodings (not just ASCII or UTF-8).
* Get files with KIO.
* Capture standard output and/or standard error.
* Select the background style (Normal, Translucent or No Background).
* Basic filtering (how many lines to display, counting form the start or the end...).
* Contextual action "refresh" and "copy".
* Many more...

0.0.00011:
* Added build 4 kde 4.2 same as yaWP
* Some fixes to the running of commands (by Ezequiel -thanks)

0.0.00010:
Major upgrade ;) :
* Added update() (1 line)
* Fixed spelling mistake in description, (waisting or necking rather than wasting ; the opposite).
I'm still happy to say that it is still dumb, nothing changed, ... really.

0.0.00001:
* The start of great things (maybe not).

ezeaguerre

11 years ago

Something like these screenshots??:
* http://img239.imageshack.us/img239/8282/headlinegn3.png
* http://img134.imageshack.us/img134/8661/headline3cx0.png

I've implemented the functionality but I've not commited to SVN. The Qt bug I mentioned in the description:

* Qt 4.4 doesn't propagate changes in geometry to parent QGraphicsWidget, hopefully it will be fixed by Qt 4.5.

is causing some annoying glitches... don't know what to do...
I'll try to workaround the bug, if I can't I'll maybe commit to trunk but not to 0.2-workarounds branch, or maybe I'll let the feature off until Qt 4.5 :-(

Report

gnemmi

11 years ago

http://img239.imageshack.us/img239/8282/headlinegn3.png

and

http://img134.imageshack.us/img134/8661/headline3cx0.png

look awesome .. altough
http://www.kde.org/announcements/4.1/screenshots/desktop.png

looks incredible well too .. and may even blend better with the rest of the default desktop look and feel ... :s

Report

ezeaguerre

11 years ago

I've found this: http://websvn.kde.org/trunk/KDE/kdebase/apps/plasma/applets/folderview/label.cpp?view=markup
It seems is just a text with a linear gradient... do you like more that way? I can implement it... and I think plasma should implement a widget for this... so we wouldn't have to duplicate the code... a widget called something like Headline or Title :P

Report

gnemmi

11 years ago

Actually .. unless there is a "standard" or a "it should be done this way and not that other" kind of document publically available and of the mandatory reading kind, then I like your implementation better ....

Now that I think of it .. if there was a standard .. then, as you said ... "plasma should implement a widget for this... so we wouldn't have to duplicate the code" .. but they haven't !!!

Hence .. you are free to do your will :)

If you ask me?:

I go with your "heading" unless Aaron tells you to remove it and to get back to the flock XD

Un abrazo!

Report

ezeaguerre

11 years ago

OK, nice to hear it :-)
Hugh!! xDD

Report

buschmann23

11 years ago

Yes, something like that. Or like the folder view plasmoid headline:
http://www.kde.org/announcements/4.1/screenshots/desktop.png

In the TODO file I read about the icon idea, which would be also nice. :)

Report

gnemmi

11 years ago

I'm already working on the icon :D
If you have any ideas or would like to share your thoughts about how should it look like or maybe even a draft or a sketch of it, feel free to contact me ;)

Report

ezeaguerre

11 years ago

Interesting... I'll give it a look :-)

Report

gnemmi

11 years ago

Use take a look at my profile and contact me via jabber or gmail.com and I'll be more than pleased to help you in contributing with a translation :)

Report

marcotangaro

11 years ago

This version (0.2-beta1) solved my problem of searching a good substitute of kima applet. In fact when I put it into my thiny panel, it show me a icon of a terminal. By clicking on it show me information: that's wonderful, and what I was searching. But, at the next reboot of the system, the icon desappeared and into the panel there is the output of the command that I've inserted into stdin, that is too big for my panel (for all panels :D).
Is this a bug or a problem of kde4.2? I want my stdin icon at the reboot.
But it is finally a good work :)
thank you

Report

ezeaguerre

11 years ago

I think I fixed it in revision 33 of the 0.2-workarounds branch. If you can, please test it :-)

Report

gnemmi

11 years ago

"...a good substitute of kima applet..."

So much so that it even has the same Spanish (also did pt_BR and fr_FR) translator ;)

Report

horchi

11 years ago

it's one of my favorite plasmoids!

One little wish:

- Support of escape sequences for colored output like "ls -lah --color"

Regards
horchi

Report

ezeaguerre

11 years ago

I'll give it a look :-)

Report

ezeaguerre

11 years ago

Well... I've commited support for this on trunk, it is still not merged to the 0.2-workarounds branch because:
* I did it a minute ago... had no time to try it... and I have to go now, but tomorrow I'll test it a little more
* It's probably slow... I need to make some optimizations to the function Stdin::format ()... and the function which process the ANSI Color codes scan a character at a time... there's maybe a better way with QString::split() but right now I'm scanning one character at a time...
If you have time, please test it... you'll have to download the trunk version which has not a single workaround, so it's more buggy than the branch...
I promise this will get merged to the 0.2-workarounds branch... I just need to make sure it is working...

Cheers!!

Report

TotoKid

11 years ago

I tried 0.2 beta1 and it's getting much better from version to version! I love using it as a simple sensor plasmoid with this command:

sensors |grep Core; printf "nVidia Temp: +`nvidia-settings -q gpucoretemp |grep '):' | awk '{print$4}' |cut -b 1,2`.0°C"

Report

ezeaguerre

11 years ago

Nice one, I will add it to the "Some Useful Commands" section for the next release :-) I just don't want to update once more (2+1=3 times for this release) :P

Report

mrvanes

11 years ago

This is really userfull plasmoid but I dislike the dis-ability to stretch it in only horizontal or vertical direction. The scaling always uses aspect-ratio constraint. Is this intentional?

Report

ruans

11 years ago

You make a good point ;). I put the functionality in it, but never actually used it. You are right it is very irritating,.. will be fixed in 5 minutes. :) Get it from the svn above /|\

Report

mrvanes

11 years ago

It's fixed, after a restart. Thx!

Report

mrvanes

11 years ago

I did svn up:
# svn up
U plasma_stdin.cpp
Updated to revision 23

and ./install but the behavior is still the same?

Report

mattepiu

11 years ago

I'm still downloading the old version that needs my patch, I don't know if it's for the un-versioned filename of the archive....

Report

ruans

11 years ago

Howzit, I did fix the build for kde4.2, I did not use your patch I used the cmake file we use in yawp, the download has it in. I run kde 4.2 and it works fine. Or do you mean something else?

Try useing the svn version, the command is above.

Let me know, thanks.

Report

TotoKid

11 years ago

I built this plasmoid both manually and by running the bash install script, ldconfig and restarted plasma many times, but it does not show under "Add Widget" window.

Report

ezeaguerre

11 years ago

Try running "kbuildsycoca4" and then restart plasma.

Report

11 years ago

0.2-beta1:
* Completely rewritten from scratch.
* Support various encodings (not just ASCII or UTF-8).
* Get files with KIO.
* Capture standard output and/or standard error.
* Select the background style (Normal, Translucent or No Background).
* Basic filtering (how many lines to display, counting form the start or the end...).
* Contextual action "refresh" and "copy".
* Many more...

0.0.00011:
* Added build 4 kde 4.2 same as yaWP
* Some fixes to the running of commands (by Ezequiel -thanks)

0.0.00010:
Major upgrade ;) :
* Added update() (1 line)
* Fixed spelling mistake in description, (waisting or necking rather than wasting ; the opposite).
I'm still happy to say that it is still dumb, nothing changed, ... really.

0.0.00001:
* The start of great things (maybe not).

12345678910
11
product-maker janet Sep 11 2014 9 excellent
product-maker arcanis Sep 13 2013 9 excellent
product-maker cjann Aug 05 2012 9 excellent
product-maker jrjohnstone Apr 05 2012 9 excellent
product-maker e1nste1n Jul 11 2011 9 excellent
product-maker crunchy Feb 24 2011 9 excellent
product-maker skynet1248 Jan 18 2011 9 excellent
product-maker Apopatos Dec 28 2010 9 excellent
product-maker padde Nov 30 2010 9 excellent
product-maker lordlukas Oct 22 2010 9 excellent
product-maker Ireyon Oct 20 2010 9 excellent
product-maker Base: 4 x 5.0 Ratings
Be the first to comment
janet
Sep 11 2014
arcanis
Sep 14 2013
cjann
Aug 05 2012
jrjohnstone
Apr 05 2012
crunchy
Feb 24 2011
wolfshift
Jan 19 2011
padde
Nov 30 2010
lordlukas
Oct 22 2010
edio
Aug 18 2010
ulij
Aug 05 2010
eikel
Jul 29 2010
dfx
Jun 26 2010
meh3
Mar 26 2010
Apopatos
Dec 28 2009
DaiVied
Dec 19 2009
TheAbu
Jul 25 2009
alno
Jul 02 2009
c2h5oh
Jun 23 2009
borisdigital
Jun 17 2009
Montblanc
Mar 27 2009
dvs999
Mar 25 2009
gnemmi
Feb 12 2009
knadian
Feb 12 2009
marcotangaro
Feb 10 2009
buschmann23
Feb 09 2009
ruans
Jan 29 2009
deabru
Jan 28 2009
ezeaguerre
Jan 27 2009
File (click to download) Version Description Downloads Date Filesize DL OCS-Install MD5SUM
*Needs pling-store or ocs-url to install things
Pling
0 Affiliates
Details
license
version
0.2-beta1
updated Feb 08 2009
added Nov 01 2008
downloads 24h
0
mediaviews 24h 0
pageviews 24h 11