mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-03-26 03:11:17 +01:00
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.
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user