mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-01-11 14:40:25 +01:00
[PR #459] [MERGED] feat(swap-workspaces-monitor): command to swap focused monitor workspaces with another monitor #933
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/LGUG2Z/komorebi/pull/459
Author: @Yusuf007R
Created: 6/9/2023
Status: ✅ Merged
Merged: 6/24/2023
Merged by: @LGUG2Z
Base:
master← Head:feature/swap-monitors-workspaces📝 Commits (2)
0965654feat(swap-workspaces-monitor): command to swap focused monitor workspaces with another monitorfd5df8crefactor(wm): renaming SwapWorkspacesToMonitor to SwapWorkspacesWithMonitor📊 Changes
5 files changed (+101 additions, -0 deletions)
View changed files
📝
komorebi-core/src/lib.rs(+1 -0)📝
komorebi/src/monitor.rs(+4 -0)📝
komorebi/src/process_command.rs(+3 -0)📝
komorebi/src/window_manager.rs(+86 -0)📝
komorebic/src/main.rs(+7 -0)📄 Description
Basically this commit adds a command that allows you to swap two monitors, well it actually swaps the workspaces between the monitors.
Sorry if the main logic is a bit weird, I'm basically new to rust, like I did a bit of rust last year on this project, then I got really busy and stopped doing any rust, so I'm still having a lot of trouble with the borrow checker
if you have any suggestions of how to make it better/cleaner please let me know
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.