-
 KDE-Apps.org Applications for the KDE-Desktop 
 GTK-Apps.org Applications using the GTK Toolkit 
 GnomeFiles.org Applications for GNOME 
 MeeGo-Central.org Applications for MeeGo 
 CLI-Apps.org Command Line Applications 
 Qt-Apps.org Free Qt Applications 
 Qt-Prop.org Proprietary Qt Applications 
 Maemo-Apps.org Applications for the Maemo Plattform 
 Java-Apps.org Free Java Applications 
 eyeOS-Apps.org Free eyeOS Applications 
 Wine-Apps.org Wine Applications 
 Server-Apps.org Server Applications 
 apps.ownCloud.com ownCloud Applications 
--
-
 KDE-Look.org Artwork for the KDE-Desktop 
 GNOME-Look.org Artwork for the GNOME-Desktop 
 Xfce-Look.org Artwork for the Xfce-Desktop 
 Box-Look.org Artwork for your Windowmanager 
 E17-Stuff.org Artwork for Enlightenment 
 Beryl-Themes.org Artwork for the Beryl Windowmanager 
 Compiz-Themes.org Artwork for the Compiz Windowmanager 
 EDE-Look.org Themes for your EDE Desktop 
--
-
 Debian-Art.org Stuff for Debian 
 Gentoo-Art.org Artwork for Gentoo Linux 
 SUSE-Art.org Artwork for openSUSE 
 Ubuntu-Art.org Artwork for Ubuntu 
 Kubuntu-Art.org Artwork for Kubuntu 
 LinuxMint-Art.org Artwork for Linux Mint 
 Arch-Stuff.org Art And Stuff for Arch Linux 
 Frugalware-Art.org Themes for Frugalware 
 Fedora-Art.org Artwork for Fedora Linux 
 Mandriva-Art.org Artwork for Mandriva Linux 
--
-
 KDE-Files.org Files for KDE Applications 
 OpenTemplate.org Documents for OpenOffice.org
 GIMPStuff.org Files for GIMP
 InkscapeStuff.org Files for Inkscape
 ScribusStuff.org Files for Scribus
 BlenderStuff.org Textures and Objects for Blender
 VLC-Addons.org Themes and Extensions for VLC
--
-
 KDE-Help.org Support for your KDE Desktop 
 GNOME-Help.org Support for your GNOME Desktop 
 Xfce-Help.org Support for your Xfce Desktop 
--
openDesktop.orgopenDesktop.org:   Applications   Artwork   Linux Distributions   Documents    LinuxDaily.com    Linux42.org    OpenSkillz.com   
 
Apps
News
Groups
Knowledge
Events
Forum
People
Jobs
Register
Login


Sponsoring


-
- Content .- Fans  .- Knowledge Base  . 

TextMon

   1.0  

Plasmoid Script

Score 67%
TextMon
zoom


TextMon
zoom


TextMon
zoom


Homepage:  Link
Minimum required   KDE 4.x
Downloads:  290
Submitted:  Feb 10 2012
Updated:  Feb 19 2012

Description:

A Do It Yourself textual system monitor, meant to be an entry point for you coding kde plasma applets in JavaScript.

