mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-07-31 08:44:45 +00:00
s/settingsModule/settingsCommand
This commit is contained in:
parent
fe4ad093ec
commit
7263c9ac15
2 changed files with 12 additions and 14 deletions
|
|
@ -62,11 +62,9 @@ RowLayout {
|
||||||
id: labelMouseArea
|
id: labelMouseArea
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
onClicked: {
|
onClicked: {
|
||||||
var command = "active-settings";
|
if (model.settingsCommand) {
|
||||||
if (model.settingsModule) {
|
plasmoid.nativeInterface.executeCommand(model.settingsCommand);
|
||||||
command += " -m " + model.settingsModule;
|
|
||||||
}
|
}
|
||||||
plasmoid.nativeInterface.executeCommand(command)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -38,61 +38,61 @@ Item {
|
||||||
text: "Settings"
|
text: "Settings"
|
||||||
icon: "configure"
|
icon: "configure"
|
||||||
enabled: false
|
enabled: false
|
||||||
settingsModule: ""
|
settingsCommand: "active-settings"
|
||||||
}
|
}
|
||||||
ListElement {
|
ListElement {
|
||||||
text: "Mobile network"
|
text: "Mobile network"
|
||||||
icon: "network-mobile-80"
|
icon: "network-mobile-80"
|
||||||
enabled: true
|
enabled: true
|
||||||
settingsModule: ""
|
settingsCommand: ""
|
||||||
}
|
}
|
||||||
ListElement {
|
ListElement {
|
||||||
text: "Airplane mode"
|
text: "Airplane mode"
|
||||||
icon: "flightmode-on"
|
icon: "flightmode-on"
|
||||||
enabled: false
|
enabled: false
|
||||||
settingsModule: ""
|
settingsCommand: ""
|
||||||
}
|
}
|
||||||
ListElement {
|
ListElement {
|
||||||
text: "Bluetooth"
|
text: "Bluetooth"
|
||||||
icon: "preferences-system-bluetooth"
|
icon: "preferences-system-bluetooth"
|
||||||
enabled: false
|
enabled: false
|
||||||
settingsModule: ""
|
settingsCommand: ""
|
||||||
}
|
}
|
||||||
ListElement {
|
ListElement {
|
||||||
text: "Wireless"
|
text: "Wireless"
|
||||||
icon: "network-wireless-on"
|
icon: "network-wireless-on"
|
||||||
enabled: true
|
enabled: true
|
||||||
settingsModule: "org.kde.satellite.settings.wifi"
|
settingsCommand: "active-settings -m org.kde.satellite.settings.wifi"
|
||||||
}
|
}
|
||||||
ListElement {
|
ListElement {
|
||||||
text: "Alarms"
|
text: "Alarms"
|
||||||
icon: "korgac"
|
icon: "korgac"
|
||||||
enabled: false
|
enabled: false
|
||||||
settingsModule: ""
|
settingsCommand: ""
|
||||||
}
|
}
|
||||||
ListElement {
|
ListElement {
|
||||||
text: "Notifications"
|
text: "Notifications"
|
||||||
icon: "preferences-desktop-notification"
|
icon: "preferences-desktop-notification"
|
||||||
enabled: true
|
enabled: true
|
||||||
settingsModule: ""
|
settingsCommand: ""
|
||||||
}
|
}
|
||||||
ListElement {
|
ListElement {
|
||||||
text: "Brightness"
|
text: "Brightness"
|
||||||
icon: "video-display-brightness"
|
icon: "video-display-brightness"
|
||||||
enabled: false
|
enabled: false
|
||||||
settingsModule: "org.kde.active.settings.powermanagement"
|
settingsCommand: "active-settings -m org.kde.active.settings.powermanagement"
|
||||||
}
|
}
|
||||||
ListElement {
|
ListElement {
|
||||||
text: "Flashlight"
|
text: "Flashlight"
|
||||||
icon: "package_games_puzzle"
|
icon: "package_games_puzzle"
|
||||||
enabled: false
|
enabled: false
|
||||||
settingsModule: ""
|
settingsCommand: ""
|
||||||
}
|
}
|
||||||
ListElement {
|
ListElement {
|
||||||
text: "Location"
|
text: "Location"
|
||||||
icon: "plasmaapplet-location"
|
icon: "plasmaapplet-location"
|
||||||
enabled: false
|
enabled: false
|
||||||
settingsModule: ""
|
settingsCommand: ""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue