LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Bedrock Linux
User Name
Password
Bedrock Linux This forum is for the discussion of Bedrock Linux.

Notices


Reply
  Search this Thread
Old 06-30-2019, 06:47 PM   #1
Siljrath
Bedrock Linux Advocate
 
Registered: Nov 2004
Location: the internet
Distribution: server:Gentoo | workstation:Bedrock (hijacked:void, fetched:Gentoo,Devuan,Artix)
Posts: 226

Rep: Reputation: 66
Lightbulb Other-Software-Feature-Dreaming: htop, and what


would love to have a stratum column in htop.

https://github.com/hishamhm/htop looks daunting. idk where to start.
 
Old 06-30-2019, 08:49 PM   #2
ParadigmComplex
Bedrock Linux Founder
 
Registered: Feb 2016
Distribution: Bedrock Linux
Posts: 179

Rep: Reputation: Disabled
Instead of adding a Bedrock specific column to htop's source requiring someone maintain a fork, perhaps attempt to upstream a feature to htop to support custom columns that can call out to some user-set shell command to populate. Maybe set some envvar, e.g. $HTOPPID, as the PID for the corresponding shell command to process. You could include example use cases such as

Code:
dpkg -S $(readlink /proc/$HTOPPID/exe) | cut -d: -f1
Code:
pacman -Qo $(readlink /proc/$HTOPPID/exe) | awk '{print$(NF-1)}
etc to show which package corresponds to the given process for various distros to sell the feature without appealing to the relatively unknown Bedrock. There are plenty of other use cases, such as finding a corresponding Docker image, number of open file descriptors, et al.

The Bedrock community can then set `brl which $HTOPPID` without having to maintain a fork.
 
1 members found this post helpful.
Old 09-02-2020, 12:05 PM   #3
Siljrath
Bedrock Linux Advocate
 
Registered: Nov 2004
Location: the internet
Distribution: server:Gentoo | workstation:Bedrock (hijacked:void, fetched:Gentoo,Devuan,Artix)
Posts: 226

Original Poster
Rep: Reputation: 66
i see there's now a htop fork, called htop-dev. maybe they'd like this idea. n_n
https://github.com/htop-dev/htop/blob/master/ChangeLog
just thought i'd mention it upon seeing both that news, and this thread, in short succession.
 
Old 09-02-2020, 04:34 PM   #4
ParadigmComplex
Bedrock Linux Founder
 
Registered: Feb 2016
Distribution: Bedrock Linux
Posts: 179

Rep: Reputation: Disabled
Happy birthday: https://github.com/paradigm/htop

See the README.md.
 
1 members found this post helpful.
Old 09-02-2020, 09:02 PM   #5
Siljrath
Bedrock Linux Advocate
 
Registered: Nov 2004
Location: the internet
Distribution: server:Gentoo | workstation:Bedrock (hijacked:void, fetched:Gentoo,Devuan,Artix)
Posts: 226

Original Poster
Rep: Reputation: 66
yay.

for all my shame of whatever i have running at the time, i jumped to scrot the lot the instant i got that implemented up on screen. sweet.
so for however brief that scrot lives:
http://ks392457.kimsufi.com/stuff/sc...2560_scrot.png

[edit: joyous thankyou muchly ]

Last edited by Siljrath; 09-02-2020 at 09:09 PM. Reason: effusive joy and gratitude.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Dreaming about a new application background in OpenOffice.org LXer Syndicated Linux News 0 07-31-2009 11:32 PM
MSIPVS Vox - Am I Dreaming? Richard Rahl Linux - Hardware 0 08-10-2006 06:41 PM
Dreaming in console... mjjzf General 3 04-25-2004 03:43 AM
I'm dreaming of a Linux media center... resnak Linux - General 4 03-08-2004 09:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Bedrock Linux

All times are GMT -5. The time now is 07:43 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration