sites

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

dwm-zeroastag-22032023-0aea805.diff (1787B)


      1 From 0aea8051b1ae85c568dc69d4cf9865de9ad6acce Mon Sep 17 00:00:00 2001
      2 From: Michal Orman <michal.orman@gmail.com>
      3 Date: Wed, 22 Mar 2023 16:02:45 +0100
      4 Subject: [PATCH] Make XK_0 a regular tag.
      5 
      6 Change the default behavior of XK_0 from selecting all tags to be
      7 a regular 10th tag.
      8 ---
      9  config.def.h | 5 ++---
     10  1 file changed, 2 insertions(+), 3 deletions(-)
     11 
     12 diff --git a/config.def.h b/config.def.h
     13 index 9efa774..15d02d7 100644
     14 --- a/config.def.h
     15 +++ b/config.def.h
     16 @@ -19,7 +19,7 @@ static const char *colors[][3]      = {
     17  };
     18  
     19  /* tagging */
     20 -static const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" };
     21 +static const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9", "0" };
     22  
     23  static const Rule rules[] = {
     24  	/* xprop(1):
     25 @@ -79,8 +79,6 @@ static const Key keys[] = {
     26  	{ MODKEY,                       XK_m,      setlayout,      {.v = &layouts[2]} },
     27  	{ MODKEY,                       XK_space,  setlayout,      {0} },
     28  	{ MODKEY|ShiftMask,             XK_space,  togglefloating, {0} },
     29 -	{ MODKEY,                       XK_0,      view,           {.ui = ~0 } },
     30 -	{ MODKEY|ShiftMask,             XK_0,      tag,            {.ui = ~0 } },
     31  	{ MODKEY,                       XK_comma,  focusmon,       {.i = -1 } },
     32  	{ MODKEY,                       XK_period, focusmon,       {.i = +1 } },
     33  	{ MODKEY|ShiftMask,             XK_comma,  tagmon,         {.i = -1 } },
     34 @@ -94,6 +92,7 @@ static const Key keys[] = {
     35  	TAGKEYS(                        XK_7,                      6)
     36  	TAGKEYS(                        XK_8,                      7)
     37  	TAGKEYS(                        XK_9,                      8)
     38 +	TAGKEYS(                        XK_0,                      9)
     39  	{ MODKEY|ShiftMask,             XK_q,      quit,           {0} },
     40  };
     41  
     42 -- 
     43 2.40.0
     44