diff --git a/quickshell/Common/SettingsData.qml b/quickshell/Common/SettingsData.qml index ab4e029c..676aae45 100644 --- a/quickshell/Common/SettingsData.qml +++ b/quickshell/Common/SettingsData.qml @@ -274,6 +274,8 @@ Singleton { property string spotlightModalViewMode: "list" property string browserPickerViewMode: "grid" property var browserUsageHistory: ({}) + property string appPickerViewMode: "grid" + property var filePickerUsageHistory: ({}) property bool sortAppsAlphabetically: false property int appLauncherGridColumns: 4 property bool spotlightCloseNiriOverview: true diff --git a/quickshell/Common/settings/SettingsSpec.js b/quickshell/Common/settings/SettingsSpec.js index 8a62a864..d720b89e 100644 --- a/quickshell/Common/settings/SettingsSpec.js +++ b/quickshell/Common/settings/SettingsSpec.js @@ -133,6 +133,10 @@ var SPEC = { appLauncherViewMode: { def: "list" }, spotlightModalViewMode: { def: "list" }, + browserPickerViewMode: { def: "grid" }, + browserUsageHistory: { def: {} }, + appPickerViewMode: { def: "grid" }, + filePickerUsageHistory: { def: {} }, sortAppsAlphabetically: { def: false }, appLauncherGridColumns: { def: 4 }, spotlightCloseNiriOverview: { def: true }, diff --git a/quickshell/DMSShell.qml b/quickshell/DMSShell.qml index 6af23e8d..0218c08c 100644 --- a/quickshell/DMSShell.qml +++ b/quickshell/DMSShell.qml @@ -550,6 +550,11 @@ Item { AppPickerModal { id: filePickerModal title: I18n.tr("Open with...") + viewMode: SettingsData.appPickerViewMode || "grid" + + onViewModeChanged: { + SettingsData.set("appPickerViewMode", viewMode) + } function shellEscape(str) { return "'" + str.replace(/'/g, "'\\''") + "'";