config: allow setting stdout/err for exec

Introduces the exec_output command, which sets the file to use for
stdout and stderr in the exec and exec_always commands.
This commit is contained in:
MithicSpirit 2025-06-18 00:51:25 -04:00
parent 170c9c9525
commit a91c7774fa
No known key found for this signature in database
GPG key ID: 0EA043551EBD3C2E
7 changed files with 57 additions and 0 deletions

View file

@ -127,6 +127,7 @@ sway_cmd cmd_default_floating_border;
sway_cmd cmd_default_orientation;
sway_cmd cmd_exec;
sway_cmd cmd_exec_always;
sway_cmd cmd_exec_output;
sway_cmd cmd_exit;
sway_cmd cmd_floating;
sway_cmd cmd_floating_maximum_size;

View file

@ -521,6 +521,7 @@ struct sway_config {
enum sway_fowa focus_on_window_activation;
enum sway_popup_during_fullscreen popup_during_fullscreen;
enum xwayland_mode xwayland;
int exec_out;
// swaybg
char *swaybg_command;