1 Commits

Author SHA1 Message Date
Uyanide cf73b12996 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
2026-04-03 09:09:40 +02:00
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. | | `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). | | `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 }}`. | | `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. | | `restoreOnClose` | Boolean | `true` | Run `onRestore` command if the application is closed without making a final selection. |
Available placeholders for `onSelected`, `onPreview` commands: Available placeholders for `onSelected`, `onPreview` commands:
+1 -1
View File
@@ -97,7 +97,7 @@ Each item has:
executed on restore. executed on restore.
Saved state keys are usable as placeholders. Saved state keys are usable as placeholders.
.PP .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. application immediately after confirming a selection.
.PP .PP
\f[CR]restoreOnClose\f[R] (boolean, default: \f[CR]true\f[R]) : Run \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[].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.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.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 // 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 // style.image_width number 320 Width of each image
@@ -125,7 +125,7 @@ struct ActionConfigItems {
QString onRestore; QString onRestore;
int previewDebounceTime = 300; // milliseconds int previewDebounceTime = 300; // milliseconds
bool printSelected = true; bool printSelected = true;
bool quitOnSelected = false; bool quitOnSelected = true;
bool restoreOnClose = true; bool restoreOnClose = true;
}; };
+1 -1
View File
@@ -143,7 +143,7 @@
}, },
"quitOnSelected": { "quitOnSelected": {
"type": "boolean", "type": "boolean",
"default": false, "default": true,
"description": "Whether to quit the application after confirming a wallpaper" "description": "Whether to quit the application after confirming a wallpaper"
}, },
"restoreOnClose": { "restoreOnClose": {
+1 -1
View File
@@ -98,7 +98,7 @@ Each item has:
`onRestore` (string, default: `""`) `onRestore` (string, default: `""`)
: Command executed on restore. Saved state keys are usable as placeholders. : 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. : Exit application immediately after confirming a selection.
`restoreOnClose` (boolean, default: `true`) `restoreOnClose` (boolean, default: `true`)