feat: added widgets capture, music visualiser, bluetooth, notes

This commit is contained in:
2026-09-22 01:22:27 +02:00
parent 9b023a0993
commit d15bb4687c
25 changed files with 1675 additions and 55 deletions
+90 -2
View File
@@ -2,6 +2,7 @@ import QtQuick
import qs.Common
import qs.Modules.Plugins
import qs.Widgets
import "./settings"
PluginSettings {
id: settings
@@ -34,7 +35,7 @@ PluginSettings {
StyledText {
width: parent.width
text: "Commands: dms ipc call gameBar toggle / open / close / widget <audio|apps|media|home|system> / resetLayout"
text: "Commands: dms ipc call gameBar toggle / open / close / widget <name> / resetLayout"
font.pixelSize: Theme.fontSizeSmall
font.family: Theme.monoFontFamily
color: Theme.surfaceVariantText
@@ -55,6 +56,93 @@ PluginSettings {
rightIcon: "dark_mode"
}
ToggleSetting {
settingKey: "autoPinBrightness"
label: "Match brightness devices to monitors"
description: "Detects which DDC device belongs to which display and pins it, so the shell's own brightness slider follows the panel's monitor"
defaultValue: true
}
SelectionSetting {
settingKey: "barBrightnessTarget"
label: "Bar brightness widget controls"
description: "Which display the DankBar brightness pill adjusts"
options: [
{
"label": "Focused monitor",
"value": "focused"
},
{
"label": "Its own monitor",
"value": "own"
}
]
defaultValue: "focused"
}
StringSetting {
settingKey: "captureDirectory"
label: "Capture folder"
description: "Where recordings and replays are written"
defaultValue: "~/Videos/GameBar"
placeholder: "~/Videos/GameBar"
}
SliderSetting {
settingKey: "captureFps"
label: "Recording frame rate"
defaultValue: 60
minimum: 24
maximum: 144
unit: " fps"
leftIcon: "slow_motion_video"
rightIcon: "speed"
}
SliderSetting {
settingKey: "captureReplaySeconds"
label: "Replay buffer length"
description: "How much of the past the replay buffer keeps"
defaultValue: 30
minimum: 5
maximum: 300
unit: "s"
leftIcon: "timer"
rightIcon: "history"
}
SelectionSetting {
settingKey: "captureQuality"
label: "Recording quality"
options: [
{
"label": "Medium",
"value": "medium"
},
{
"label": "High",
"value": "high"
},
{
"label": "Very high",
"value": "very_high"
},
{
"label": "Ultra",
"value": "ultra"
}
]
defaultValue: "very_high"
}
StringSetting {
settingKey: "captureAudio"
label: "Recorded audio source"
description: "gpu-screen-recorder device, e.g. default_output"
defaultValue: "default_output"
placeholder: "default_output"
}
StringSetting {
settingKey: "haUrl"
label: "Home Assistant URL"
@@ -81,7 +169,7 @@ PluginSettings {
rightIcon: "schedule"
}
GameBarHomeSettings {
HomeSettings {
width: parent.width
settings: settings
}