[PR #1392] [MERGED] feat(cli): query focused-workspace-layout #1379

Closed
opened 2026-01-05 14:55:05 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/LGUG2Z/komorebi/pull/1392
Author: @zepocas
Created: 4/2/2025
Status: Merged
Merged: 4/3/2025
Merged by: @LGUG2Z

Base: masterHead: feature/query-focused-workspace-layout


📝 Commits (2)

  • ac85542 feat(cli): add focused-workspace-layout query
  • 394d1ef docs(cli): added focused-workspace-layout as possible value for komorebic query

📊 Changes

4 files changed (+25 additions, -1 deletions)

View changed files

📝 docs/cli/query.md (+1 -1)
📝 komorebi/src/core/mod.rs (+1 -0)
📝 komorebi/src/monitor.rs (+10 -0)
📝 komorebi/src/process_command.rs (+13 -0)

📄 Description

This PR adds the focused-workspace-layout value for komorebic query:

  • for DefaultLayout: returns enum name.to_string,
  • for CustomLayout: returns "Custom"
  • for floating workspaces: returns "None"

Initially I hoped this could return values in snake case fashion so it would be chainable with komorebic change-layout, but I do think that these should not be tied by default, whoever wants to tinker with this (me 😄) should handle it some other way.

This is my first Rust ever so I hope everything is according to the correct practices.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/LGUG2Z/komorebi/pull/1392 **Author:** [@zepocas](https://github.com/zepocas) **Created:** 4/2/2025 **Status:** ✅ Merged **Merged:** 4/3/2025 **Merged by:** [@LGUG2Z](https://github.com/LGUG2Z) **Base:** `master` ← **Head:** `feature/query-focused-workspace-layout` --- ### 📝 Commits (2) - [`ac85542`](https://github.com/LGUG2Z/komorebi/commit/ac8554248b21f831d74ba8937907654ef878fc4b) feat(cli): add focused-workspace-layout query - [`394d1ef`](https://github.com/LGUG2Z/komorebi/commit/394d1efa5f7d2643b78f05e56686f045790f1e76) docs(cli): added focused-workspace-layout as possible value for komorebic query ### 📊 Changes **4 files changed** (+25 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `docs/cli/query.md` (+1 -1) 📝 `komorebi/src/core/mod.rs` (+1 -0) 📝 `komorebi/src/monitor.rs` (+10 -0) 📝 `komorebi/src/process_command.rs` (+13 -0) </details> ### 📄 Description <!-- Please follow the Conventional Commits specification. If you need to update your PR with changes from `master`, please run `git rebase master`. By opening this PR, you confirm that you have read and understood this project's `CONTRIBUTING.md`. --> ### This PR adds the `focused-workspace-layout` value for komorebic query: - for DefaultLayout: returns enum name.to_string, - for CustomLayout: returns "Custom" - for floating workspaces: returns "None" Initially I hoped this could return values in snake case fashion so it would be chainable with `komorebic change-layout`, but I do think that these should not be tied by default, whoever wants to tinker with this (me 😄) should handle it some other way. This is my first Rust ever so I hope everything is according to the correct practices. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2026-01-05 14:55:05 +01:00
adam closed this issue 2026-01-05 14:55:05 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/komorebi#1379