LGUG2Z
3b0830e511
fix(wm): allow cross-monitor focus w/ monocle+max
...
This commit removes the focused window monocle/maximized check when
trying to focus a container in a direction that requires the focus to
cross a monitor boundary.
Unfortunately, trying to remove the same check from the move command
results in undesired behaviour (the wrong window gets moved, the state
gets funny on both the origin and the destination monitor)
2022-12-06 18:29:31 -08:00
dependabot[bot]
f5c9008287
chore(deps): bump serde from 1.0.148 to 1.0.149
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.148 to 1.0.149.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.148...v1.0.149 )
---
updated-dependencies:
- dependency-name: serde
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-12-05 11:26:34 -08:00
dependabot[bot]
0f7d164550
chore(deps): bump clap from 4.0.27 to 4.0.29
...
Bumps [clap](https://github.com/clap-rs/clap ) from 4.0.27 to 4.0.29.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/v4.0.27...v4.0.29 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-12-05 11:26:28 -08:00
dependabot[bot]
22b8029fb4
chore(deps): bump syn from 1.0.104 to 1.0.105
...
Bumps [syn](https://github.com/dtolnay/syn ) from 1.0.104 to 1.0.105.
- [Release notes](https://github.com/dtolnay/syn/releases )
- [Commits](https://github.com/dtolnay/syn/compare/1.0.104...1.0.105 )
---
updated-dependencies:
- dependency-name: syn
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-12-05 11:26:20 -08:00
Anurag Rao
46f2aad674
Fixed remove gaps command
2022-11-29 05:22:48 -08:00
dependabot[bot]
6d9f51e645
chore(deps): bump serde from 1.0.147 to 1.0.148
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.147 to 1.0.148.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.147...v1.0.148 )
---
updated-dependencies:
- dependency-name: serde
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-11-28 09:32:39 -08:00
dependabot[bot]
ec0dea588d
chore(deps): bump sysinfo from 0.26.7 to 0.26.8
...
Bumps [sysinfo](https://github.com/GuillaumeGomez/sysinfo ) from 0.26.7 to 0.26.8.
- [Release notes](https://github.com/GuillaumeGomez/sysinfo/releases )
- [Changelog](https://github.com/GuillaumeGomez/sysinfo/blob/master/CHANGELOG.md )
- [Commits](https://github.com/GuillaumeGomez/sysinfo/commits )
---
updated-dependencies:
- dependency-name: sysinfo
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-11-28 09:32:28 -08:00
dependabot[bot]
24f838e83e
chore(deps): bump clap from 4.0.23 to 4.0.27
...
Bumps [clap](https://github.com/clap-rs/clap ) from 4.0.23 to 4.0.27.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/v4.0.23...v4.0.27 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-11-28 09:32:09 -08:00
dependabot[bot]
13114724b7
chore(deps): bump serde_json from 1.0.87 to 1.0.89
...
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.87 to 1.0.89.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.87...v1.0.89 )
---
updated-dependencies:
- dependency-name: serde_json
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-11-28 09:31:54 -08:00
dependabot[bot]
267c24bc75
chore(deps): bump crossbeam-utils from 0.8.12 to 0.8.14
...
Bumps [crossbeam-utils](https://github.com/crossbeam-rs/crossbeam ) from 0.8.12 to 0.8.14.
- [Release notes](https://github.com/crossbeam-rs/crossbeam/releases )
- [Changelog](https://github.com/crossbeam-rs/crossbeam/blob/master/CHANGELOG.md )
- [Commits](https://github.com/crossbeam-rs/crossbeam/compare/crossbeam-utils-0.8.12...crossbeam-utils-0.8.14 )
---
updated-dependencies:
- dependency-name: crossbeam-utils
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-11-28 09:31:44 -08:00
dependabot[bot]
57b1bc1414
chore(deps): bump miow from 0.4.0 to 0.5.0
...
Bumps [miow](https://github.com/yoshuawuyts/miow ) from 0.4.0 to 0.5.0.
- [Release notes](https://github.com/yoshuawuyts/miow/releases )
- [Changelog](https://github.com/yoshuawuyts/miow/blob/master/CHANGELOG.md )
- [Commits](https://github.com/yoshuawuyts/miow/compare/v0.4.0...v0.5.0 )
---
updated-dependencies:
- dependency-name: miow
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-11-14 08:10:46 -08:00
dependabot[bot]
22dcf15129
chore(deps): bump clap from 4.0.22 to 4.0.23
...
Bumps [clap](https://github.com/clap-rs/clap ) from 4.0.22 to 4.0.23.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/v4.0.22...v4.0.23 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-11-14 08:09:57 -08:00
LGUG2Z
e1634d2a32
docs(readme): add section on youtube livestreams
2022-11-13 20:31:29 -08:00
LGUG2Z
37edbcfebc
refactor(clippy): apply various lint fixes
2022-11-13 15:31:19 -08:00
LGUG2Z
b010215318
feat(wm): add per-monitor work area offsets
...
This commit introduces per-monitor work area offsets which will always
take precedence over global work area offsets.
2022-11-12 18:23:24 -08:00
LGUG2Z
a48715f15a
refactor(core): make cfgen struct members public
2022-11-10 17:16:32 -08:00
LGUG2Z
6308414129
chore(release): v0.1.14
v0.1.14
2022-11-09 13:38:57 -08:00
LGUG2Z
035e77bd25
fix(wm): don't reconcile monitors during drag
...
This commit ensures that monitor reconciliation doesn't get triggered
eagerly when a cross-monitor mouse drag/move of a window is taking
place.
2022-11-09 06:25:21 -08:00
dependabot[bot]
7b98b563eb
chore(deps): bump clap from 4.0.18 to 4.0.20
...
Bumps [clap](https://github.com/clap-rs/clap ) from 4.0.18 to 4.0.20.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/v4.0.18...v4.0.20 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-11-07 09:51:04 -08:00
LGUG2Z
5fda4a39b8
docs(readme): convert badges to html
2022-11-03 09:34:25 -07:00
LGUG2Z
3ad0ae6aca
feat(wm): introduce lazy monitor cache
...
This commit introduces a lazy monitor cache that only gets populated
with a monitor has been disconnected, before the monitor is removed from
the state. If and when the same monitor is reconnected and identified by
its size on the virtual screen, the cached monitor state will be used to
repopulate layout options, avoiding a potentially expensive full
configuration reload.
re #275
2022-10-31 12:38:59 -07:00
LGUG2Z
2575ca2da4
feat(wm): add monitor index preference cmd
...
This commit adds a new komorebic command, monitor-index-preference,
which allows the user to set the index preference within the VecDeque of
monitors based on the "size" of a display.
This works as the size Rect identifies a unique display on the greater
virtual screen and persists across display connections and
disconnections unless the user deliberately changes the positioning of
the display monitor on the virtual screen.
When a new monitor is added to the state, the monitor preferences will
be checked, and if a preference exists, the new monitor will be inserted
at that index, otherwise, it will be pushed to the back of the VecDeque.
resolve #275
2022-10-31 12:38:59 -07:00
LGUG2Z
37f1a163cc
fix(wm): match display name / avoid id volatility
...
This commit replaces all usages of MONITORINFO with MONITORINFOEX in
order to retrieve a name for each connected display device.
This display device name makes for easier deduping during monitor
reconciliation, so that matching display monitor names can simply have
their hmonitor id updated instead of trying to figure out which id
corresponds to which monitor by looking at the windows currently visible
on each.
fix #267
2022-10-31 12:38:59 -07:00
LGUG2Z
91c532d9b1
fix(wm): listen to settingchange + devicechange
...
This commit adds listeners on two more events, WM_SETTINGCHANGE and
WM_DEVICECHANGE, in the hope of more reliably catching monitor
attachments and detachments based on info in an SO answer.
fix #267
2022-10-31 12:38:59 -07:00
LGUG2Z
75d72522a2
fix(wm): listen to displaychange w/ hidden hwnd
...
This commit removes the previous polling strategy on ObjectCreate events
and uses a hidden window to listen to WM_DISPLAYCHANGE.
Unfortunately, as all monitors change HMONITOR values on monitor
attach/detach, even if the monitor remains attached, the only real
choice we have when a monitor which previously held windows is detached
is to read the entire monitor and workspace state again, as we do when
we initialise the window manager for the first time.
Since it's possible that the "wrong" monitor in the state has its
HMONITOR value updated, we also have to load the configuration again.
This commit deprecates WindowManagerEvent::MonitorPoll.
fix #267
2022-10-31 12:38:59 -07:00
dependabot[bot]
438bfc86ff
chore(deps): bump windows from 0.42.0 to 0.43.0
...
Bumps [windows](https://github.com/microsoft/windows-rs ) from 0.42.0 to 0.43.0.
- [Release notes](https://github.com/microsoft/windows-rs/releases )
- [Commits](https://github.com/microsoft/windows-rs/compare/0.42.0...0.43.0 )
---
updated-dependencies:
- dependency-name: windows
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-10-31 09:23:01 -07:00
dependabot[bot]
ca86418e3c
chore(deps): bump sysinfo from 0.26.4 to 0.26.7
...
Bumps [sysinfo](https://github.com/GuillaumeGomez/sysinfo ) from 0.26.4 to 0.26.7.
- [Release notes](https://github.com/GuillaumeGomez/sysinfo/releases )
- [Changelog](https://github.com/GuillaumeGomez/sysinfo/blob/master/CHANGELOG.md )
- [Commits](https://github.com/GuillaumeGomez/sysinfo/commits )
---
updated-dependencies:
- dependency-name: sysinfo
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-10-31 09:01:45 -07:00
dependabot[bot]
d8c76b97a9
chore(deps): bump serde from 1.0.145 to 1.0.147
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.145 to 1.0.147.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.145...v1.0.147 )
---
updated-dependencies:
- dependency-name: serde
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-10-31 09:01:19 -07:00
dependabot[bot]
a4be1b95e0
chore(deps): bump net2 from 0.2.37 to 0.2.38
...
Bumps [net2](https://github.com/deprecrated/net2-rs ) from 0.2.37 to 0.2.38.
- [Release notes](https://github.com/deprecrated/net2-rs/releases )
- [Commits](https://github.com/deprecrated/net2-rs/compare/0.2.37...0.2.38 )
---
updated-dependencies:
- dependency-name: net2
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-10-24 08:38:58 -07:00
dependabot[bot]
6e666bc4d8
chore(deps): bump serde_json from 1.0.86 to 1.0.87
...
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.86 to 1.0.87.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.86...v1.0.87 )
---
updated-dependencies:
- dependency-name: serde_json
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-10-24 08:38:48 -07:00
dependabot[bot]
857b3c9ccf
chore(deps): bump syn from 1.0.102 to 1.0.103
...
Bumps [syn](https://github.com/dtolnay/syn ) from 1.0.102 to 1.0.103.
- [Release notes](https://github.com/dtolnay/syn/releases )
- [Commits](https://github.com/dtolnay/syn/compare/1.0.102...1.0.103 )
---
updated-dependencies:
- dependency-name: syn
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-10-24 08:38:36 -07:00
dependabot[bot]
9b916c0c21
chore(deps): bump clap from 4.0.15 to 4.0.18
...
Bumps [clap](https://github.com/clap-rs/clap ) from 4.0.15 to 4.0.18.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/v4.0.15...v4.0.18 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-10-24 08:38:22 -07:00
dependabot[bot]
b642eddb96
chore(deps): bump serde_yaml from 0.9.13 to 0.9.14
...
Bumps [serde_yaml](https://github.com/dtolnay/serde-yaml ) from 0.9.13 to 0.9.14.
- [Release notes](https://github.com/dtolnay/serde-yaml/releases )
- [Commits](https://github.com/dtolnay/serde-yaml/compare/0.9.13...0.9.14 )
---
updated-dependencies:
- dependency-name: serde_yaml
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-10-24 08:37:55 -07:00
LGUG2Z
1229c65580
fix(ahk): prefer runwait for ahk lib wrappers
...
This commit ensures that the generated AHK library for komorebic uses
RunWait instead of Run, as the latter is asynchronous and can result in
an unexpected order of calls when used in a komorebi.ahk configuration
file.
re #269
2022-10-21 15:24:31 -07:00
LGUG2Z
b25cc1c8bf
fix(wm): reset foreground access when calls fail
2022-10-21 14:10:12 -07:00
LGUG2Z
e02ddd47cc
fix(wm): eagerly set new active border position
...
This commit adds SocketMessage::FocusWindow as a target to update the
border position on at the end of the command handler. There are some
occasions where the EVENT_SYSTEM_FOREGROUND notification isn't being
sent (on newer versions of Win11, I think), so we can't count on the
border being updated when that event is received by the event handler.
2022-10-21 12:13:06 -07:00
LGUG2Z
e20b4aabc3
fix(clap): address deprecations
2022-10-20 14:21:27 -07:00
dependabot[bot]
acaee5595d
chore(deps): bump clap from 3.2.22 to 4.0.15
...
Bumps [clap](https://github.com/clap-rs/clap ) from 3.2.22 to 4.0.15.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/v3.2.22...v4.0.15 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-10-20 14:21:27 -07:00
dependabot[bot]
083a142597
chore(deps): bump proc-macro2 from 1.0.46 to 1.0.47
...
Bumps [proc-macro2](https://github.com/dtolnay/proc-macro2 ) from 1.0.46 to 1.0.47.
- [Release notes](https://github.com/dtolnay/proc-macro2/releases )
- [Commits](https://github.com/dtolnay/proc-macro2/compare/1.0.46...1.0.47 )
---
updated-dependencies:
- dependency-name: proc-macro2
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-10-17 09:17:02 -07:00
Max Bane
1633a5ebc2
fix(config): call ActiveWindowBorderColour correctly
...
The sample config only provided three of the four required arguments in
the example call to ActiveWindowBorderColour. Uncommenting the line as
it was would raise an error from AuthoHotKey.
2022-10-14 11:40:17 -07:00
Yusuf007R
352c010021
feat(wm): manage return bool of PostMessage + update ahk library
...
this commit makes a small refactor to the way PostMessageW is used so now be able to handle the
returned bool, as well as adding a custom error message to WindowsApi::close_window and updating the
ahk generated library
#259
2022-10-13 01:08:35 -07:00
Yusuf007R
33965f92ad
feat(wm): add close and minimize cmd
...
this commit adds the ability to close and minimize the current focused window via SocketMessages and
komorebic commands
resolve #189
2022-10-13 01:08:35 -07:00
Yusuf007R
635272fc10
feat(wm): add max number of attempts to set foreground
...
this commits adds a max number of attempts (5) to the call of set_foreground_window inside
Window:Focus
2022-10-13 01:06:58 -07:00
dependabot[bot]
5354e9c7a4
chore(deps): bump tracing-subscriber from 0.3.15 to 0.3.16
...
Bumps [tracing-subscriber](https://github.com/tokio-rs/tracing ) from 0.3.15 to 0.3.16.
- [Release notes](https://github.com/tokio-rs/tracing/releases )
- [Commits](https://github.com/tokio-rs/tracing/compare/tracing-subscriber-0.3.15...tracing-subscriber-0.3.16 )
---
updated-dependencies:
- dependency-name: tracing-subscriber
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-10-10 08:27:26 -07:00
dependabot[bot]
e35164f106
chore(deps): bump tracing from 0.1.36 to 0.1.37
...
Bumps [tracing](https://github.com/tokio-rs/tracing ) from 0.1.36 to 0.1.37.
- [Release notes](https://github.com/tokio-rs/tracing/releases )
- [Commits](https://github.com/tokio-rs/tracing/compare/tracing-0.1.36...tracing-0.1.37 )
---
updated-dependencies:
- dependency-name: tracing
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-10-10 08:27:16 -07:00
dependabot[bot]
a637eefd82
chore(deps): bump syn from 1.0.101 to 1.0.102
...
Bumps [syn](https://github.com/dtolnay/syn ) from 1.0.101 to 1.0.102.
- [Release notes](https://github.com/dtolnay/syn/releases )
- [Commits](https://github.com/dtolnay/syn/compare/1.0.101...1.0.102 )
---
updated-dependencies:
- dependency-name: syn
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-10-10 08:27:01 -07:00
dependabot[bot]
db361f36db
chore(deps): bump serde_json from 1.0.85 to 1.0.86
...
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.85 to 1.0.86.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.85...v1.0.86 )
---
updated-dependencies:
- dependency-name: serde_json
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-10-10 08:26:43 -07:00
LGUG2Z
577fa0a97f
fix(wm): retry foreground calls on focus change
...
For the past few weeks since upgrading the windows-rs crate I've seen
sporadic failures when calling SetForegroundWindow which require a full
restart to get the wm working as expected again. Adding in a retry loop
here seems to help when the issue comes up for me on Windows 11.
2022-10-07 06:57:37 -07:00
dependabot[bot]
f8ada73739
chore(deps): bump proc-macro2 from 1.0.44 to 1.0.46
...
Bumps [proc-macro2](https://github.com/dtolnay/proc-macro2 ) from 1.0.44 to 1.0.46.
- [Release notes](https://github.com/dtolnay/proc-macro2/releases )
- [Commits](https://github.com/dtolnay/proc-macro2/compare/1.0.44...1.0.46 )
---
updated-dependencies:
- dependency-name: proc-macro2
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-10-03 07:58:29 -07:00
dependabot[bot]
ffcc2f71d1
chore(deps): bump crossbeam-utils from 0.8.11 to 0.8.12
...
Bumps [crossbeam-utils](https://github.com/crossbeam-rs/crossbeam ) from 0.8.11 to 0.8.12.
- [Release notes](https://github.com/crossbeam-rs/crossbeam/releases )
- [Changelog](https://github.com/crossbeam-rs/crossbeam/blob/master/CHANGELOG.md )
- [Commits](https://github.com/crossbeam-rs/crossbeam/compare/crossbeam-utils-0.8.11...crossbeam-utils-0.8.12 )
---
updated-dependencies:
- dependency-name: crossbeam-utils
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-10-03 07:58:10 -07:00