11
11
-- Default
12
12
---- -------------------------------------------------------------------------
13
13
local hyper = {' cmd' , ' shift' , ' ctrl' }
14
+ local hyper2 = {' cmd' , ' alt' , ' ctrl' }
14
15
15
16
-- Make the alerts look nicer.
16
17
hs .alert .defaultStyle .fillColor = {white = 0.05 , alpha = 0.75 }
@@ -172,34 +173,35 @@ hyperKey
172
173
-- Window Management
173
174
---- require('modules.window_move') -- windows control 창이동 컨트롤 // 미사용
174
175
---- -------------------------------------------------------------------------
175
- local hyper2 = {' cmd' , ' alt' , ' ctrl' }
176
- local wm = require (' modules/window-management' )
177
-
178
-
179
- hs .hotkey .bind (hyper2 , " m" , function () wm .windowMaximize (0 ) end )
180
- hs .hotkey .bind (hyper2 , " f" , function () wm .full_screen () end )
181
-
182
- hs .hotkey .bind (hyper2 , " left" , function () wm .moveLeft () end )
183
- hs .hotkey .bind (hyper2 , " right" , function () wm .moveRight () end )
184
- hs .hotkey .bind (hyper2 , " up" , function () wm .moveTop () end )
185
- hs .hotkey .bind (hyper2 , " down" , function () wm .moveBottom () end )
186
-
187
- hs .hotkey .bind (hyper2 , " ]" , function () hs .window .focusedWindow ():moveOneScreenEast () end )
188
- hs .hotkey .bind (hyper2 , " [" , function () hs .window .focusedWindow ():moveOneScreenWest () end )
189
- hs .hotkey .bind (hyper2 , " n" , function () wm .move_next_screen () end )
190
- hs .hotkey .bind (hyper2 , " p" , function () wm .move_previous_screen () end )
191
-
192
- hs .hotkey .bind (hyper2 , " 1" , function () wm .moveWindowToPosition (wm .screenPositions .topLeft ) end )
193
- hs .hotkey .bind (hyper2 , " 2" , function () wm .moveWindowToPosition (wm .screenPositions .topRight ) end )
194
- hs .hotkey .bind (hyper2 , " 3" , function () wm .moveWindowToPosition (wm .screenPositions .bottomLeft ) end )
195
- hs .hotkey .bind (hyper2 , " 4" , function () wm .moveWindowToPosition (wm .screenPositions .bottomRight ) end )
196
- hs .hotkey .bind (hyper2 , " 5" , function () wm .moveWindowToPosition (wm .screenPositions .center ) end )
197
-
198
- hs .hotkey .bind (hyper2 , " =" , function () wm .size_plus () end )
199
- hs .hotkey .bind (hyper2 , " -" , function () wm .size_minus () end )
200
-
201
- -- Revert to the original state
202
- hs .hotkey .bind (hyper2 , " 0" , function () wm .revertOriginal () end )
176
+ --
177
+ -- #### rectangle 로 대체 ####
178
+ --
179
+ -- local wm = require('modules/window-management')
180
+
181
+ -- hs.hotkey.bind(hyper2, "m", function() wm.windowMaximize(0) end)
182
+ -- hs.hotkey.bind(hyper2, "f", function() wm.full_screen() end)
183
+
184
+ -- hs.hotkey.bind(hyper2, "left", function() wm.moveLeft() end)
185
+ -- hs.hotkey.bind(hyper2, "right", function() wm.moveRight() end)
186
+ -- hs.hotkey.bind(hyper2, "up", function() wm.moveTop() end)
187
+ -- hs.hotkey.bind(hyper2, "down", function() wm.moveBottom() end)
188
+
189
+ -- hs.hotkey.bind(hyper2, "]", function() hs.window.focusedWindow():moveOneScreenEast() end)
190
+ -- hs.hotkey.bind(hyper2, "[", function() hs.window.focusedWindow():moveOneScreenWest() end)
191
+ -- -- hs.hotkey.bind(hyper2, "n", function() wm.move_next_screen() end)
192
+ -- hs.hotkey.bind(hyper2, "p", function() wm.move_previous_screen() end)
193
+
194
+ -- hs.hotkey.bind(hyper2, "1", function() wm.moveWindowToPosition(wm.screenPositions.topLeft) end)
195
+ -- hs.hotkey.bind(hyper2, "2", function() wm.moveWindowToPosition(wm.screenPositions.topRight) end)
196
+ -- hs.hotkey.bind(hyper2, "3", function() wm.moveWindowToPosition(wm.screenPositions.bottomLeft) end)
197
+ -- hs.hotkey.bind(hyper2, "4", function() wm.moveWindowToPosition(wm.screenPositions.bottomRight) end)
198
+ -- hs.hotkey.bind(hyper2, "5", function() wm.moveWindowToPosition(wm.screenPositions.center) end)
199
+
200
+ -- hs.hotkey.bind(hyper2, "=", function() wm.size_plus() end)
201
+ -- hs.hotkey.bind(hyper2, "-", function() wm.size_minus() end)
202
+
203
+ -- -- Revert to the original state
204
+ -- hs.hotkey.bind(hyper2, "0", function() wm.revertOriginal() end)
203
205
---- -------------------------------------------------------------------------
204
206
205
207
-- 03. Lock the screen. This may also be possible with hs.caffeinate.lockScreen.
@@ -208,4 +210,4 @@ hs.hotkey.bind(hyper2, "l", function()
208
210
end )
209
211
210
212
-- Start Macros
211
- hello ()
213
+ hello ()
0 commit comments