Return the mod key to the super key agine :)
This commit is contained in:
		
							parent
							
								
									19e9f24391
								
							
						
					
					
						commit
						639c18a095
					
				
					 1 changed files with 16 additions and 12 deletions
				
			
		| 
						 | 
				
			
			@ -1,27 +1,31 @@
 | 
			
		|||
#ifndef KEYS_H
 | 
			
		||||
#define KEYS_H
 | 
			
		||||
 | 
			
		||||
#include <X11/X.h>
 | 
			
		||||
#include "../dwm.h"
 | 
			
		||||
#include <X11/X.h>
 | 
			
		||||
 | 
			
		||||
typedef struct {
 | 
			
		||||
    unsigned int mod;
 | 
			
		||||
    KeySym chain;
 | 
			
		||||
    KeySym keysym;
 | 
			
		||||
  unsigned int mod;
 | 
			
		||||
  KeySym chain;
 | 
			
		||||
  KeySym keysym;
 | 
			
		||||
 | 
			
		||||
    void (*func)(const Arg *);
 | 
			
		||||
  void (*func)(const Arg *);
 | 
			
		||||
 | 
			
		||||
    const Arg arg;
 | 
			
		||||
  const Arg arg;
 | 
			
		||||
} Key;
 | 
			
		||||
 | 
			
		||||
/* key definitions */
 | 
			
		||||
#define MODKEY LockMask // The modifier key is: Caps Lock :P
 | 
			
		||||
#define MODKEY Mod4Mask // Super key
 | 
			
		||||
 | 
			
		||||
#define TAGKEYS(CHAIN, KEY, TAG) \
 | 
			
		||||
   { MODKEY,                       CHAIN,    KEY,      view,           {.ui = 1 << TAG} }, \
 | 
			
		||||
   { MODKEY|ControlMask,           CHAIN,    KEY,      toggleview,     {.ui = 1 << TAG} }, \
 | 
			
		||||
   { MODKEY|ShiftMask,             CHAIN,    KEY,      tag,            {.ui = 1 << TAG} }, \
 | 
			
		||||
   { MODKEY|ControlMask|ShiftMask, CHAIN,    KEY,      toggletag,      {.ui = 1 << TAG} },
 | 
			
		||||
#define TAGKEYS(CHAIN, KEY, TAG)                                               \
 | 
			
		||||
  {MODKEY, CHAIN, KEY, view, {.ui = 1 << TAG}},                                \
 | 
			
		||||
      {MODKEY | ControlMask, CHAIN, KEY, toggleview, {.ui = 1 << TAG}},        \
 | 
			
		||||
      {MODKEY | ShiftMask, CHAIN, KEY, tag, {.ui = 1 << TAG}},                 \
 | 
			
		||||
      {MODKEY | ControlMask | ShiftMask,                                       \
 | 
			
		||||
       CHAIN,                                                                  \
 | 
			
		||||
       KEY,                                                                    \
 | 
			
		||||
       toggletag,                                                              \
 | 
			
		||||
       {.ui = 1 << TAG}},
 | 
			
		||||
 | 
			
		||||
// Include all the key bindings
 | 
			
		||||
#ifndef KEYS_C
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue