Compare commits

...

1 Commits

Author SHA1 Message Date
LGUG2Z
52b7b8d03d fix(wm): ensure await-configuration is opt-in 2022-08-11 20:02:45 -07:00
6 changed files with 19 additions and 13 deletions

6
Cargo.lock generated
View File

@@ -464,7 +464,7 @@ dependencies = [
[[package]]
name = "komorebi"
version = "0.1.11"
version = "0.1.12"
dependencies = [
"bitflags",
"clap",
@@ -499,7 +499,7 @@ dependencies = [
[[package]]
name = "komorebi-core"
version = "0.1.11"
version = "0.1.12"
dependencies = [
"clap",
"color-eyre",
@@ -513,7 +513,7 @@ dependencies = [
[[package]]
name = "komorebic"
version = "0.1.11"
version = "0.1.12"
dependencies = [
"clap",
"color-eyre",

View File

@@ -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
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
at the end of your `komorebi.ahk` config. The layout will not be updated and `komorebi` will not respond to `komorebic`
commands until this command has been received.
If you start `komorebi` with the `--await-configuration` flag, you _must_ send the `komorebic complete-configuration`
command at the end of the configuration section of your `komorebi.ahk` config (before you start defining the key
bindings). The layout will not be updated and `komorebi` will not respond to `komorebic` commands until this command has
been received.
#### Floating Windows

View File

@@ -1,6 +1,6 @@
[package]
name = "komorebi-core"
version = "0.1.11"
version = "0.1.12"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

View File

@@ -1,6 +1,6 @@
[package]
name = "komorebi"
version = "0.1.11"
version = "0.1.12"
authors = ["Jade Iqbal <jadeiqbal@fastmail.com>"]
description = "A tiling window manager for Windows"
categories = ["tiling-window-manager", "windows"]

View File

@@ -256,9 +256,7 @@ pub fn load_configuration() -> Result<()> {
Command::new("AutoHotkey64.exe")
.arg(config_v2.as_os_str())
.output()?;
} else {
INITIAL_CONFIGURATION_LOADED.store(true, Ordering::SeqCst);
};
}
Ok(())
}
@@ -443,7 +441,14 @@ fn main() -> Result<()> {
wm.lock().init()?;
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 {
let backoff = Backoff::new();

View File

@@ -1,6 +1,6 @@
[package]
name = "komorebic"
version = "0.1.11"
version = "0.1.12"
authors = ["Jade Iqbal <jadeiqbal@fastmail.com>"]
description = "The command-line interface for Komorebi, a tiling window manager for Windows"
categories = ["cli", "tiling-window-manager", "windows"]