sites

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

index.md (1607B)


      1 mark
      2 ====
      3 
      4 Description
      5 -----------
      6 This patch provides an mechanism to easily jump between any 2 clients, or to
      7 swap any 2 clients through shortcuts by introcuding mark. The mark is global,
      8 and only one mark is allowed at the same time. The marked client is
      9 distinguished from other clients by having a different border color.
     10 
     11 This patch adds 3 functions to dwm:
     12 
     13 * togglemark - mark/unmark current focused client.
     14 * swapclient - swap focused client with marked client
     15 * swapfocus - swap focus with mark.
     16 
     17 Configuration
     18 -------------
     19 	static const char normmarkcolor[]   = "#775500";	/*border color for marked client*/
     20 	static const char selmarkcolor[]    = "#775577";	/*border color for marked client on focus*/
     21 
     22 	/*basic key mappings*/
     23 	{ MODKEY,                       XK_semicolon,togglemark,   {0} },
     24 	{ MODKEY,                       XK_o,      swapfocus,      {0} },
     25 	{ MODKEY,                       XK_u,      swapclient,     {0} },
     26 
     27 Some ideas for combinations of key mappings:
     28 
     29 * togglemark x2  clear the mark
     30 * swapclient, swapfocus shift the client to another client frame without losing
     31   focus
     32 * swapclient, togglemark x2  swap 2 clients and clear the mark
     33 * swapfocus, togglemark x2  jump to mark and clear the mark
     34 
     35 Download
     36 --------
     37 This patch has now been updated to 6.2.  
     38 The recommended version is dwm-6.2-mark-new.diff. (updated on 2020-10-05)
     39 
     40 * [dwm-mark-new-6.2.diff](dwm-mark-new-6.2.diff)  
     41 * [dwm-mark-new-6.1.diff](dwm-mark-new-6.1.diff)  
     42 * [dwm-mark-6.1.diff](dwm-mark-6.1.diff)  
     43 
     44 Author
     45 ------
     46 * phi <crispyfrog@163.com>
     47 * mrkajetanp <kajetan.puchalski@tuta.io> (6.2 update)