Get current workspace / monitor #24

Closed
opened 2026-01-05 14:47:45 +01:00 by adam · 3 comments
Owner

Originally created by @pigmej on GitHub (Aug 31, 2021).

Originally assigned to: @LGUG2Z on GitHub.

Hey,

I think for scripting purposes possibility to get a current workspace/monitor would be really handy.

Then "move to the next" etc would be possible to implement. Some status reading would be also then easier possible (would not need to parse json).

Originally created by @pigmej on GitHub (Aug 31, 2021). Originally assigned to: @LGUG2Z on GitHub. Hey, I think for scripting purposes possibility to get a current workspace/monitor would be really handy. Then "move to the next" etc would be possible to implement. Some status reading would be also then easier possible (would not need to parse json).
adam added the enhancement label 2026-01-05 14:47:45 +01:00
adam closed this issue 2026-01-05 14:47:45 +01:00
Author
Owner

@LGUG2Z commented on GitHub (Sep 1, 2021):

I believe these and other common 'GetCurrentX' commands could be implemented nicely under a query subcommand. I'll take a look at this over the next week or so. 👌

@LGUG2Z commented on GitHub (Sep 1, 2021): I believe these and other common 'GetCurrentX' commands could be implemented nicely under a `query` subcommand. I'll take a look at this over the next week or so. 👌
Author
Owner

@LGUG2Z commented on GitHub (Sep 2, 2021):

@pigmej you should now be able to do this with the query command:

Query the current window manager state

USAGE:
    komorebic.exe query <STATE_QUERY>

ARGS:
    <STATE_QUERY>    [possible values: focused-monitor-index, focused-workspace-index, focused-
                     container-index, focused-window-index]

FLAGS:
    -h, --help       Print help information
    -V, --version    Print version information
@LGUG2Z commented on GitHub (Sep 2, 2021): @pigmej you should now be able to do this with the `query` command: ``` Query the current window manager state USAGE: komorebic.exe query <STATE_QUERY> ARGS: <STATE_QUERY> [possible values: focused-monitor-index, focused-workspace-index, focused- container-index, focused-window-index] FLAGS: -h, --help Print help information -V, --version Print version information ```
Author
Owner

@pigmej commented on GitHub (Sep 6, 2021):

@LGUG2Z works okay :) I need somehow report all others issues that I'm facing from time to time that prohibit me to switch fully :(

@pigmej commented on GitHub (Sep 6, 2021): @LGUG2Z works okay :) I need somehow report all others issues that I'm facing from time to time that prohibit me to switch fully :(
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/komorebi#24