sites

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

index.md (962B)


      1 runorraise
      2 ==========
      3 
      4 Description
      5 -----------
      6 This patch adds a equivalent to stumpwm's [run-or-raise] action for DWM.
      7 
      8 The idea is to have each frequently-used application one key combination away
      9 at all times, irrespective of which workspace it is on, or how recently it has
     10 been used, or even whether it’s running or not.
     11 
     12 Usage
     13 -----
     14 1. In your config.h:
     15 
     16 	static const char *emacs[] = { "emacsclient", "-c", NULL, NULL, "Emacs" };
     17 	static const char *browser[] = { "firefox", NULL, NULL, NULL, "Firefox" };
     18 
     19 2. In your keybindings add something like:
     20 
     21 	{ Modkey,                       XK_e,      runorraise,     {.v = emacs } },
     22 	{ Modkey,                       XK_f,      runorraise,     {.v = firefox } },
     23 
     24 Download
     25 --------
     26 * [dwm-6.1-runorraise.diff](dwm-6.1-runorraise.diff)
     27 
     28 Authors
     29 -------
     30 * Quentin Stievenart (acieroid) - `<quentin.stievenart at gmail dot com>`
     31 
     32 Contributors
     33 ------------
     34 * Ivaylo Kuzev (ivoarch) - `<ivkuzev at gmail dot com>`