Hierarchy of workspace_rules? #640
-
Is it possible to have an hierarchy of what workspace an application should snap to? My issue is that I am using different setups for office and home. At home I have one monitor setup, while at the office I have a multi monitor setup. I'd like to be able to configure komorebi so that if a second monitor is connected, certain applications should be snapped there instead of my single monitor rule-set. If i am understanding Example setup: "monitors": [
{
"workspaces": [
{
"name": "browser",
"layout": "BSP",
"initial_workspace_rules": [
{
"kind": "Exe",
"id": "firefox.exe"
}
]
},
{
"name": "chat",
"layout": "BSP",
"initial_workspace_rules": [
{
"kind": "Exe",
"id": "Slack.exe"
}
]
},
{
"name": "music",
"layout": "BSP",
"initial_workspace_rules": [
{
"kind": "Exe",
"id": "Spotify.exe"
}
]
}
]
},
{
// IF A SECOND MONITOR IS CONNECTED, PRIORITIZE THESE WORKSPACE RULES
"workspaces": [
{
"name": "browser",
"layout": "BSP",
"initial_workspace_rules": [
{
"kind": "Exe",
"id": "firefox.exe"
}
]
},
{
"name": "\ueaef \ued03",
"layout": "BSP",
"initial_workspace_rules": [
{
"kind": "Exe",
"id": "Spotify.exe"
},
{
"kind": "Exe",
"id": "Slack.exe"
}
]
}
]
}
] |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Very interesting idea, I'd like something like this too. I think a nice way to implement this would be to add an option to the config file that points to a This user-defined file could be called whenever a monitor addition/removal is detected, and based on the new number of monitors, the user script could update the workspace rules for various apps as appropriate. |
Beta Was this translation helpful? Give feedback.
Very interesting idea, I'd like something like this too. I think a nice way to implement this would be to add an option to the config file that points to a
bat
orps1
file that would run and take a single argument, the number of monitors.This user-defined file could be called whenever a monitor addition/removal is detected, and based on the new number of monitors, the user script could update the workspace rules for various apps as appropriate.