separate hotkey to raise windows
This commit is contained in:
		
							parent
							
								
									ea419cd05d
								
							
						
					
					
						commit
						abc97e29c4
					
				
					 1 changed files with 6 additions and 14 deletions
				
			
		
							
								
								
									
										20
									
								
								rc.lua
									
										
									
									
									
								
							
							
						
						
									
										20
									
								
								rc.lua
									
										
									
									
									
								
							| 
						 | 
					@ -316,20 +316,10 @@ globalkeys = awful.util.table.join(
 | 
				
			||||||
	awful.key({ modkey,           }, 'Right',  awful.tag.viewnext),
 | 
						awful.key({ modkey,           }, 'Right',  awful.tag.viewnext),
 | 
				
			||||||
	awful.key({ modkey,           }, 'Escape', awful.tag.history.restore),
 | 
						awful.key({ modkey,           }, 'Escape', awful.tag.history.restore),
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	awful.key({ modkey,           }, 'j',
 | 
						-- Switch between windows
 | 
				
			||||||
		function ()
 | 
						awful.key({ modkey,           }, 'j', function () awful.client.focus.byidx(1) end),
 | 
				
			||||||
			awful.client.focus.byidx(1)
 | 
						awful.key({ modkey,           }, 'k', function () awful.client.focus.byidx(-1) end),
 | 
				
			||||||
			if client.focus then
 | 
						awful.key({ modkey,           }, 'i', function () client.focus:raise() end),
 | 
				
			||||||
				client.focus:raise()
 | 
					 | 
				
			||||||
			end
 | 
					 | 
				
			||||||
		end),
 | 
					 | 
				
			||||||
	awful.key({ modkey,           }, 'k',
 | 
					 | 
				
			||||||
		function ()
 | 
					 | 
				
			||||||
			awful.client.focus.byidx(-1)
 | 
					 | 
				
			||||||
			if client.focus then
 | 
					 | 
				
			||||||
				client.focus:raise()
 | 
					 | 
				
			||||||
			end
 | 
					 | 
				
			||||||
		end),
 | 
					 | 
				
			||||||
	awful.key({ modkey,           }, 'w', function () mymainmenu:show() end),
 | 
						awful.key({ modkey,           }, 'w', function () mymainmenu:show() end),
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	-- Layout manipulation
 | 
						-- Layout manipulation
 | 
				
			||||||
| 
						 | 
					@ -338,6 +328,8 @@ globalkeys = awful.util.table.join(
 | 
				
			||||||
	awful.key({ modkey, 'Control' }, 'j', function () awful.screen.focus_relative(1) end),
 | 
						awful.key({ modkey, 'Control' }, 'j', function () awful.screen.focus_relative(1) end),
 | 
				
			||||||
	awful.key({ modkey, 'Control' }, 'k', function () awful.screen.focus_relative(-1) end),
 | 
						awful.key({ modkey, 'Control' }, 'k', function () awful.screen.focus_relative(-1) end),
 | 
				
			||||||
	awful.key({ modkey,           }, 'u', awful.client.urgent.jumpto),
 | 
						awful.key({ modkey,           }, 'u', awful.client.urgent.jumpto),
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						-- Mod#+Tab hotkeys
 | 
				
			||||||
	awful.key({ modkey,           }, 'Tab',
 | 
						awful.key({ modkey,           }, 'Tab',
 | 
				
			||||||
		function ()
 | 
							function ()
 | 
				
			||||||
			awful.client.focus.history.previous()
 | 
								awful.client.focus.history.previous()
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue