mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-26 14:23:09 +00:00
This quicksetting plugion allows the user to open the KScreen OSD which makes it easy to reconfigure a multiscreen setup. It's only available when more than one monitor is connected. Signed-off-by: Sebastian Kügler <sebas@kde.org>
22 lines
618 B
QML
22 lines
618 B
QML
// SPDX-FileCopyrightText: 2025 Sebastian Kügler <sebas@kde.org>
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
import QtQuick
|
|
|
|
import org.kde.plasma.quicksetting.kscreenosd
|
|
import org.kde.plasma.private.mobileshell.quicksettingsplugin as QS
|
|
|
|
QS.QuickSetting {
|
|
id: kscreenosd_qs
|
|
text: i18n("Display Config")
|
|
icon: "osd-duplicate"
|
|
settingsCommand: "plasma-open-settings kcm_kscreen"
|
|
status: i18nc("kscreen osd quicksetting", "Tap to set up")
|
|
enabled: false
|
|
available: true
|
|
|
|
function toggle() {
|
|
console.log("Showing KScreen OSD");
|
|
KScreenOSDUtil.showKScreenOSD();
|
|
}
|
|
}
|