plasmoids: añade commandoutput y codexbar al tracking
Ambos ya estaban puestos en un panel real pero no viajaban a la otra máquina -- detectado en la misma auditoría que quitó claudeusageswitcher y tt.launchpadPlasma (sin usar). Sin esto, una reinstalación desde arch-setup dejaría el panel sin estos dos widgets. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 5
parent
d434a3c635
commit
b98999cde9
+83
@@ -0,0 +1,83 @@
|
||||
import QtQuick
|
||||
import QtQuick.Controls as QQC2
|
||||
import QtQuick.Layouts
|
||||
|
||||
import org.kde.kirigami as Kirigami
|
||||
import org.kde.plasma.core as PlasmaCore
|
||||
|
||||
import "../libconfig" as LibConfig
|
||||
|
||||
LibConfig.FormKCM {
|
||||
|
||||
//-------------------------------------------------------
|
||||
LibConfig.Heading {
|
||||
text: i18n("Tooltip")
|
||||
label.horizontalAlignment: Text.AlignHCenter
|
||||
}
|
||||
ColumnLayout {
|
||||
Kirigami.FormData.isSection: true
|
||||
Layout.preferredWidth: 360 * Screen.devicePixelRatio
|
||||
spacing: 0
|
||||
QQC2.Label {
|
||||
text: i18n("Hover Command:")
|
||||
}
|
||||
LibConfig.TextField {
|
||||
Layout.fillWidth: true
|
||||
configKey: 'tooltipCommand'
|
||||
wrapMode: LibConfig.TextField.Wrap
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//-------------------------------------------------------
|
||||
LibConfig.Heading {
|
||||
text: i18n("Click")
|
||||
label.horizontalAlignment: Text.AlignHCenter
|
||||
}
|
||||
ColumnLayout {
|
||||
Kirigami.FormData.isSection: true
|
||||
Layout.preferredWidth: 360 * Screen.devicePixelRatio
|
||||
spacing: 0
|
||||
QQC2.Label {
|
||||
text: i18n("Run Command:")
|
||||
}
|
||||
LibConfig.TextField {
|
||||
Layout.fillWidth: true
|
||||
configKey: 'clickCommand'
|
||||
wrapMode: LibConfig.TextField.Wrap
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//-------------------------------------------------------
|
||||
LibConfig.Heading {
|
||||
text: i18n("Mouse Wheel")
|
||||
label.horizontalAlignment: Text.AlignHCenter
|
||||
}
|
||||
ColumnLayout {
|
||||
Kirigami.FormData.isSection: true
|
||||
Layout.preferredWidth: 360 * Screen.devicePixelRatio
|
||||
spacing: 0
|
||||
QQC2.Label {
|
||||
text: i18n("Scroll Up:")
|
||||
}
|
||||
LibConfig.TextField {
|
||||
Layout.fillWidth: true
|
||||
configKey: 'mousewheelUpCommand'
|
||||
wrapMode: LibConfig.TextField.Wrap
|
||||
}
|
||||
}
|
||||
ColumnLayout {
|
||||
Kirigami.FormData.isSection: true
|
||||
Layout.preferredWidth: 360 * Screen.devicePixelRatio
|
||||
spacing: 0
|
||||
QQC2.Label {
|
||||
text: i18n("Scroll Down:")
|
||||
}
|
||||
LibConfig.TextField {
|
||||
Layout.fillWidth: true
|
||||
configKey: 'mousewheelDownCommand'
|
||||
wrapMode: LibConfig.TextField.Wrap
|
||||
}
|
||||
}
|
||||
}
|
||||
+94
@@ -0,0 +1,94 @@
|
||||
import QtQuick
|
||||
import QtQuick.Layouts
|
||||
|
||||
import org.kde.kirigami as Kirigami
|
||||
import org.kde.plasma.core as PlasmaCore
|
||||
|
||||
import "../libconfig" as LibConfig
|
||||
|
||||
LibConfig.FormKCM {
|
||||
|
||||
//-------------------------------------------------------
|
||||
LibConfig.Heading {
|
||||
text: i18n("Font")
|
||||
}
|
||||
LibConfig.FontFamily {
|
||||
Kirigami.FormData.label: i18n("Font Family:")
|
||||
configKey: 'fontFamily'
|
||||
}
|
||||
LibConfig.SpinBox {
|
||||
Kirigami.FormData.label: i18n("Font Size:")
|
||||
configKey: 'fontSize'
|
||||
suffix: i18n("px")
|
||||
}
|
||||
LibConfig.TextFormat {
|
||||
boldConfigKey: 'bold'
|
||||
italicConfigKey: 'italic'
|
||||
underlineConfigKey: 'underline'
|
||||
alignConfigKey: 'textAlign'
|
||||
vertAlignConfigKey: 'vertAlign'
|
||||
}
|
||||
|
||||
|
||||
//-------------------------------------------------------
|
||||
LibConfig.Heading {
|
||||
text: i18n("Colors")
|
||||
}
|
||||
LibConfig.ColorField {
|
||||
Kirigami.FormData.label: i18n("Text:")
|
||||
configKey: 'textColor'
|
||||
defaultColor: PlasmaCore.Theme.textColor
|
||||
}
|
||||
RowLayout {
|
||||
Kirigami.FormData.label: i18n("Outline:")
|
||||
spacing: 0
|
||||
LibConfig.CheckBox {
|
||||
configKey: 'showOutline'
|
||||
}
|
||||
LibConfig.ColorField {
|
||||
configKey: 'outlineColor'
|
||||
defaultColor: PlasmaCore.Theme.backgroundColor
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//-------------------------------------------------------
|
||||
LibConfig.Heading {
|
||||
text: i18n("Misc")
|
||||
}
|
||||
LibConfig.CheckBox {
|
||||
Kirigami.FormData.label: i18n("Desktop Widget:")
|
||||
configKey: 'showBackground'
|
||||
text: i18n("Show background")
|
||||
visible: plasmoid.location == PlasmaCore.Types.Floating
|
||||
}
|
||||
RowLayout {
|
||||
Kirigami.FormData.label: i18n("Fixed Width:")
|
||||
spacing: 0
|
||||
visible: plasmoid.formFactor == PlasmaCore.Types.Horizontal
|
||||
LibConfig.CheckBox {
|
||||
configKey: 'useFixedWidth'
|
||||
}
|
||||
LibConfig.SpinBox {
|
||||
configKey: 'fixedWidth'
|
||||
suffix: i18n("px")
|
||||
}
|
||||
}
|
||||
RowLayout {
|
||||
Kirigami.FormData.label: i18n("Fixed Height:")
|
||||
spacing: 0
|
||||
visible: plasmoid.formFactor == PlasmaCore.Types.Vertical
|
||||
LibConfig.CheckBox {
|
||||
configKey: 'useFixedHeight'
|
||||
}
|
||||
LibConfig.SpinBox {
|
||||
configKey: 'fixedHeight'
|
||||
suffix: i18n("px")
|
||||
}
|
||||
}
|
||||
LibConfig.CheckBox {
|
||||
Kirigami.FormData.label: i18n("Replace all newlines with spaces")
|
||||
configKey: 'replaceAllNewlines'
|
||||
}
|
||||
|
||||
}
|
||||
+41
@@ -0,0 +1,41 @@
|
||||
import QtQuick
|
||||
import QtQuick.Layouts
|
||||
|
||||
import org.kde.kirigami as Kirigami
|
||||
import org.kde.plasma.core as PlasmaCore
|
||||
|
||||
import "../libconfig" as LibConfig
|
||||
|
||||
LibConfig.FormKCM {
|
||||
|
||||
property alias cfg_command: command.text
|
||||
property alias cfg_interval: interval.value
|
||||
property alias cfg_waitForCompletion: waitForCompletion.checked
|
||||
|
||||
//-------------------------------------------------------
|
||||
LibConfig.Heading {
|
||||
text: i18n("Command")
|
||||
}
|
||||
LibConfig.TextField {
|
||||
id: command
|
||||
// configKey: 'command'
|
||||
Kirigami.FormData.isSection: true
|
||||
Layout.fillWidth: true
|
||||
Layout.preferredWidth: 240 * Screen.devicePixelRatio // + ~180px from label column
|
||||
wrapMode: LibConfig.TextField.Wrap
|
||||
}
|
||||
LibConfig.SpinBox {
|
||||
id: interval
|
||||
Kirigami.FormData.label: i18n("Run every ")
|
||||
configKey: 'interval'
|
||||
suffix: i18n("ms")
|
||||
stepSize: 500
|
||||
}
|
||||
LibConfig.CheckBox {
|
||||
id: waitForCompletion
|
||||
Kirigami.FormData.label: i18n("Wait for completion")
|
||||
// configKey: 'waitForCompletion'
|
||||
text: i18n("Enabled")
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user