From d4b8ded6c80dba40e7d1f097831aed01e453e6ab Mon Sep 17 00:00:00 2001 From: end-4 <97237370+end-4@users.noreply.github.com> Date: Sat, 2 Aug 2025 17:35:44 +0700 Subject: [PATCH] overview: allow disabling overview (showing search only) --- .config/quickshell/ii/modules/common/Config.qml | 1 + .config/quickshell/ii/modules/overview/Overview.qml | 2 +- .config/quickshell/ii/modules/settings/InterfaceConfig.qml | 7 +++++++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.config/quickshell/ii/modules/common/Config.qml b/.config/quickshell/ii/modules/common/Config.qml index 5b8e1a07..476047a6 100644 --- a/.config/quickshell/ii/modules/common/Config.qml +++ b/.config/quickshell/ii/modules/common/Config.qml @@ -212,6 +212,7 @@ Singleton { } property JsonObject overview: JsonObject { + property bool enable: true property real scale: 0.18 // Relative to screen size property real rows: 2 property real columns: 5 diff --git a/.config/quickshell/ii/modules/overview/Overview.qml b/.config/quickshell/ii/modules/overview/Overview.qml index 6fd58761..6de20d41 100644 --- a/.config/quickshell/ii/modules/overview/Overview.qml +++ b/.config/quickshell/ii/modules/overview/Overview.qml @@ -122,7 +122,7 @@ Scope { Loader { id: overviewLoader - active: GlobalStates.overviewOpen + active: GlobalStates.overviewOpen && (Config?.options.overview.enable ?? true) sourceComponent: OverviewWidget { panelWindow: root visible: (root.searchingText == "") diff --git a/.config/quickshell/ii/modules/settings/InterfaceConfig.qml b/.config/quickshell/ii/modules/settings/InterfaceConfig.qml index f9cbab63..c2790547 100644 --- a/.config/quickshell/ii/modules/settings/InterfaceConfig.qml +++ b/.config/quickshell/ii/modules/settings/InterfaceConfig.qml @@ -351,6 +351,13 @@ ContentPage { ContentSection { title: Translation.tr("Overview") + ConfigSwitch { + text: Translation.tr("Enable") + checked: Config.options.overview.enable + onCheckedChanged: { + Config.options.overview.enable = checked; + } + } ConfigSpinBox { text: Translation.tr("Scale (%)") value: Config.options.overview.scale * 100