feat(wm): allow direct querying of focused objects

This commit adds a new query command to komorebic, which allows for the
current focused monitor, workspace, container and window indices to be
queried directly without having to use jq run lookups on the entire
output of the state command.

resolve #24
This commit is contained in:
LGUG2Z
2021-09-02 12:58:11 -07:00
parent a9a0ecd49d
commit 2d19109fb6
5 changed files with 80 additions and 0 deletions

View File

@@ -178,6 +178,7 @@ each command.
start Start komorebi.exe as a background process
stop Stop the komorebi.exe process and restore all hidden windows
state Show a JSON representation of the current window manager state
query Query the current window manager state
log Tail komorebi.exe's process logs (cancel with Ctrl-C)
focus Change focus to the window in the specified direction
move Move the focused window in the specified direction
@@ -270,6 +271,7 @@ used [is available here](komorebi.sample.with.lib.ahk).
- [x] Watch configuration for changes
- [x] Helper library for AutoHotKey
- [x] View window manager state
- [x] Query window manager state
## Development