{"id":23196647,"url":"https://github.com/marcdonald/polybar-mic-volume","last_synced_at":"2025-08-18T22:31:57.396Z","repository":{"id":44629105,"uuid":"299935860","full_name":"MarcDonald/polybar-mic-volume","owner":"MarcDonald","description":"Polybar module for displaying microphone volume","archived":false,"fork":false,"pushed_at":"2023-05-17T20:00:17.000Z","size":10,"stargazers_count":32,"open_issues_count":1,"forks_count":6,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-12T08:39:26.090Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MarcDonald.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2020-09-30T13:54:37.000Z","updated_at":"2024-10-12T14:09:10.000Z","dependencies_parsed_at":"2022-07-15T11:00:44.204Z","dependency_job_id":"ad458a21-2108-43f1-aa07-7bb26f983207","html_url":"https://github.com/MarcDonald/polybar-mic-volume","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MarcDonald%2Fpolybar-mic-volume","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MarcDonald%2Fpolybar-mic-volume/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MarcDonald%2Fpolybar-mic-volume/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MarcDonald%2Fpolybar-mic-volume/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MarcDonald","download_url":"https://codeload.github.com/MarcDonald/polybar-mic-volume/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230284121,"owners_count":18202339,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-18T14:19:55.808Z","updated_at":"2024-12-18T14:19:56.522Z","avatar_url":"https://github.com/MarcDonald.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# polybar-mic-volume\n\n\u003e **Note**\n\u003e I don't use Linux anymore so I don't actively maintain this project, but feel\n\u003e free to make a PR for any fixes that are needed!\n\nPolybar module that displays the volume of a given input device using PulseAudio\n`pacmd` and controls it using `pactl`.\n\n![Screenshot](/.github/screenshot.png?raw=true)\n\n## Usage\n\nTo use this module, put the following module in your Polybar config,\nsubstituting `MICROPHONE_NAME` with the name or index of the device you want to\ndisplay, and substituting `PATH_TO_SCRIPT` with the path to the `mic-volume.sh`\nscript.\n\nIf you don't include `MICROPHONE_NAME` the default input device will be used\ninstead.\n\n```\n[module/mic-volume]\ntype = custom/script\ninterval = 1\nformat = Mic: \u003clabel\u003e\nexec = bash PATH_TO_SCRIPT show-vol MICROPHONE_NAME\n\n; Control actions (using pactl)\nclick-left = bash PATH_TO_SCRIPT mute-vol MICROPHONE_NAME\nscroll-up = bash PATH_TO_SCRIPT inc-vol MICROPHONE_NAME\nscroll-down = bash PATH_TO_SCRIPT dec-vol MICROPHONE_NAME\n```\n\nFor example:\n\n```\n[module/mic-volume]\ntype = custom/script\ninterval = 1\nformat = Mic:\u003clabel\u003e\nexec = bash ~/.config/polybar/mic-volume/mic-volume.sh show-vol 'alsa_input.usb-Samson_Technologies_Samson_Meteor_Mic-00.analog-stereo'\n\n; Control actions (using pactl)\n; Example supplying the name of the source\nclick-left = bash ~/.config/polybar/mic-volume/mic-volume.sh mute-vol 'alsa_input.usb-Samson_Technologies_Samson_Meteor_Mic-00.analog-stereo'\n; Example supplying the index of the source\nscroll-up = bash ~/.config/polybar/mic-volume/mic-volume.sh inc-vol 2\n; Example leaving the MICROPHONE_NAME blank and using the default source\nscroll-down = bash ~/.config/polybar/mic-volume/mic-volume.sh dec-vol\n```\n\n\u003e **Note**\n\u003e The name and index of the source can be found by running `pacmd list-sources`. Ignore\n\u003e the arrow brackets when using the name.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcdonald%2Fpolybar-mic-volume","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarcdonald%2Fpolybar-mic-volume","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcdonald%2Fpolybar-mic-volume/lists"}