Commit Graph
138 Commits
Author SHA1 Message Date
LGUG2Z 202238aecd docs(mkdocs): add homebrew installation instructions 2025-10-27 12:21:50 -07:00
LGUG2Z 2ecc2819ec feat(wm): order borders relative to tracking windows 2025-10-27 09:22:46 -07:00
LGUG2Z fc9659d116 build(github): only publish gist from master branch 2025-10-27 09:06:24 -07:00
LGUG2Z e16a885a5e feat(config): add border radius option
This commit adds a border_radius configuratino option which defaults to
10, which matches the uniform radius on Sequoia. Tahoe is a mess, but
people can at least specify their own preferred border radius value now.
Eventually we should look up the radius of each individual window when
creating the borders like JankyBorders does (I think?)
2025-10-27 09:06:20 -07:00
LGUG2Z b2dd82ba4d ci(github): publish schema.json to a public gist 2025-10-27 08:20:00 -07:00
LGUG2Z b892504f9e chore(deps): cargo update + bump actions/upload-artifact 2025-10-27 08:15:58 -07:00
LGUG2Z 4d25d4efb0 fix(wm): add hack to manage activity monitor on start
I was running into this a lot when debugging the WindowServer memory
ballooning issue fixed in the last commit - the title returned by
CGWindowListCopyWindowInfo and the title returned by kAXWindowsAttribute
for Activity Monitor differs, so when restarting komorebi, if Activity
Monitor is open, it wouldn't get managed.

Added a little hack as a workaround for now.
2025-10-26 19:51:29 -07:00
LGUG2Z 2e4660dc12 fix(wm): ensure border resource cleanups
This commit wraps the various lifecycle methods for border creation,
update and destruction in autoreleasepools to ensure that WindowServer
memory doesn't balloon.
2025-10-26 19:37:40 -07:00
LGUG2Z f93cf44aba ci(github): attach homebrew formula to nightly release 2025-10-26 13:41:29 -07:00
LGUG2Z d62f824d2b ci(github): publish nightly releases 2025-10-25 13:08:08 -07:00
LGUG2Z a2831d2b7f ci(github): run checks and build with nix 2025-10-20 16:09:19 -07:00
LGUG2Z 0b88af0fee ci(github): switch to self-hosted runners 2025-10-20 09:58:01 -07:00
LGUG2Z 1abdf0a032 chore(deps): bump block2, netdev and which 2025-10-19 11:44:41 -07:00
LGUG2Z 8a9a9fe661 chore(deps): flake.lock: Update
Flake lock file updates:

• Updated input 'crane':
    'github:ipetkov/crane/1e7905b1eb1b551aade75169940557b6c51ed920' (2025-10-05)
  → 'github:ipetkov/crane/1979a2524cb8c801520bd94c38bb3d5692419d93' (2025-10-08)
• Updated input 'nixpkgs':
    'github:nixos/nixpkgs/7df7ff7d8e00218376575f0acdcc5d66741351ee' (2025-10-02)
  → 'github:nixos/nixpkgs/544961dfcce86422ba200ed9a0b00dd4b1486ec5' (2025-10-15)
• Updated input 'rust-overlay':
    'github:oxalica/rust-overlay/edea9f33f9a03f615ad3609a40fbcefe0ec835ca' (2025-10-06)
  → 'github:oxalica/rust-overlay/a9121dc4ccd63e0309426b91bd7a494189516274' (2025-10-19)
