sites

public wiki contents of suckless.org
git clone git://git.suckless.org/sites
Log | Files | Refs

index.md (966B)


      1 swapwindows
      2 ===========
      3 
      4 Description
      5 -----------
      6 
      7 This patch enables swapping the currently focused client (window) with the
      8 selected window on another monitor.
      9 It is useful for moving a window between monitors while preserving window focus
     10 and layout order.
     11 
     12 #### Usage
     13 
     14 After applying the patch, the following key binding is available by default:
     15 
     16 **MODKEY + Shift + /**
     17 
     18 This keybinding will:
     19 
     20 - Swap the currently focused window with the focused window on the next
     21 monitor (if one exists).
     22 - If the other monitor has no selected client, it will simply move the currently
     23 focused window there.
     24 - Automatically rearrange and refocus windows as needed after the operation.
     25 
     26 > You can customize this keybinding in your `config.def.h` file:
     27 >
     28 > ```
     29 > { MODKEY|ShiftMask, XK_slash, swapwindow, {0} },
     30 > ```
     31 
     32 Download
     33 --------
     34 * [dwm-swapwindows-20250509-00ea4c4.diff](dwm-swapwindows-20250509-00ea4c4.diff)
     35 
     36 Author
     37 ------
     38 * Jameel Sawafta - <jameelhsawafta@gmail.com>