mirror of
https://github.com/neon443/DockPhobia.git
synced 2026-03-11 06:49:12 +00:00
nothing much
This commit is contained in:
Binary file not shown.
@@ -2,7 +2,6 @@ from pynput.mouse import Controller
|
|||||||
import subprocess
|
import subprocess
|
||||||
import AppKit
|
import AppKit
|
||||||
import time
|
import time
|
||||||
import pdb
|
|
||||||
from memory_profiler import profile
|
from memory_profiler import profile
|
||||||
|
|
||||||
mouse = Controller()
|
mouse = Controller()
|
||||||
@@ -89,7 +88,6 @@ def run_loop():
|
|||||||
global dockSide, dockFromBottom, dockFromLeft, dockFromRight, startedOutAt
|
global dockSide, dockFromBottom, dockFromLeft, dockFromRight, startedOutAt
|
||||||
|
|
||||||
while True:
|
while True:
|
||||||
# for i in range(0,100000):
|
|
||||||
if dockSide == "bottom":
|
if dockSide == "bottom":
|
||||||
if mouse.position[1] > dockFromBottom:
|
if mouse.position[1] > dockFromBottom:
|
||||||
if mouse.position[0] < screenSize[0]/2:
|
if mouse.position[0] < screenSize[0]/2:
|
||||||
@@ -101,7 +99,6 @@ def run_loop():
|
|||||||
dockSide = "left"
|
dockSide = "left"
|
||||||
#mouse is at bottom but on the right of screen
|
#mouse is at bottom but on the right of screen
|
||||||
# neverbeenside = False
|
# neverbeenside = False
|
||||||
|
|
||||||
elif dockSide == "left":
|
elif dockSide == "left":
|
||||||
if mouse.position[0] < dockFromLeft:
|
if mouse.position[0] < dockFromLeft:
|
||||||
if mouse.position[1] < screenSize[1]/2:
|
if mouse.position[1] < screenSize[1]/2:
|
||||||
@@ -112,7 +109,6 @@ def run_loop():
|
|||||||
moveDock("right")
|
moveDock("right")
|
||||||
dockSide = "right"
|
dockSide = "right"
|
||||||
#mouse is at left but bottom half
|
#mouse is at left but bottom half
|
||||||
|
|
||||||
elif dockSide == "right":
|
elif dockSide == "right":
|
||||||
if mouse.position[0] > dockFromRight:
|
if mouse.position[0] > dockFromRight:
|
||||||
if mouse.position[1] < screenSize[1]/2:
|
if mouse.position[1] < screenSize[1]/2:
|
||||||
@@ -123,7 +119,6 @@ def run_loop():
|
|||||||
moveDock("left")
|
moveDock("left")
|
||||||
dockSide = "left"
|
dockSide = "left"
|
||||||
#mouse is at right but bottom half
|
#mouse is at right but bottom half
|
||||||
|
|
||||||
if startedOutAt == "":
|
if startedOutAt == "":
|
||||||
continue
|
continue
|
||||||
elif startedOutAt == "bottom" and dockSide != "bottom":
|
elif startedOutAt == "bottom" and dockSide != "bottom":
|
||||||
|
|||||||
Reference in New Issue
Block a user