Compare commits
2 Commits
29da6a8d17
...
2f410f431e
Author | SHA1 | Date | |
---|---|---|---|
2f410f431e | |||
709ed8a89a |
18
LICENSE
@ -2,8 +2,20 @@ MIT License
|
||||
|
||||
Copyright (c) 2023 dlprows
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
|
@ -10,11 +10,12 @@ Application volume is changed with the windows volume mixer.
|
||||
Unlike faders or potentiometers, the encoders of the Stream Deck+ spin infinitely in either direction. Which means when you change your focused application, you don't have to worry about desynchronization with the current app.
|
||||
The screen updates to show the name/icon of the app so that you can always know what you're about to change.
|
||||
|
||||
![Focus volume control plugin preview](previews/preview.png?raw=true)
|
||||
![Focus volume control plugin preview](previews/1-preview.png?raw=true)
|
||||
|
||||
## Developing
|
||||
|
||||
build the solution with visual studio
|
||||
download the [stream deck distribution tool](https://docs.elgato.com/sdk/plugins/packaging) to `src/FocusVolumeControl/`
|
||||
run `install.bat <debug | release>`
|
||||
|
||||
to debug, attach to the FocusVolumeControl running process
|
||||
|
BIN
previews/1-preview.png
Normal file
After Width: | Height: | Size: 285 KiB |
BIN
previews/1-preview.xcf
Normal file
Before Width: | Height: | Size: 38 KiB |
@ -26,7 +26,7 @@ public class ActiveAudioSessionWrapper : IAudioSession
|
||||
}
|
||||
catch
|
||||
{
|
||||
_icon = "Image/pluginIcon.png";
|
||||
_icon = "Image/encoderIcon";
|
||||
}
|
||||
}
|
||||
return _icon;
|
||||
|
@ -13,7 +13,7 @@ internal class SystemVolumeAudioSession : IAudioSession
|
||||
AudioEndpointVolume _volumeControl;
|
||||
|
||||
public string DisplayName => "System Volume";
|
||||
public string GetIcon() => "Images/actionIcon";
|
||||
public string GetIcon() => "Images/encoderIcon";
|
||||
|
||||
public void ToggleMute()
|
||||
{
|
||||
|
@ -77,7 +77,7 @@
|
||||
</None>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="$(SolutionDir)..\previews\**\*" Link="previews\%(Filename)%(Extension)">
|
||||
<Content Include="$(SolutionDir)..\previews\**\*.png" Link="previews\%(Filename)%(Extension)">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Include="Images\**\*.png">
|
||||
|
Before Width: | Height: | Size: 5.2 KiB After Width: | Height: | Size: 897 B |
Before Width: | Height: | Size: 5.8 KiB After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 4.6 KiB After Width: | Height: | Size: 7.8 KiB |
Before Width: | Height: | Size: 5.3 KiB After Width: | Height: | Size: 9.1 KiB |
Before Width: | Height: | Size: 1.6 KiB |
BIN
src/FocusVolumeControl/Images/encoderIcon.png
Normal file
After Width: | Height: | Size: 1.6 KiB |
BIN
src/FocusVolumeControl/Images/encoderIcon@2x.png
Normal file
After Width: | Height: | Size: 2.3 KiB |
Before Width: | Height: | Size: 4.5 KiB |
Before Width: | Height: | Size: 5.0 KiB |
Before Width: | Height: | Size: 5.9 KiB |
Before Width: | Height: | Size: 8.3 KiB |
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 36 KiB After Width: | Height: | Size: 12 KiB |
BIN
src/FocusVolumeControl/Images/stateIcon.png
Normal file
After Width: | Height: | Size: 2.1 KiB |
BIN
src/FocusVolumeControl/Images/stateIcon@2x.png
Normal file
After Width: | Height: | Size: 3.1 KiB |
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 2.4 KiB |
@ -2,10 +2,10 @@
|
||||
"Actions": [
|
||||
{
|
||||
"Name": "Focused App Volume",
|
||||
"Icon": "Images/icon",
|
||||
"Icon": "Images/actionIcon",
|
||||
"States": [
|
||||
{
|
||||
"Image": "Images/pluginAction",
|
||||
"Image": "Images/stateIcon",
|
||||
"TitleAlignment": "middle",
|
||||
"FontSize": "12"
|
||||
}
|
||||
@ -20,7 +20,7 @@
|
||||
"Rotate": "Change the volume",
|
||||
"Push": "Mute",
|
||||
"Touch": "Mute",
|
||||
"LongTouch": "Reset"
|
||||
"LongTouch": "Reset"
|
||||
}
|
||||
},
|
||||
"SupportedInMultiActions": false,
|
||||
@ -32,7 +32,7 @@
|
||||
"Author": "dlprows",
|
||||
"Name": "FocusVolumeControl",
|
||||
"Description": "Control the volume of the focused application",
|
||||
"URL": "https://encyclopediaofdaniel.com",
|
||||
"URL": "https://github.com/dlprows/FocusVolumeControl",
|
||||
"Version": "1.0",
|
||||
"CodePath": "FocusVolumeControl",
|
||||
"Category": "Volume Control [dlprows]",
|
||||
|