mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-06-09 12:12:46 +02:00
fix(wm): ensure await-configuration is opt-in
This commit is contained in:
Generated
+3
-3
@@ -464,7 +464,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "komorebi"
|
name = "komorebi"
|
||||||
version = "0.1.11"
|
version = "0.1.12"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"bitflags",
|
"bitflags",
|
||||||
"clap",
|
"clap",
|
||||||
@@ -499,7 +499,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "komorebi-core"
|
name = "komorebi-core"
|
||||||
version = "0.1.11"
|
version = "0.1.12"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"clap",
|
"clap",
|
||||||
"color-eyre",
|
"color-eyre",
|
||||||
@@ -513,7 +513,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "komorebic"
|
name = "komorebic"
|
||||||
version = "0.1.11"
|
version = "0.1.12"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"clap",
|
"clap",
|
||||||
"color-eyre",
|
"color-eyre",
|
||||||
|
|||||||
@@ -286,9 +286,10 @@ with many retile events.
|
|||||||
If you would like to avoid this, you can start `komorebi` with a flag which tells `komorebi` to wait until all configuration
|
If you would like to avoid this, you can start `komorebi` with a flag which tells `komorebi` to wait until all configuration
|
||||||
has been loaded before listening to and responding to window manager events: `komorebic start --await-configuration`.
|
has been loaded before listening to and responding to window manager events: `komorebic start --await-configuration`.
|
||||||
|
|
||||||
If you start `komorebi` with the `--await-configuration` flag, you _must_ send the `komorebic complete-configuration` command
|
If you start `komorebi` with the `--await-configuration` flag, you _must_ send the `komorebic complete-configuration`
|
||||||
at the end of your `komorebi.ahk` config. The layout will not be updated and `komorebi` will not respond to `komorebic`
|
command at the end of the configuration section of your `komorebi.ahk` config (before you start defining the key
|
||||||
commands until this command has been received.
|
bindings). The layout will not be updated and `komorebi` will not respond to `komorebic` commands until this command has
|
||||||
|
been received.
|
||||||
|
|
||||||
#### Floating Windows
|
#### Floating Windows
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "komorebi-core"
|
name = "komorebi-core"
|
||||||
version = "0.1.11"
|
version = "0.1.12"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
|
|
||||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "komorebi"
|
name = "komorebi"
|
||||||
version = "0.1.11"
|
version = "0.1.12"
|
||||||
authors = ["Jade Iqbal <jadeiqbal@fastmail.com>"]
|
authors = ["Jade Iqbal <jadeiqbal@fastmail.com>"]
|
||||||
description = "A tiling window manager for Windows"
|
description = "A tiling window manager for Windows"
|
||||||
categories = ["tiling-window-manager", "windows"]
|
categories = ["tiling-window-manager", "windows"]
|
||||||
|
|||||||
@@ -256,9 +256,7 @@ pub fn load_configuration() -> Result<()> {
|
|||||||
Command::new("AutoHotkey64.exe")
|
Command::new("AutoHotkey64.exe")
|
||||||
.arg(config_v2.as_os_str())
|
.arg(config_v2.as_os_str())
|
||||||
.output()?;
|
.output()?;
|
||||||
} else {
|
}
|
||||||
INITIAL_CONFIGURATION_LOADED.store(true, Ordering::SeqCst);
|
|
||||||
};
|
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
@@ -443,7 +441,14 @@ fn main() -> Result<()> {
|
|||||||
|
|
||||||
wm.lock().init()?;
|
wm.lock().init()?;
|
||||||
listen_for_commands(wm.clone());
|
listen_for_commands(wm.clone());
|
||||||
std::thread::spawn(|| load_configuration().expect("could not load configuration"));
|
|
||||||
|
if !opts.await_configuration && !INITIAL_CONFIGURATION_LOADED.load(Ordering::SeqCst) {
|
||||||
|
INITIAL_CONFIGURATION_LOADED.store(true, Ordering::SeqCst);
|
||||||
|
};
|
||||||
|
|
||||||
|
std::thread::spawn(|| {
|
||||||
|
load_configuration().expect("could not load configuration");
|
||||||
|
});
|
||||||
|
|
||||||
if opts.await_configuration {
|
if opts.await_configuration {
|
||||||
let backoff = Backoff::new();
|
let backoff = Backoff::new();
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "komorebic"
|
name = "komorebic"
|
||||||
version = "0.1.11"
|
version = "0.1.12"
|
||||||
authors = ["Jade Iqbal <jadeiqbal@fastmail.com>"]
|
authors = ["Jade Iqbal <jadeiqbal@fastmail.com>"]
|
||||||
description = "The command-line interface for Komorebi, a tiling window manager for Windows"
|
description = "The command-line interface for Komorebi, a tiling window manager for Windows"
|
||||||
categories = ["cli", "tiling-window-manager", "windows"]
|
categories = ["cli", "tiling-window-manager", "windows"]
|
||||||
|
|||||||
Reference in New Issue
Block a user