Stories
Slash Boxes
Comments

SoylentNews is people

posted by martyb on Thursday January 17 2019, @01:45AM   Printer-friendly
from the automation++ dept.

Hi all,

I have been learning linux and have a secondary monitor that I wanted to use for showing some sensor data. Currently I need to manually enter in three commands and then arrange my windows each time I want to look at (and start-up, etc). I am using the nethogs, inxi, and lm-sensors libraries:

sudo nethogs
watch -n1 "inxi -s"
watch -n1 "sensors | grep Tdie"

The end result looks something like this:
https://i.ibb.co/TgWXKSn/sensors.png

Is it possible/easy to script the opening of these three terminal windows and position them onto a specific monitor? Or is there a completely different better way to go about this?

Also, is there a way for me to custom arrange the data on the screen? Eg, could I put the sensors "Tdie" data into two columns and remove the "high = +70.0 C" info?

[Beyond this specific case, is there a general solution with, say, a directory containing a separate shell script for launching each program, with a master script that specifies terminal width/height as well as (x,y) coordinates? --Ed.]


Original Submission

 
This discussion has been archived. No new comments can be posted.
Display Options Threshold/Breakthrough Mark All as Read Mark All as Unread
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
  • (Score: 3, Funny) by Appalbarry on Thursday January 17 2019, @02:31AM (3 children)

    by Appalbarry (66) on Thursday January 17 2019, @02:31AM (#787721) Journal

    Hmmmph. Don't bother us until you've read the MAN pages!

    Starting Score:    1  point
    Moderation   +1  
       Funny=1, Total=1
    Extra 'Funny' Modifier   0  
    Karma-Bonus Modifier   +1  

    Total Score:   3  
  • (Score: 3, Touché) by maxwell demon on Thursday January 17 2019, @06:47AM (2 children)

    by maxwell demon (1608) on Thursday January 17 2019, @06:47AM (#787801) Journal

    Didn't you get the memo? It's MAN OR WOMAN pages now!

    --
    The Tao of math: The numbers you can count are not the real numbers.
    • (Score: 5, Funny) by choose another one on Thursday January 17 2019, @09:45AM

      by choose another one (515) Subscriber Badge on Thursday January 17 2019, @09:45AM (#787833)

      Jeez, that one was many memos ago.

      Looks like it's 2019 and computing is still exclusively binary...

      [roll on quantum computing, where you never know what the bits are until you ask them what they identify as...]

    • (Score: 0) by Anonymous Coward on Friday January 18 2019, @03:07AM

      by Anonymous Coward on Friday January 18 2019, @03:07AM (#788131)

      In BeigeixOS, you use 'genderjelly' instead of 'man'. Rest of the distro does not work either...