By default it shows:
  • {cpu: %}{mem: MB}{wlan: KB/s d | KB/s u}{sda: KB/s r | KB/s w}


  • You most likely want to tweak the settings right away, like changing the text color to black if your theme is light or monitor eth0 rather than wlan0. This is, of course, done by editing the source code. The settings dialog shows you how to get there. The following page shows a number of examples of how to customize TextMon
  • http://maikbeckmann.github.com/plasma-textmon/hacking-textmon.html


  • To go beyond just tweaking TextMon and gain some insight, take a look at its home page
  • http://maikbeckmann.github.com/plasma-textmon/


  • --------------------

    Additional Links
    Github repo: http://github.com/MaikBeckmann/plasma-textmon/
    Main source file: http://github.com/MaikBeckmann/plasma-textmon/blob/master/textmon/contents/code/main.js

    The content of my main.js http://paste.kde.org/425714/ and its diff to main.js in master http://paste.kde.org/425726/. It monitors the same values as the default, but renders them in a shorter way:
    %|MB|KB/s d KB/s u|KB/s r KB/s w

    --------------------
    feedback
    @zeltak regarding mpd (updated 2012-02-25): Replace TextMon's main.js with this http://paste.kde.org/428840/ and see if and how it works for you. If you want to make a TextMdpMon copy the TextMon dir to some place (i.e. ~/Projects/TextMpdMon/), replace the main.js with the paste (if you haven't already) and metadata.desktop with http://paste.kde.org/428732/ . See http://maikbeckmann.github.com/plasma-textmon/prelude.html#sec-3 on how to install it.




    Changelog:

    - 2012-02-19 So :: 1.0 -- Much better Javascript in main.js

    - 2012-02-14 Di :: 0.11 -- Added links to docs and sources to settings dialog.

    - 2012-02-09 Do :: 0.1 -- Initial upload.




    LicenseGPL
    (textmon)
    Send to a friend
    Subscribe
    Other  Apps  from MaikB
    Report inappropriate content



    -

     Great Work!

     
     by jfebrer on: Feb 12 2012
     
    Score 63%
    jfebrerjfebrer
    Extens Solucions SL
    Home
    -
    Josep Febrer 1

    Extens Solucions SL
    Spain, Ferreries
    Last visit Jul 6 2012
    0 Friends
    0 Groups

    More info
    Send a message
    Add as friend
    Other contents
    --

    I really liked it.


    Reply to this

    -
    .

     Re: Great Work!

     
     by MaikB on: Feb 20 2012
     
    Score 50%

    The code of version 0.1 worked well, but looked horrible. That became very clear when I wrote the documentation on how to change/tweak it. Changes all over the place were needed and then this giant "if else if" chain.. *shiver*.

    As of version 1.0 I'm really happy with the code and feel confident enough to say: Thank you :D

    The real work however was and will be the documentation. If you have any questions or suggestions, feel free to ask them here.


    Reply to this

    -

     pipe text

     
     by zeltak on: Feb 24 2012
     
    Score 63%

    wow thx for this great plasmoid

    i wonder if you cann add an option to pipe text from a command line command so i can show the current playing mpd song or other commands?

    thx

    z


    Reply to this

    -

     Re: pipe text

     
     by MaikB on: Feb 24 2012
     
    Score 50%

    Good thinking there :D

    I've looked at what Awesome (the WM) widget's do. They use Lua's io.popen which allows to monitor the stdout of a program asynchronously.

    From what I can tell there is no direct equivalent in Plasma's JavaScript API. Instead you're supposed to use the "executable" date engine. It starts a process, waits for it to finish and sends you the stdout,stderr etc. to the slot it was connected it to. You can't monitor a long running process with it, since it won't call the slot until the program has finished execution.

    In case of "mpd" this isn't an issue though. It's a daemon that can be queried by short running programs, foremost "mpc". In other cases there is always the workaround to provide a shell script that starts, reads some data and exits.

    Since I can't edit comments to fix errors, I'll add the paste link to some code in the description above. I think of a better method to share such snippets later. Maybe a thread on forum.kde.org is a good idea.


    Reply to this

    -

     Re: Re: pipe text

     
     by zeltak on: Mar 3 2012
     
    Score 50%

    cool
    ive been away for a week or so..did you end up implementig this? is there a kde forum post?

    so excited about finally getting my mpd info in the kde bar

    thx

    Z.


    Reply to this

    -

     Re: Re: Re: pipe text

     
     by zeltak on: Mar 3 2012
     
    Score 50%

    Whew sorry didnt see the above coments

    works reallt well..cant thank you enough for this..basiclly been waiting 3 years for this since kde 4.0 :)

    let me know if you need any other testing etc..

    thx

    Z


    Reply to this

    -

     Thank you

     
     by martinv on: Jul 4 2012
     
    Score 50%

    Hi MaikB,

    thank you very much for this plasmoid. I really missed this in KDE. Hope they could make it an official kde plasmoid one day.
    Your KDE/js tutorial is very nice as well.


    Reply to this

    -

     temp (lm-sensors) and mpd

     
     by lionhater on: Oct 4 2012
     
    Score 50%

    Thanks for the gift, finally a sensible way to see cpu and memory usage instead of absurd graphs.

    If the temp reading (lm-sensors) can be added, this would make it the best plasmoid/applet/widget in the the whole cosmos?

    But adding mpd track would make it divine! I gather it's possible from above discussion, but can't figure out how.


    Reply to this

    Add commentBack






    -
    -
    Do you like or dislike Ubuntu Unity?
     Yes, unity is alien technology!
     It is less confusing than Gnome 3 default, shell.
     Granny thinks it is much more usable than Gnome 2
     Canonical is embarrasing itself with this split project
     Gnome 3 default shell is much better
     I dislike Unity, Gnome 3 default shell is alien technology!
     None of the above, I like the 2Gb for free and Apple alike behavior. Will post a comment instead

    resultmore
     
     
     Who we are
    Contact
    More about us
    Frequently Asked Questions
    Register
    Twitter
    Blog
    Explore
    Apps
    Jobs
    Knowledge
    Events
    People
    Updates on identi.ca
    Updates on Twitter
    Facebook App
    Content RSS   
    Events RSS   

    Participate
    Groups
    Forum
    Add App
    Public API
    About KDE-Apps.org
    Legal Notice
    Spreadshirt Shop
    CafePress Shop
    Advertising
    Sponsor us
    Report Abuse
     

    Copyright 2003-2014 KDE-Apps.org Team  
    All rights reserved. KDE-Apps.org is not liable for any content or goods on this site.
    All contributors are responsible for the lawfulness of their uploads.
    KDE and K Desktop Environment are trademarks of KDE e.V.