From a68f3843b7c80c84c066fa98be8c585e874c2c7a Mon Sep 17 00:00:00 2001 From: LGUG2Z Date: Fri, 24 Nov 2023 14:40:48 -0800 Subject: [PATCH] feat(cli): add ffm flag to enable-autostart The user dumbhighrank mentioned on Discord that it was not possible to call enable-autostart with the --ffm flag, as one might expect to be able to do, given that it is accepted by the start command. This commit introduces the --ffm flag for the enable-autostart command. --- komorebic/src/main.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/komorebic/src/main.rs b/komorebic/src/main.rs index 495157cd..eb46aa6a 100644 --- a/komorebic/src/main.rs +++ b/komorebic/src/main.rs @@ -718,6 +718,9 @@ struct EnableAutostart { /// Path to a static configuration JSON file #[clap(action, short, long)] config: String, + /// Enable komorebi's custom focus-follows-mouse implementation + #[clap(action, short, long = "ffm")] + ffm: bool, /// Enable autostart of whkd #[clap(action, long)] whkd: bool, @@ -1173,6 +1176,10 @@ fn main() -> Result<()> { let mut arguments = format!("start --config {}", args.config); + if args.ffm { + arguments.push_str(" --ffm"); + } + if args.whkd { arguments.push_str(" --whkd"); } else if args.ahk {