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

@@ -12,6 +12,10 @@ State() {
Run, komorebic.exe state, , Hide
}
Query(state_query) {
Run, komorebic.exe query %state_query%, , Hide
}
Log() {
Run, komorebic.exe log, , Hide
}