Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Process Filter: Load search terms from config #405

Open
stranger-danger-zamu opened this issue Feb 10, 2021 · 2 comments
Open

Process Filter: Load search terms from config #405

stranger-danger-zamu opened this issue Feb 10, 2021 · 2 comments
Labels
feature Requests for a new feature.

Comments

@stranger-danger-zamu
Copy link

Describe the feature request

I have a specific config.toml file for a dashboard monitoring some capture devices. Being able to specify which processes
are listed at launch would be great.

Additional context/details

I was thinking something similar to the disk filter. Not sure if this is a planned feature or already solved and I missed it, but the only other process filter issues I saw were about more attributes to search over.

@stranger-danger-zamu stranger-danger-zamu added the feature Requests for a new feature. label Feb 10, 2021
@097115
Copy link

097115 commented Apr 24, 2021

@ClementTsang

Just to +1 to the original proposal, I can only say that being able to specify a search pattern (like cpu > 0.5) from the config and / or from the command line would be indeed great and could save users quite a bunch of unnecessary key presses :)

@ghost
Copy link

ghost commented Dec 11, 2023

Today I was trying to replace my htop aliases with bottom ones.

For htop I have an alias:

alias hu="htop --user $USER"

So the alias starts htop and it shows processes of the current user only.

I was looking for a way to do the same with bottom, but couldn't find a way to make bottom filter processes by username on the command line. Then I stumbled upon this issue.

Suggestion

Bottom already has search filters, so this could be solved just by having an option (--filter/-f) to hand over search phrases on the command line.

For example, bottom would be started like:

btm --expanded --filter "user=$USER and firefox"

And it would start expanded, only showing firefox processes of the current user and one could later change the applied filter by pressing Ctrl+f.

The -f option is currently unused, so I'd suggest to add -f/--filter as options for filtering (like htop) and maybe -U/--user $USER as a shortcut for --filter "user=$USER". For the config file there could be similar options.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Requests for a new feature.
Projects
None yet
Development

No branches or pull requests

2 participants