Skip to content

Commit

Permalink
Merge pull request #233 from ckaznable/patch
Browse files Browse the repository at this point in the history
Add SwapNext and update SwapWindow type in DispatchType
  • Loading branch information
yavko committed May 23, 2024
2 parents 96f8f76 + 7166c3c commit c0171c8
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/dispatch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -309,8 +309,10 @@ pub enum DispatchType<'a> {
MoveWindowPixel(Position, WindowIdentifier<'a>),
/// This dispatcher cycles windows using a specified direction
CycleWindow(CycleDirection),
/// This dispatcher swaps the focused window with the window on a workspace using a specified direction
SwapNext(CycleDirection),
/// This dispatcher swaps windows using a specified direction
SwapWindow(CycleDirection),
SwapWindow(Direction),
/// This dispatcher focuses a specified window
FocusWindow(WindowIdentifier<'a>),
/// This dispatcher focuses a specified monitor
Expand Down Expand Up @@ -493,7 +495,8 @@ pub(crate) fn gen_dispatch_str(cmd: DispatchType, dispatch: bool) -> crate::Resu
ResizeWindowPixel(pos, win) => format!("resizewindowpixel{sep}{pos},{win}"),
MoveWindowPixel(pos, win) => format!("movewindowpixel{sep}{pos},{win}"),
CycleWindow(dir) => format!("cyclenext{sep}{dir}"),
SwapWindow(dir) => format!("swapnext{sep}{dir}"),
SwapNext(dir) => format!("swapnext{sep}{dir}"),
SwapWindow(dir) => format!("swapwindow{sep}{dir}"),
FocusWindow(win) => format!("focuswindow{sep}{win}"),
FocusMonitor(mon) => format!("focusmonitor{sep}{mon}"),
ChangeSplitRatio(ratio) => format!("splitratio {ratio}"),
Expand Down

0 comments on commit c0171c8

Please sign in to comment.