2025-10-19 11:32:15 -07:00
LGUG2Z 3ab47e8a9c chore(deps): cargo update 2025-10-19 11:32:15 -07:00
LGUG2Z a9029fee41 build(nix): separate targets and add flake overlays 2025-10-19 11:32:15 -07:00
LGUG2Z 573469d1c3 ci(github): add build workflow 2025-10-19 11:32:11 -07:00
LGUG2Z f848c1d8f0 feat(wm): add opt to constrain grid layout by rows
This commit adds a new LayoutOptions option, GridLayoutOptions,
currently with a single configurable "rows" opt which can be use to
constrain the grid by number of rows.
2025-10-17 16:29:58 -07:00
LGUG2Z c255772897 fix(wm): add generic window validity check to reaper
Calibre was being very weird and failing layout updates when a menu
button was clicked (#justcalibrethings) so I've added a final window
validity escape hatch check to the reaper for now.
2025-10-16 10:09:32 -07:00
LGUG2Z 21321fd365 fix(bar): match default interface by name
This commit fixes a difference between netdev on Windows and macOS,
where matching needs to be done against the Friendly Name of an
interface on Windows, but against the Name on macOS.
2025-10-14 12:52:26 -07:00
LGUG2Z 791208a130 feat(wm): add opt to keep focused column centered on scrolling layout
This commit adds a new option under layout_options.scrolling -
"center_focused_column", which defaults to false. When

set to true, and when the number of scrolling columns is an odd number
>=3, komorebi will, if there are enough windows being managed on the
workspace, and if the focused window is not too close to either the
beginning or the end of the workspace ring, keep the focused window in a
centered position in the layout
2025-10-11 14:03:40 -07:00
LGUG2Z 6869805b82 feat(cli): add completions cmd
Add a new "completions" command which takes a supported shell as an
argument. This command outputs a completions file to stdout, which can
be redirected to a file.
2025-10-11 13:16:22 -07:00
LGUG2Z 5c663d2cea test(wm): migrate window manager test cases 2025-10-11 11:02:26 -07:00
LGUG2Z 7b65a24ea4 test(wm): migrate process command test cases 2025-10-11 10:52:53 -07:00
LGUG2Z ca9a624018 test(wm): migrate monitor test cases 2025-10-11 10:46:07 -07:00
LGUG2Z d08e0b0cd9 test(wm): migrate workspace test cases 2025-10-11 10:46:07 -07:00
LGUG2Z c819907a4d test(wm): migrate container test cases 2025-10-11 10:46:04 -07:00
LGUG2Z f729cc2b81 docs(mkdocs): add notes about system configuration suggestions 2025-10-10 14:25:14 -07:00
LGUG2Z aa718bf6e9 fix(wm): delegate all cmd+tab focus changes to ws reconciliator
Mainly a cleanup PR - there were some subtle bugs introduced trying to
exclude the ManualNotification for cmd+tab focus changes, but since this
is all being delegated to the workspace reconciliator now, we can remove
those confusing matches! guards and that variant all together.
2025-10-10 09:56:09 -07:00
LGUG2Z 141eedfd60 fix(wm): preserve state on screen lock and unlock
Screen locking and unlocking is a bit weird in macOS because it's
implemented as a separate app which is activated and deactivated, so
unique events for screen lock and unlock are never emitted by the
system.

This commit encapsulates the logic to detect the relevant events on the
loginwindow into the creation of ScreenLock and ScreenUnlock
WindowManagerEvent variants.
2025-10-09 19:19:51 -07:00
LGUG2Z acee420bd3 feat(wm): implement ws reconciliator with source debouncing
Hello infinite workspace switching loop, my old friend.

Reimplemented the old workspace reconciliator from komorebi for Windows
with additional source debouncing and tested by furiously mashing alt-1
and alt+2 for 20s. No loop!
2025-10-09 16:54:14 -07:00
LGUG2Z 7bbad6539d fix(wm): ensure messages window close by click is handled
Stupid Apple stuff. Something was up with Messages leaving a ghost tile
when being closed by the red dot vs. cmd+w - this change fixes that, but
will probably break something else.
2025-10-07 18:41:46 -07:00
LGUG2Z ed2185a667 feat(config): add window hiding position behaviour
This commit adds a new monitor configuration option
"window_hiding_position", which takes an enum with the variants
BottomLeft and BottomRight.

Until now the behaviour had been hard-coded to hide windows at the
bottom left of every monitor.

If no value is given on a monitor configuration object, this option will
default to BottomLeft.
2025-10-07 16:46:40 -07:00
LGUG2Z 05e4222a23 refactor(rust): remove lots of unsafe blocks 2025-10-06 16:50:10 -07:00
LGUG2Z 0789ed0136 chore(deps): flake.lock: Update
Flake lock file updates:

• Updated input 'crane':
    'github:ipetkov/crane/a669fe77a8b0cd6f11419d89ea45a16691ca5121' (2025-09-18)
  → 'github:ipetkov/crane/1e7905b1eb1b551aade75169940557b6c51ed920' (2025-10-05)
• Updated input 'nixpkgs':
    'github:nixos/nixpkgs/8eaee110344796db060382e15d3af0a9fc396e0e' (2025-09-19)
  → 'github:nixos/nixpkgs/7df7ff7d8e00218376575f0acdcc5d66741351ee' (2025-10-02)
• Updated input 'rust-overlay':
    'github:oxalica/rust-overlay/d2bac276ac7e669a1f09c48614538a37e3eb6d0f' (2025-09-22)
  → 'github:oxalica/rust-overlay/edea9f33f9a03f615ad3609a40fbcefe0ec835ca' (2025-10-06)
2025-10-06 16:40:19 -07:00
LGUG2Z 245770d45a chore(deps): cargo update 2025-10-06 16:37:14 -07:00
LGUG2Z 163ba7051d docs(readme): update with relevant information 2025-10-06 15:58:59 -07:00
LGUG2Z a8a2f923cf style(mkdocs): add information about komorebi-bar 2025-10-06 15:41:12 -07:00
LGUG2Z b02711e86d fix(wm): improve video fullscreen handling
This commit improves browser video fullscreen handling with borders. We
are now emitting an event for
AppKitWorkspaceNotification::NSWorkspaceActiveSpaceDidChangeNotification,
even though it doesn't have a pid, by passing a dummy 0 pid.

This is really stupid and I shouldn't do this.

This lets us act with more granularity in process_event to destroy or
redraw borders when entering or exiting browser video fullscreen.

In addition, the reaper has been updated to not reap fullscreen windows
so that they can be reintegrated into the layout without issue when
fullscreen is exited.
2025-10-06 15:00:40 -07:00
LGUG2Z 82b6247371 fix(bar): don't show komorebi-bar icon in the dock 2025-10-01 14:16:36 -07:00
LGUG2Z f5a979d4b4 fix(bar): calculate margin correctly 2025-10-01 13:55:42 -07:00
LGUG2Z 75373c2174 fix(bar): load app icons for focused window widget
This commit adds the icon path to WindowDetails and then uses that path
to look up and load the icon in komorebi-bar.
2025-10-01 11:19:43 -07:00
LGUG2Z c9eeaf3999 chore(deps): bump egui and eframe to 0.32 2025-09-30 18:50:22 -07:00
LGUG2Z c3a756cbde fix(bar): don't look up window titles at runtime
Doing runtime lookups via methods on Window in komorebi-bar won't work
because the AccessibilityObserver is not serialized and sent as part of
the notifications.

Instead, the notifications now take a snapshot of WindowDetails and
embed them so they can be read directly in komorebi-bar.
2025-09-30 15:54:15 -07:00
LGUG2Z 9777c55a1f feat(bar): migrate the komorebi-bar
This commit migrates the komorebi-bar from komorebi for Windows. Mostly
lifting and shifting code, exposing stuff we need in komorebi-client
etc.

A few widgets will need to be reworked completely so they have been
removed for now.

Mouse and command stuff also needs updating a little so that has also
been removed for now.
2025-09-30 15:14:30 -07:00
LGUG2Z 230acf3547 fix(client): wrap axobservers in an option to avoid deser crashes
This commit fixes a crash for subscribers who try to deserialize state
from notifications. Even though skip_deserializing is used on the
AccessibilityObserver, we still need a sane Default, so we wrap the
inner AXObserver in an Option and default to None.
2025-09-30 13:03:40 -07:00
LGUG2Z ded36d39ee docs(schema): update jsonschema files 2025-09-30 11:07:00 -07:00
LGUG2Z 801be91508 feat(wm): implement monitor/ws wallpapers
This commit implements per-monitor and per-workspace wallpapers and
integrates with the theme manager to optionally generate themes based on
the palette of the wallpaper image.

Mostly a lift-and-shift from komorebi for Windows.
2025-09-30 11:02:38 -07:00
LGUG2Z f4d9734655 feat(wm): implement theme manager
This commit implements the theme manager from komorebi for Windows.
Mostly a lift and shift. Might look into the wallpaper stuff next.
2025-09-30 09:59:26 -07:00
LGUG2Z 8950a32bbb feat(cli): implement border-related cmds
This commit implements the various border-related SocketMessage variants
and the komorebic commands to send them.
2025-09-30 09:42:04 -07:00