mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-03-22 01:19:21 +01:00
This commit adds some rough heuristics to workspace_reconciliator which should help with having the correct window focused after reconciliation in the majority of, but probably not all, cases. EnumWindows generally returns HWNDs according to z order, and a window selected by alt-tab will almost always be put on the top of the z order. Before sending a workspace_reconciliator::Notification, we store this HWND along with an Instant and an AtomicBool telling us that we have a candidate to focus after the workspace switch.
55 lines
1.5 KiB
Makefile
55 lines
1.5 KiB
Makefile
set windows-shell := ["pwsh.exe", "-NoLogo", "-Command"]
|
|
export RUST_BACKTRACE := "full"
|
|
|
|
clean:
|
|
cargo clean
|
|
|
|
fmt:
|
|
cargo +nightly fmt
|
|
cargo +stable clippy
|
|
prettier --write README.md
|
|
prettier --write .goreleaser.yml
|
|
prettier --write .github/dependabot.yml
|
|
prettier --write .github/FUNDING.yml
|
|
prettier --write .github/workflows/windows.yaml
|
|
|
|
install-target target:
|
|
cargo +stable install --path {{ target }} --locked
|
|
|
|
prepare:
|
|
komorebic ahk-asc '~/.config/komorebi/applications.yaml'
|
|
komorebic pwsh-asc '~/.config/komorebi/applications.yaml'
|
|
cat '~/.config/komorebi/komorebi.generated.ps1' >komorebi.generated.ps1
|
|
cat '~/.config/komorebi/komorebi.generated.ahk' >komorebi.generated.ahk
|
|
|
|
install:
|
|
just install-target komorebic
|
|
just install-target komorebic-no-console
|
|
just install-target komorebi
|
|
|
|
run:
|
|
cargo +stable run --bin komorebi --locked
|
|
|
|
warn $RUST_LOG="warn":
|
|
just run
|
|
|
|
info $RUST_LOG="info":
|
|
just run
|
|
|
|
debug $RUST_LOG="debug":
|
|
just run
|
|
|
|
trace $RUST_LOG="trace":
|
|
just run
|
|
|
|
deadlock $RUST_LOG="trace":
|
|
cargo +stable run --bin komorebi --locked --features deadlock_detection
|
|
|
|
docgen:
|
|
komorebic docgen
|
|
Get-ChildItem -Path "docs/cli" -Recurse -File | ForEach-Object { (Get-Content $_.FullName) -replace 'Usage: ', 'Usage: komorebic.exe ' | Set-Content $_.FullName }
|
|
|
|
schemagen:
|
|
komorebic static-config-schema > schema.json
|
|
generate-schema-doc .\schema.json --config template_name=js_offline --config minify=false .\static-config-docs\
|