feat(wm): add per-workspace tiling config + toggle

Added two commands, 'komorebic toggle-tiling' and 'komorebic
workspace-tiling MONITOR_IDX WORKSPACE_IDX on|off' which allow for
tiling on the currently focused workspace to be toggled on and off, and
for the tiling for a specific workspace to be set to on or off (useful
if you want a specific workspace to always have tiling set to off at
startup).

resolve #5
This commit is contained in:
LGUG2Z
2021-08-14 10:17:54 -07:00
parent b8929cbead
commit 820432f9d4
5 changed files with 94 additions and 23 deletions
+2
View File
@@ -40,6 +40,7 @@ pub enum SocketMessage {
// Monitor and Workspace Commands
EnsureWorkspaces(usize, usize),
NewWorkspace,
ToggleTiling,
Stop,
TogglePause,
Retile,
@@ -47,6 +48,7 @@ pub enum SocketMessage {
FocusWorkspaceNumber(usize),
ContainerPadding(usize, usize, i32),
WorkspacePadding(usize, usize, i32),
WorkspaceTiling(usize, usize, bool),
WorkspaceName(usize, usize, String),
WorkspaceLayout(usize, usize, Layout),
// Configuration