11hs .window .animationDuration = 0
2+ window = hs .getObjectMetatable (" hs.window" )
23
34-- +-----------------+
45-- | | |
56-- | HERE | |
67-- | | |
78-- +-----------------+
8- function hs . window .left (win )
9+ function window .left (win )
910 local f = win :frame ()
1011 local screen = win :screen ()
1112 local max = screen :frame ()
2223-- | | HERE |
2324-- | | |
2425-- +-----------------+
25- function hs . window .right (win )
26+ function window .right (win )
2627 local f = win :frame ()
2728 local screen = win :screen ()
2829 local max = screen :frame ()
3940-- +-----------------+
4041-- | |
4142-- +-----------------+
42- function hs . window .up (win )
43+ function window .up (win )
4344 local f = win :frame ()
4445 local screen = win :screen ()
4546 local max = screen :frame ()
5657-- +-----------------+
5758-- | HERE |
5859-- +-----------------+
59- function hs . window .down (win )
60+ function window .down (win )
6061 local f = win :frame ()
6162 local screen = win :screen ()
6263 local max = screen :frame ()
7374-- +--------+ |
7475-- | |
7576-- +-----------------+
76- function hs . window .upLeft (win )
77+ function window .upLeft (win )
7778 local f = win :frame ()
7879 local screen = win :screen ()
7980 local max = screen :fullFrame ()
9091-- +--------+ |
9192-- | HERE | |
9293-- +-----------------+
93- function hs . window .downLeft (win )
94+ function window .downLeft (win )
9495 local f = win :frame ()
9596 local screen = win :screen ()
9697 local max = screen :fullFrame ()
107108-- | +--------|
108109-- | | HERE |
109110-- +-----------------+
110- function hs . window .downRight (win )
111+ function window .downRight (win )
111112 local f = win :frame ()
112113 local screen = win :screen ()
113114 local max = screen :fullFrame ()
125126-- | +--------|
126127-- | |
127128-- +-----------------+
128- function hs . window .upRight (win )
129+ function window .upRight (win )
129130 local f = win :frame ()
130131 local screen = win :screen ()
131132 local max = screen :fullFrame ()
142143-- | | HERE | |
143144-- | | | |
144145-- +---------------+
145- function hs . window .centerWithFullHeight (win )
146+ function window .centerWithFullHeight (win )
146147 local f = win :frame ()
147148 local screen = win :screen ()
148149 local max = screen :fullFrame ()
159160-- | HERE | |
160161-- | | |
161162-- +-----------------+
162- function hs . window .left40 (win )
163+ function window .left40 (win )
163164 local f = win :frame ()
164165 local screen = win :screen ()
165166 local max = screen :frame ()
176177-- | | HERE |
177178-- | | |
178179-- +-----------------+
179- function hs . window .right60 (win )
180+ function window .right60 (win )
180181 local f = win :frame ()
181182 local screen = win :screen ()
182183 local max = screen :frame ()
@@ -188,7 +189,7 @@ function hs.window.right60(win)
188189 win :setFrame (f )
189190end
190191
191- function hs . window .nextScreen (win )
192+ function window .nextScreen (win )
192193 local currentScreen = win :screen ()
193194 local allScreens = hs .screen .allScreens ()
194195 currentScreenIndex = hs .fnutils .indexOf (allScreens , currentScreen )
0 commit comments