feat: quitOnSelected default to true
Release / Build ArchLinux Package (push) Successful in 1m0s
Release / Publish to Gitea Release (push) Successful in 3s
Release / Publish to AUR (push) Successful in 9s

This commit is contained in:
2026-04-03 09:06:21 +02:00
parent 9a6fa483a5
commit cf73b12996
5 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -121,7 +121,7 @@ Configures system commands to execute on specific events mapping to your window
| `onPreview` | String | `""` | Command to execute when a wallpaper is previewed. |
| `saveState` | Array of Objects | `[]` | Commands to fetch system states before changing wallpapers. Each object defines: `key`, `fallback` (fallback value), `command` (stdout mapping), and `timeout` (ms). |
| `onRestore` | String | `""` | Command to execute on restore. Extracted states from `saveState` can be injected using `{{ key }}`. |
| `quitOnSelected` | Boolean | `false` | Quit the application after a selection is made. |
| `quitOnSelected` | Boolean | `true` | Quit the application after a selection is made. |
| `restoreOnClose` | Boolean | `true` | Run `onRestore` command if the application is closed without making a final selection. |
Available placeholders for `onSelected`, `onPreview` commands:
+1 -1
View File
@@ -97,7 +97,7 @@ Each item has:
executed on restore.
Saved state keys are usable as placeholders.
.PP
\f[CR]quitOnSelected\f[R] (boolean, default: \f[CR]false\f[R]) : Exit
\f[CR]quitOnSelected\f[R] (boolean, default: \f[CR]true\f[R]) : Exit
application immediately after confirming a selection.
.PP
\f[CR]restoreOnClose\f[R] (boolean, default: \f[CR]true\f[R]) : Run
+2 -2
View File
@@ -35,7 +35,7 @@
// action.saveState[].command string "" Command that outputs(to stdout) the value to save when executed
// action.saveState[].timeout number 3000 Timeout for executing "command" in milliseconds. 0 or negative means no timeout
// action.onRestore string "" Command to execute on restore ({{ key }} -> value defined or obtained in saveState)
// action.quitOnSelected boolean false Whether to quit the application after confirming a wallpaper
// action.quitOnSelected boolean true Whether to quit the application after confirming a wallpaper
// action.restoreOnClose boolean true Whether to run the restore command after closing the application without confirming a wallpaper
//
// style.image_width number 320 Width of each image
@@ -125,7 +125,7 @@ struct ActionConfigItems {
QString onRestore;
int previewDebounceTime = 300; // milliseconds
bool printSelected = true;
bool quitOnSelected = false;
bool quitOnSelected = true;
bool restoreOnClose = true;
};
+1 -1
View File
@@ -143,7 +143,7 @@
},
"quitOnSelected": {
"type": "boolean",
"default": false,
"default": true,
"description": "Whether to quit the application after confirming a wallpaper"
},
"restoreOnClose": {
+1 -1
View File
@@ -98,7 +98,7 @@ Each item has:
`onRestore` (string, default: `""`)
: Command executed on restore. Saved state keys are usable as placeholders.
`quitOnSelected` (boolean, default: `false`)
`quitOnSelected` (boolean, default: `true`)
: Exit application immediately after confirming a selection.
`restoreOnClose` (boolean, default: `true`)