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

Quiet flag #108

Closed
mkaito opened this issue Nov 29, 2018 · 4 comments
Closed

Quiet flag #108

mkaito opened this issue Nov 29, 2018 · 4 comments

Comments

@mkaito
Copy link

mkaito commented Nov 29, 2018

I'm running playerctl in my conky setup. The problem is that it spams my log with "no players found" when none are running. I'd like to have a --quiet option where such status output is supressed.

@acrisci
Copy link
Member

acrisci commented Nov 29, 2018

What about redirecting stderr?

playerctl status 2>/dev/null

@mkaito
Copy link
Author

mkaito commented Nov 29, 2018 via email

@acrisci
Copy link
Member

acrisci commented Nov 29, 2018

Oh ok. --quiet normally means to supress all output though, and I don't know if that is really useful. Grep has -s, --no-messages to suppress these kinds of messages which might be a better name for it. I would accept a feature like that if it were done properly.

In the meantime:

#!/usr/bin/env bash
# ~/bin/playerctl-quiet.sh
playerctl "$@" 2>/dev/null

Or:

bash -c 'playerctl status 2>/dev/null'

@acrisci
Copy link
Member

acrisci commented Oct 30, 2020

Fixed in #193

@acrisci acrisci closed this as completed Oct 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants