{"id":18245476,"url":"https://github.com/countnazgul/set-volume","last_synced_at":"2025-04-08T18:53:15.979Z","repository":{"id":226066792,"uuid":"767535845","full_name":"countnazgul/set-volume","owner":"countnazgul","description":"Console application that can set the system volume value","archived":false,"fork":false,"pushed_at":"2024-07-05T05:34:41.000Z","size":49,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-02T03:16:05.451Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","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/countnazgul.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-03-05T13:23:36.000Z","updated_at":"2024-07-05T05:34:24.000Z","dependencies_parsed_at":"2024-03-05T18:29:20.975Z","dependency_job_id":"f1fee3f8-bc0f-4af0-a2cb-4df945cb8b20","html_url":"https://github.com/countnazgul/set-volume","commit_stats":null,"previous_names":["countnazgul/set-volume"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/countnazgul%2Fset-volume","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/countnazgul%2Fset-volume/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/countnazgul%2Fset-volume/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/countnazgul%2Fset-volume/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/countnazgul","download_url":"https://codeload.github.com/countnazgul/set-volume/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247909134,"owners_count":21016475,"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-11-05T09:20:44.790Z","updated_at":"2025-04-08T18:53:15.942Z","avatar_url":"https://github.com/countnazgul.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Set volume\n\nSmall console app that can set the current system volume.\n\nI was tired of switching the volume between \"music values\" and \"meeting values\". The music values for me is low (10-12%) but for meetings is higher (70-90%).\n\nMostly used together with [PowerToys](https://learn.microsoft.com/en-us/windows/powertoys/).\n\n## Set single value\n\n`.\\set-volume.exe 25` - set the current volume to 25%\n`.\\set-volume.exe 100` - set the current volume to 100% (max)\n\n## Range of values\n\nIt is possible to pass range of values and the app will set the volume to the closest (higher) value based on the current system value. The range values are separated with `,`\n\nImagine that the current volume is `25`. Then the command below will set it to `60`. `60` is the next bigger number to `25`:\n\n`.\\set-volume 10,12,14,60,70,90`\n\nHaving the volume to `60` if we execute the same command the system volume will be set to `70`.\nRunning it again - `90`.\nRunning it again `10` - when the current volume is equal or greater than the max range value, from the list, the app will set the volume to the lowest from the list/range. This way we can loop through pre-defined volume levels with ease.\n\n### Ascending/descending order\n\nWhen using range of values the app accepts second (optional) parameter. This parameter defines how to cycle through the values - in ascending or descending order.\n\nThe possible values are `acs` and `desc`\n\n\u003e [!NOTE]\n\u003e If this parameter is not provided then default value will be set - `asc`\n\n### Show current volume\n\nTo view the current volume level run:\n\n`.\\set-volume show`\n\nThis will print the current volume in the console and as OS notification\n\n## PowerToys\n\nThe whole idea of this app was to be used with [PowerToys](https://learn.microsoft.com/en-us/windows/powertoys/). In there we can remap shortcut to run a program.\n\n- start `PowerToys`\n- choose `Keyboard Manager`\n- scroll to `Remap a shortcut` and click on it\n- press `+ Add shortcut remapping` (bottom left)\n- choose the desired shortcut from the left side\n- on the right side:\n\n  - `Action` - `Run program`\n  - `App` - the full path to `set-volume.exe`\n  - `Args` - either single value (for example `20`) or range of values to loop. Separated by `,` (for example `10,12,14,60,70,100` or `10,12,14,60,70,100 desc`)\n  - `Start in` - (not sure its needed but ..) the folder where `set-volume.exe` is located\n  - `Elevation` - `Normal`\n  - `If running` - `Close`\n  - `Visibility` - `Hidden`\n\n    ![PowerToys config](./assets/powertoys_setup.png)\n  - press `OK`\n\nAnd thats it! (thinking about the screenshot above) if we now start pressing ``Ctrl + ` `` the volume will change between 10 -\u003e 12 -\u003e 14 -\u003e 60 -\u003e 70 -\u003e 100 -\u003e 10 ...\n\n\u003e [!NOTE]\n\u003e if `desc` is provided as a second parameter then the order will be reversed\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcountnazgul%2Fset-volume","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcountnazgul%2Fset-volume","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcountnazgul%2Fset-volume/lists"}