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.]
(Score: 1) by NPC-131072 on Thursday January 17 2019, @01:50AM (7 children)
Hello fren,
Do you know what desktop session manager you are using?
(Score: 0) by Anonymous Coward on Thursday January 17 2019, @01:57AM (6 children)
Sorry, not immediately finding where to get that info. Maybe this helps:
Its just mint 19.1 cinnamon with an updated kernel to 4.20 from the default (4.15).
(Score: 1) by NPC-131072 on Thursday January 17 2019, @02:05AM (2 children)
Not familiar with mint. I see they have 3 desktop versions, you may be able to start by putting scripts in etc/X11/Xsession.d/ but specific desktop and terminal emulator may provide an easier way. Someone who knows Mate and Cinnamon will be able to help you more here.
(Score: 0) by Anonymous Coward on Thursday January 17 2019, @02:13AM (1 child)
Not sure if it helps, but it seems to be mostly the same as Ubunu 18.4:
Thanks for taking a look anyway.
(Score: 2) by Runaway1956 on Thursday January 17 2019, @03:28AM
Linux Mint has a Ubuntu derivative. Their LMDE is Linux Mint Debian Edition - it comes straight from Debian, instead of passing through Ubuntu's hands. I believe it to be the superior version.
(Score: 4, Funny) by SomeGuy on Thursday January 17 2019, @02:11AM (1 child)
No, no, no, it's Linux. You're supposed to write your own window manager. :P
(Score: 0) by Anonymous Coward on Friday January 18 2019, @02:47AM
:) Its not 1992 anymore. There are about 20 windows managers, most of them quite mature products...
OP - something simple inside your .profile should do the trick. Starting point: add the commands you are issuing.
(Score: 0) by Anonymous Coward on Friday January 18 2019, @02:52AM
Neat thing I "found" the other day. On newer distros - LM19, Manjaro, etc - "neofetch". Gives you a nice summary of your system in a terminal/console.