STDIN Plasmoid

Plasma 4 Extensions

Source i (link to git-repo or to original if based on someone elses unmodified work):

Add the source-code for this project on opencode.net

29
Become a Fan
7.8

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:opupApplet 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:

0.2-beta1:
* Completely rewritten from scratch.
* Support various encodings (not just ASCII or UTF-.
* 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).


Ratings & Comments

94 Comments

prowlerxpla

it could be possible to port this plasmoid to plasma5??

prowlerxpla

great plasmoid...., could be possible to have selectable text??? :-) :-) :-)

Waseda

I was having trouble with vertical alignment when this plasmoid was in a horizontal panel. The text would half disappear off the bottom. http://i.imgur.com/UjgZv5f.png A workaround is to make sure that: Appearence [sic] > Background > No Background. Any of the other two settings, and the vertical alignment is broken. (You'll need to restart KDE for it to be fixed.)

arcanis

Hi. May you add link to archlinux package (AUR)? https://aur.archlinux.org/packages/kdeplasma-applets-stdin-svn/

christiandolman

That plasmoid provoked a crash on my Debian stable, I had to remove the plasmoid from the system by tty because the DE wouldn't start.

padde

... would be awesome!

crunchy

at least in trunk these feature is available. The following patch fixes - resize and font problems - reset console attributes correctly http://pastebin.com/WEgJysym

Waseda

SVN trunk has support for ANSI colour escape codes, but this package (based on 0.2-workarounds) does not. Unfortunately trunk is buggy for me (doesn't work in panels), so I have to install this one too!

koko2k

One vote for it. It would improve readablity a lot!

wolfshift

This is really exactly what I wanted! Thank you!

Ireyon

Great thing. Would like to have it in a panel though.

koko2k

Great plasmoid. Every time i change kwin decoration,widget style, window manager and maybe other things, the plasmoid lose font settings. Restarting plasma-desktop or just enternig the plasmoid configuration and exits via "ok" button fixes it. Is this a dead project btw?

crunchy

Maybe this patch fixes it for you. It fixes three things for me: - fixed size works again - font es kept as set (workaround) - terminal attributes like bold and italic are reset after ^[[0m http://pastebin.com/vnhBPkQg

koko2k

Thank you very much, i've had to patch it by hand because of chunk errors, but it works as expected now!

rangerGR

After updating to KDE 4.5.0, right clicking on the plasmoid does nothing. There is no menu with options (copy etc)

edio

Can you make it avaliable as screensaver widget?

ezeaguerre

Screensaver? what do you mean?

edio

KDE allows widgets while screensaver is running. But AFAIK, hardly ever widget is available in this mode. F.ex. your widget is just absent on widget bar in screensaver mode. If you need more details, I'll provide them later (in 9 hours), as now I'm not at home.

ezeaguerre

mmm... I didn't know :P I'm gonna try it. Do you know any plasmoid that supports the screensaver mode? So I can try that one :-)

edio

Spent more than 30 minutes, trying to find it (haven't used KDE some time, and forgot it's name). Great plasmoid! Thank you!

PlasmaFactory

I should really find some time to make a couple of changes ..... ..

meh3

It's a bit puzzling why this isn't in the official distribution :)

VVhiteMAN

-- The C compiler identification is GNU -- The CXX compiler identification is GNU -- Check for working C compiler: /usr/bin/gcc -- Check for working C compiler: /usr/bin/gcc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done CMake Error at /usr/share/cmake-2.6/Modules/FindKDE4.cmake:84 (MESSAGE): ERROR: cmake/modules/FindKDE4Internal.cmake not found in /root/.kde/share/apps;/usr/share/kubuntu-default-settings/kde4-profile/default/share/apps;/usr/share/kde4/apps Call Stack (most recent call first): CMakeLists.txt:1 (find_package) CMake Warning (dev) in CMakeLists.txt: No cmake_minimum_required command is present. A line of code such as cmake_minimum_required(VERSION 2.6) should be added at the top of the file. The version specified may be lower if you wish to support older CMake versions for this project. For more information run "cmake --help-policy CMP0000". This warning is for project developers. Use -Wno-dev to suppress it. -- Configuring incomplete, errors occurred! make: *** No rule to make target `clean'. Stop. make: *** No targets specified and no makefile found. Stop. Compilation failed, sorry :-(

borisdigital

Is someone still working on this great plasmoid? I've seen some visual issues lately when displaying logs with very long text lines in it (line break doesn't work correctly).

PlasmaFactory

Sorry, no not really. Send us a mail at plasmafactory@jcell.co.za and attach the screen-shot. I will have a look at it. Cheers

Pling
0 Affiliates
Details
license
version 0.2-beta1
updated
added
downloads 24h 0
mediaviews 24h 0
pageviews 24h 0

More Plasma 4 Extensions from PlasmaFactory:

yaWP (Yet Another Weather Plasmoid)
PlasmaFactory
last update date: 12 years ago

Score 8.5

Other Plasma 4 Extensions:

Icon Tasks deb build
N00bun2
last update date: 13 years ago

Score 4.3

Prayer Times Plasmoid
riyad
last update date: 12 years ago

Score 5.2

KPrayertime4 Islamic Prayer Times
ahaq
last update date: 15 years ago

Score 4.4

Hostinfo
mgraesslin
last update date: 13 years ago

Score 4.7

Monitor QuadCore Russian
kuchumovn
last update date: 16 years ago

Score 5.0

blaKjaK
werevire
last update date: 15 years ago

Score 5.0