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

Add basic pulseaudio source (microphone etc.) support #1154

Merged
merged 2 commits into from
Feb 23, 2024

Conversation

julianschuler
Copy link
Contributor

This PR adds basic pulseaudio source support. The conky objects if_pa_source_running and if_pa_source_muted were added to query the status of the default pulse audio source.

I implemented this feature to display if an application is accessing my microphone and if it is currently muted or not:

running muted not running
running muted idle

The added features can be tested using

conky -t 'microphone\
$if_pa_source_running\
$if_pa_source_muted muted\
$else running\
$endif\
$else not running$endif'

which will display the current source state accordingly.

Other features of conky remain unchanged, though some other code was reformatted when using make clang-format.

Copy link

This PR is stale because it has been open 365 days with no activity. Remove stale label or comment, or this PR will be closed in 30 days.

@github-actions github-actions bot added the Stale requires attention because it hasn't been updated in a long time label Feb 23, 2024
Added conky objects $if_pa_source_running and $if_pa_source_muted to
query the status of the default pulse audio source.
@github-actions github-actions bot added documentation suggests documentation changes or improvements sources PR modifies project sources labels Feb 23, 2024
Copy link

netlify bot commented Feb 23, 2024

Deploy Preview for conkyweb ready!

Name Link
🔨 Latest commit 1f6544d
🔍 Latest deploy log https://app.netlify.com/sites/conkyweb/deploys/65d895b663823e000875dc25
😎 Deploy Preview https://deploy-preview-1154--conkyweb.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@julianschuler
Copy link
Contributor Author

Update: Rebased to latest main. Please let me know if you want me to change anything else (since this is already open for over 2 years)!

@brndnmtthws brndnmtthws removed the Stale requires attention because it hasn't been updated in a long time label Feb 23, 2024
@brndnmtthws brndnmtthws merged commit f11eb21 into brndnmtthws:main Feb 23, 2024
56 checks passed
@LinuxOnTheDesktop
Copy link

This seems good. It is unclear to me though how one queries any one device (e.g. the microphone) as against another (e.g. the speakers).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation suggests documentation changes or improvements sources PR modifies project sources
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants