diff --git a/Sources/AppBundle/command/other/format.swift b/Sources/AppBundle/command/other/format.swift index 791e744c..644c18d7 100644 --- a/Sources/AppBundle/command/other/format.swift +++ b/Sources/AppBundle/command/other/format.swift @@ -95,7 +95,7 @@ private extension String { case (.window(_), .window): break case (.workspace(let ws), .monitor): - return ws.nodeMonitor.flatMap(AeroObj.monitor).map(expandFormatVar) ?? .success("NULL-MONITOR") + return expandFormatVar(obj: AeroObj.monitor(ws.workspaceMonitor)) case (.workspace, _): break case (.app(_), _): break diff --git a/docs/guide.adoc b/docs/guide.adoc index 78e9d8b0..a99968bf 100644 --- a/docs/guide.adoc +++ b/docs/guide.adoc @@ -488,9 +488,9 @@ You can track focus changes using the following callbacks: `on-focus-changed` an A common use case for the callbacks is to implement "mouse follows focus" behavior. All you need is to combine the callback of your choice with xref:commands.adoc#move-mouse[move-mouse command]: [source,toml] ---- -on-focused-monitor-changed = ['move-mouse monitor-lazy-center'] +on-focused-monitor-changed = ['move-mouse monitor-lazy-center'] # Mouse lazily follows focused monitor (default in i3) # or -on-focus-changed = ['move-mouse window-lazy-center'] +on-focus-changed = ['move-mouse window-lazy-center'] # Mouse lazily follows any focus (window or workspace) ---- You shouldn't rely on the order callback are called, since it's an implementation detail and can change from version to version. diff --git a/docs/util/app-inter-variables.adoc b/docs/util/app-inter-variables.adoc deleted file mode 100644 index e69de29b..00000000