mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-07-11 15:42:43 +02: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
|
/// Path to a static configuration JSON file
|
||||||
#[clap(action, short, long)]
|
#[clap(action, short, long)]
|
||||||
config: String,
|
config: String,
|
||||||
|
/// Enable komorebi's custom focus-follows-mouse implementation
|
||||||
|
#[clap(action, short, long = "ffm")]
|
||||||
|
ffm: bool,
|
||||||
/// Enable autostart of whkd
|
/// Enable autostart of whkd
|
||||||
#[clap(action, long)]
|
#[clap(action, long)]
|
||||||
whkd: bool,
|
whkd: bool,
|
||||||
@@ -1173,6 +1176,10 @@ fn main() -> Result<()> {
|
|||||||
|
|
||||||
let mut arguments = format!("start --config {}", args.config);
|
let mut arguments = format!("start --config {}", args.config);
|
||||||
|
|
||||||
|
if args.ffm {
|
||||||
|
arguments.push_str(" --ffm");
|
||||||
|
}
|
||||||
|
|
||||||
if args.whkd {
|
if args.whkd {
|
||||||
arguments.push_str(" --whkd");
|
arguments.push_str(" --whkd");
|
||||||
} else if args.ahk {
|
} else if args.ahk {
|
||||||
|
|||||||
Reference in New Issue
Block a user