From 693cddc1f6e7d75bf1e826c59f121099eba7f01c Mon Sep 17 00:00:00 2001 From: Vlad Petrov Date: Sat, 14 Oct 2023 18:55:49 +0300 Subject: [PATCH] use layoutmsg dispatcher --- src/dispatch.rs | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/dispatch.rs b/src/dispatch.rs index 9705e18..1dd7d23 100644 --- a/src/dispatch.rs +++ b/src/dispatch.rs @@ -534,18 +534,18 @@ pub(crate) fn gen_dispatch_str(cmd: DispatchType, dispatch: bool) -> crate::Resu SetCursor(theme, size) => format!("{theme} {}", *size), FocusUrgentOrLast => "focusurgentorlast".to_string(), FocusCurrentOrLast => "focuscurrentorlast".to_string(), - ToggleSplit => "togglesplit".to_string(), - SwapWithMaster(param) => format!("swapwithmaster{sep}{param}"), - FocusMaster(param) => format!("focusmaster{sep}{param}"), - AddMaster => "addmaster".to_string(), - RemoveMaster => "removemaster".to_string(), - OrientationLeft => "orientationleft".to_string(), - OrientationRight => "orientationright".to_string(), - OrientationTop => "orientationtop".to_string(), - OrientationBottom => "orientationbottom".to_string(), - OrientationCenter => "orientationcenter".to_string(), - OrientationNext => "orientationnext".to_string(), - OrientationPrev => "orientationprev".to_string(), + ToggleSplit => "layoutmsg togglesplit".to_string(), + SwapWithMaster(param) => format!("layoutmsg swapwithmaster{sep}{param}"), + FocusMaster(param) => format!("layoutmsg focusmaster{sep}{param}"), + AddMaster => "layoutmsg addmaster".to_string(), + RemoveMaster => "layoutmsg removemaster".to_string(), + OrientationLeft => "layoutmsg orientationleft".to_string(), + OrientationRight => "layoutmsg orientationright".to_string(), + OrientationTop => "layoutmsg orientationtop".to_string(), + OrientationBottom => "layoutmsg orientationbottom".to_string(), + OrientationCenter => "layoutmsg orientationcenter".to_string(), + OrientationNext => "layoutmsg orientationnext".to_string(), + OrientationPrev => "layoutmsg orientationprev".to_string(), ToggleGroup => "togglegroup".to_string(), ChangeGroupActive(dir) => format!("changegroupactive{sep}{dir}"), LockGroups(how) => format!("lockgroups{sep}{how}"),