Skip to content

Commit

Permalink
feat(cli): add ffm flag to enable-autostart
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
LGUG2Z committed Nov 24, 2023
1 parent b3e989c commit a68f384
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions komorebic/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit a68f384

Please sign in to comment.