Changed bindings and updated rules.
This commit is contained in:
		
							parent
							
								
									38abd88af0
								
							
						
					
					
						commit
						396367b271
					
				
							
								
								
									
										7
									
								
								config.h
									
									
									
									
									
								
							
							
						
						
									
										7
									
								
								config.h
									
									
									
									
									
								
							@ -48,6 +48,7 @@ static const Rule rules[] = {
 | 
			
		||||
	/* class      instance    title       tags mask     isfloating   monitor */
 | 
			
		||||
	{ "Gimp",     NULL,       NULL,       0,            1,           -1 },
 | 
			
		||||
	{ "Firefox",  NULL,       NULL,       1 << 1,       0,           -1 },
 | 
			
		||||
	{ "firefox",  NULL,       NULL,       1 << 1,       0,           -1 },
 | 
			
		||||
	{ "discord",  NULL,       NULL,       1 << 2,       0,           -1 },
 | 
			
		||||
	{ "Steam",    NULL,       NULL,       1 << 3,       0,           -1 },
 | 
			
		||||
	{ "Lutris",   NULL,       NULL,       1 << 3,       0,           -1 },
 | 
			
		||||
@ -85,6 +86,7 @@ static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn()
 | 
			
		||||
static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_cyan, "-sf", col_gray4, NULL };
 | 
			
		||||
static const char *roficmd[] = { "rofi", "-show", "run", "-font", "SourceCodePro 12" };
 | 
			
		||||
static const char *termcmd[]  = { "alacritty", NULL };
 | 
			
		||||
static const char *filecmd[]  = { "pcmanfm", NULL };
 | 
			
		||||
static const char *browsercmd[]  = { "firefox", NULL };
 | 
			
		||||
static const char *slockcmd[]  = { "slock", NULL };
 | 
			
		||||
 | 
			
		||||
@ -92,7 +94,7 @@ static const char *slockcmd[]  = { "slock", NULL };
 | 
			
		||||
void focusmaster(const Arg* arg);
 | 
			
		||||
 | 
			
		||||
/* variables */
 | 
			
		||||
static int gamingmodmask = MODKEY; /* mod keys to disable when gaming */
 | 
			
		||||
static int gamingmodmask = ALTKEY|MODKEY; /* mod keys to disable when gaming */
 | 
			
		||||
 | 
			
		||||
static Key togglegamingkey = { MODKEY|ControlMask, XK_g, togglegaming, {0} };
 | 
			
		||||
 | 
			
		||||
@ -101,8 +103,9 @@ static Key keys[] = {
 | 
			
		||||
	//{ MODKEY,                       XK_p,      spawn,          {.v = dmenucmd } },
 | 
			
		||||
	{ MODKEY,                       XK_space,  spawn,          {.v = roficmd } },
 | 
			
		||||
	{ MODKEY,                       XK_Return, spawn,          {.v = termcmd } },
 | 
			
		||||
	{ MODKEY,                       XK_e,      spawn,          {.v = filecmd } },
 | 
			
		||||
	{ MODKEY,                       XK_b,      spawn,          {.v = browsercmd } },
 | 
			
		||||
	{ MODKEY|ControlMask,           XK_l,      spawn,          {.v = slockcmd } },
 | 
			
		||||
	{ MODKEY,                       XK_Escape, spawn,          {.v = slockcmd } },
 | 
			
		||||
	{ MODKEY,                       XK_q,      spawn,          SHCMD("~/.config/wm_scripts/screenshot.sh") },
 | 
			
		||||
	{ MODKEY|ShiftMask,             XK_q,      spawn,          SHCMD("~/.config/wm_scripts/all.sh") },
 | 
			
		||||
	{ MODKEY|ControlMask,           XK_b,      togglebar,      {0} },
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user