| 
						
						
							
								
							
						
						
					 | 
					 | 
					@ -215,23 +215,16 @@ end | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					function reloadConfig() | 
					 | 
					 | 
					 | 
					function reloadConfig() | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    hs.reload() | 
					 | 
					 | 
					 | 
					    hs.reload() | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    --hs.execute("/bin/launchctl kickstart -k \"gui/${UID}/homebrew.mxcl.yabai\"") | 
					 | 
					 | 
					 | 
					    hs.execute("/bin/launchctl kickstart -k \"gui/${UID}/homebrew.mxcl.yabai\"") | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					end | 
					 | 
					 | 
					 | 
					end | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					hsreload_keys = { hyper, "R" } | 
					 | 
					 | 
					 | 
					hsreload_keys = { hyper, "R" } | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					hsreload_keys = hsreload_keys or { { "cmd", "shift", "ctrl" }, "R" } | 
					 | 
					 | 
					 | 
					hsreload_keys = hsreload_keys or { { "cmd", "shift", "ctrl" }, "R" } | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					if string.len(hsreload_keys[2]) > 0 then | 
					 | 
					 | 
					 | 
					if string.len(hsreload_keys[2]) > 0 then | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    hs.hotkey.bind(hsreload_keys[1], hsreload_keys[2], "Reload Configuration", reloadConfig) | 
					 | 
					 | 
					 | 
					    hs.hotkey.bind(hsreload_keys[1], hsreload_keys[2], "Reload Configuration", reloadConfig) | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    hs.notify.new({ title = "Hammerspoon config reloaded", informativeText = "Manually trigger via keyboard shortcut" }):send() | 
					 | 
					 | 
					 | 
					    hs.notify.new({ title = "Hammerspoon config reloaded", informativeText = "Manually trigged via keyboard shortcut" }):send() | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					end | 
					 | 
					 | 
					 | 
					end | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					-- Enhanced Spaces | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					--local EnhancedSpaces = hs.loadSpoon('EnhancedSpaces') | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					--EnhancedSpaces:new({ | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					--    mSpaces = { '1', '2', '3', 'E' }, -- default { '1', '2', '3' } | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					--    startmSpace = 'E', -- default 2 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					--}) | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					-- ModalMgr Spoon must be loaded explicitly, because this repository heavily relies upon it. | 
					 | 
					 | 
					 | 
					-- ModalMgr Spoon must be loaded explicitly, because this repository heavily relies upon it. | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					hs.loadSpoon("ModalMgr") | 
					 | 
					 | 
					 | 
					hs.loadSpoon("ModalMgr") | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					 | 
					@ -279,13 +272,13 @@ end) | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					-- Then we create/register all kinds of modal keybindings environments. | 
					 | 
					 | 
					 | 
					-- Then we create/register all kinds of modal keybindings environments. | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					---------------------------------------------------------------------------------------------------- | 
					 | 
					 | 
					 | 
					---------------------------------------------------------------------------------------------------- | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					-- Register windowHints (Register a keybinding which is NOT modal environment with modal supervisor) | 
					 | 
					 | 
					 | 
					-- Register windowHints (Register a keybinding which is NOT modal environment with modal supervisor) | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					--hswhints_keys = hswhints_keys or { "alt", "tab" } | 
					 | 
					 | 
					 | 
					hswhints_keys = hswhints_keys or { "alt", "tab" } | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					--if string.len(hswhints_keys[2]) > 0 then | 
					 | 
					 | 
					 | 
					if string.len(hswhints_keys[2]) > 0 then | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					--    spoon.ModalMgr.supervisor:bind(hswhints_keys[1], hswhints_keys[2], 'Show Window Hints', function() | 
					 | 
					 | 
					 | 
					    spoon.ModalMgr.supervisor:bind(hswhints_keys[1], hswhints_keys[2], 'Show Window Hints', function() | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					--        spoon.ModalMgr:deactivateAll() | 
					 | 
					 | 
					 | 
					        spoon.ModalMgr:deactivateAll() | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					--        hs.hints.windowHints() | 
					 | 
					 | 
					 | 
					        hs.hints.windowHints() | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					--    end) | 
					 | 
					 | 
					 | 
					    end) | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					--end | 
					 | 
					 | 
					 | 
					end | 
				
			
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					---------------------------------------------------------------------------------------------------- | 
					 | 
					 | 
					 | 
					---------------------------------------------------------------------------------------------------- | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					-- appM modal environment | 
					 | 
					 | 
					 | 
					-- appM modal environment | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					 | 
					@ -329,14 +322,14 @@ for _, v in ipairs(hsapp_list) do | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					end | 
					 | 
					 | 
					 | 
					end | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					-- Then we register some keybindings with modal supervisor | 
					 | 
					 | 
					 | 
					-- Then we register some keybindings with modal supervisor | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					-- hsappM_keys = hsappM_keys or { "alt", "A" } | 
					 | 
					 | 
					 | 
					hsappM_keys = hsappM_keys or { "alt", "A" } | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					-- if string.len(hsappM_keys[2]) > 0 then | 
					 | 
					 | 
					 | 
					if string.len(hsappM_keys[2]) > 0 then | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					--     spoon.ModalMgr.supervisor:bind(hsappM_keys[1], hsappM_keys[2], "Enter AppM Environment", function() | 
					 | 
					 | 
					 | 
					    spoon.ModalMgr.supervisor:bind(hsappM_keys[1], hsappM_keys[2], "Enter AppM Environment", function() | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					--         spoon.ModalMgr:deactivateAll() | 
					 | 
					 | 
					 | 
					        spoon.ModalMgr:deactivateAll() | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					--         -- Show the keybindings cheatsheet once appM is activated | 
					 | 
					 | 
					 | 
					        -- Show the keybindings cheatsheet once appM is activated | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					--         spoon.ModalMgr:activate({ "appM" }, "#FFBD2E", true) | 
					 | 
					 | 
					 | 
					        spoon.ModalMgr:activate({ "appM" }, "#FFBD2E", true) | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					--     end) | 
					 | 
					 | 
					 | 
					    end) | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					-- end | 
					 | 
					 | 
					 | 
					end | 
				
			
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					---------------------------------------------------------------------------------------------------- | 
					 | 
					 | 
					 | 
					---------------------------------------------------------------------------------------------------- | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					-- clipshowM modal environment | 
					 | 
					 | 
					 | 
					-- clipshowM modal environment | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					 | 
					
  |