Added the ability to adjust application specific audio levels. (#608)
* Added a playback volume module in audio menu. * Finish playback source volume adjuster.
This commit is contained in:
@@ -140,7 +140,10 @@ export const CustomModuleSettings = (): JSX.Element => {
|
||||
<Option
|
||||
opt={options.bar.customModules.netstat.networkInterface}
|
||||
title="Network Interface"
|
||||
subtitle="Wiki: https://hyprpanel.com/configuration/panel.html#custom-modules"
|
||||
subtitle={
|
||||
'Name of the network interface to poll.\n' +
|
||||
"HINT: Get a list of interfaces with 'cat /proc/net/dev"
|
||||
}
|
||||
type="string"
|
||||
/>
|
||||
<Option
|
||||
@@ -280,6 +283,79 @@ export const CustomModuleSettings = (): JSX.Element => {
|
||||
<Option opt={options.bar.customModules.weather.middleClick} title="Middle Click" type="string" />
|
||||
<Option opt={options.bar.customModules.weather.scrollUp} title="Scroll Up" type="string" />
|
||||
<Option opt={options.bar.customModules.weather.scrollDown} title="Scroll Down" type="string" />
|
||||
|
||||
{/* Hyprsunset Section */}
|
||||
<Header title="Hyprsunset" />
|
||||
<Option
|
||||
opt={options.bar.customModules.hyprsunset.temperature}
|
||||
title="Temperature"
|
||||
subtitle="Ex: 1000k, 2000k, 5000k, etc."
|
||||
type="string"
|
||||
/>
|
||||
<Option
|
||||
opt={options.theme.bar.buttons.modules.hyprsunset.enableBorder}
|
||||
title="Button Border"
|
||||
type="boolean"
|
||||
/>
|
||||
<Option opt={options.bar.customModules.hyprsunset.onIcon} title="Enabled Icon" type="string" />
|
||||
<Option opt={options.bar.customModules.hyprsunset.offIcon} title="Disabled Icon" type="string" />
|
||||
<Option opt={options.bar.customModules.hyprsunset.onLabel} title="Enabled Label" type="string" />
|
||||
<Option opt={options.bar.customModules.hyprsunset.offLabel} title="Disabled Label" type="string" />
|
||||
<Option opt={options.bar.customModules.hyprsunset.label} title="Show Label" type="boolean" />
|
||||
<Option opt={options.theme.bar.buttons.modules.hyprsunset.spacing} title="Spacing" type="string" />
|
||||
<Option
|
||||
opt={options.bar.customModules.hyprsunset.pollingInterval}
|
||||
title="Polling Interval"
|
||||
type="number"
|
||||
min={100}
|
||||
max={60 * 24 * 1000}
|
||||
increment={1000}
|
||||
/>
|
||||
<Option opt={options.bar.customModules.hyprsunset.rightClick} title="Right Click" type="string" />
|
||||
<Option opt={options.bar.customModules.hyprsunset.middleClick} title="Middle Click" type="string" />
|
||||
<Option opt={options.bar.customModules.hyprsunset.scrollUp} title="Scroll Up" type="string" />
|
||||
<Option opt={options.bar.customModules.hyprsunset.scrollDown} title="Scroll Down" type="string" />
|
||||
|
||||
{/* Hypridle Section */}
|
||||
<Header title="Hypridle" />
|
||||
<Option
|
||||
opt={options.theme.bar.buttons.modules.hypridle.enableBorder}
|
||||
title="Button Border"
|
||||
type="boolean"
|
||||
/>
|
||||
<Option opt={options.bar.customModules.hypridle.onIcon} title="Enabled Icon" type="string" />
|
||||
<Option opt={options.bar.customModules.hypridle.offIcon} title="Disabled Icon" type="string" />
|
||||
<Option opt={options.bar.customModules.hypridle.onLabel} title="Enabled Label" type="string" />
|
||||
<Option opt={options.bar.customModules.hypridle.offLabel} title="Disabled Label" type="string" />
|
||||
<Option opt={options.bar.customModules.hypridle.label} title="Show Label" type="boolean" />
|
||||
<Option opt={options.theme.bar.buttons.modules.hypridle.spacing} title="Spacing" type="string" />
|
||||
<Option
|
||||
opt={options.bar.customModules.hypridle.pollingInterval}
|
||||
title="Polling Interval"
|
||||
type="number"
|
||||
min={100}
|
||||
max={60 * 24 * 1000}
|
||||
increment={1000}
|
||||
/>
|
||||
<Option opt={options.bar.customModules.hypridle.rightClick} title="Right Click" type="string" />
|
||||
<Option opt={options.bar.customModules.hypridle.middleClick} title="Middle Click" type="string" />
|
||||
<Option opt={options.bar.customModules.hypridle.scrollUp} title="Scroll Up" type="string" />
|
||||
<Option opt={options.bar.customModules.hypridle.scrollDown} title="Scroll Down" type="string" />
|
||||
|
||||
{/* Power Section */}
|
||||
<Header title="Power" />
|
||||
<Option
|
||||
opt={options.theme.bar.buttons.modules.power.enableBorder}
|
||||
title="Button Border"
|
||||
type="boolean"
|
||||
/>
|
||||
<Option opt={options.theme.bar.buttons.modules.power.spacing} title="Spacing" type="string" />
|
||||
<Option opt={options.bar.customModules.power.icon} title="Power Button Icon" type="string" />
|
||||
<Option opt={options.bar.customModules.power.leftClick} title="Left Click" type="string" />
|
||||
<Option opt={options.bar.customModules.power.rightClick} title="Right Click" type="string" />
|
||||
<Option opt={options.bar.customModules.power.middleClick} title="Middle Click" type="string" />
|
||||
<Option opt={options.bar.customModules.power.scrollUp} title="Scroll Up" type="string" />
|
||||
<Option opt={options.bar.customModules.power.scrollDown} title="Scroll Down" type="string" />
|
||||
</box>
|
||||
</scrollable>
|
||||
);
|
||||
|
||||
@@ -158,6 +158,56 @@ export const CustomModuleTheme = (): JSX.Element => {
|
||||
type="color"
|
||||
/>
|
||||
<Option opt={options.theme.bar.buttons.modules.weather.border} title="Border" type="color" />
|
||||
|
||||
{/* Hyprsunset Module Section */}
|
||||
<Header title="Hyprsunset" />
|
||||
<Option opt={options.theme.bar.buttons.modules.hyprsunset.text} title="Text" type="color" />
|
||||
<Option opt={options.theme.bar.buttons.modules.hyprsunset.icon} title="Icon" type="color" />
|
||||
<Option
|
||||
opt={options.theme.bar.buttons.modules.hyprsunset.background}
|
||||
title="Label Background"
|
||||
type="color"
|
||||
/>
|
||||
<Option
|
||||
opt={options.theme.bar.buttons.modules.hyprsunset.icon_background}
|
||||
title="Icon Background"
|
||||
subtitle="Applies a background color to the icon section of the button.\nRequires 'split' button styling."
|
||||
type="color"
|
||||
/>
|
||||
<Option opt={options.theme.bar.buttons.modules.hyprsunset.border} title="Border" type="color" />
|
||||
|
||||
{/* Hypridle Module Section */}
|
||||
<Header title="Hypridle" />
|
||||
<Option opt={options.theme.bar.buttons.modules.hypridle.text} title="Text" type="color" />
|
||||
<Option opt={options.theme.bar.buttons.modules.hypridle.icon} title="Icon" type="color" />
|
||||
<Option
|
||||
opt={options.theme.bar.buttons.modules.hypridle.background}
|
||||
title="Label Background"
|
||||
type="color"
|
||||
/>
|
||||
<Option
|
||||
opt={options.theme.bar.buttons.modules.hypridle.icon_background}
|
||||
title="Icon Background"
|
||||
subtitle="Applies a background color to the icon section of the button.\nRequires 'split' button styling."
|
||||
type="color"
|
||||
/>
|
||||
<Option opt={options.theme.bar.buttons.modules.hypridle.border} title="Border" type="color" />
|
||||
|
||||
{/* Power Module Section */}
|
||||
<Header title="Power" />
|
||||
<Option opt={options.theme.bar.buttons.modules.power.icon} title="Icon" type="color" />
|
||||
<Option
|
||||
opt={options.theme.bar.buttons.modules.power.background}
|
||||
title="Label Background"
|
||||
type="color"
|
||||
/>
|
||||
<Option
|
||||
opt={options.theme.bar.buttons.modules.power.icon_background}
|
||||
title="Icon Background"
|
||||
subtitle="Applies a background color to the icon section of the button.\nRequires 'split' button styling."
|
||||
type="color"
|
||||
/>
|
||||
<Option opt={options.theme.bar.buttons.modules.power.border} title="Border" type="color" />
|
||||
</box>
|
||||
</scrollable>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user