diff --git a/.nova/Configuration.json b/.nova/Configuration.json new file mode 100644 index 0000000..cb11c8e --- /dev/null +++ b/.nova/Configuration.json @@ -0,0 +1,4 @@ +{ + "python.analysis.typeCheckingMode" : "strict", + "python.pipRequirements" : "DockPhobiaPy\/requirements.txt" +} diff --git a/.nova/Tasks/Custom Task.json b/.nova/Tasks/Custom Task.json new file mode 100644 index 0000000..cd2984c --- /dev/null +++ b/.nova/Tasks/Custom Task.json @@ -0,0 +1,17 @@ +{ + "actions" : { + "build" : { + "enabled" : true, + "script" : "#!\/bin\/sh\ncd DockPhobiaPy\npython3 -m venv venv\n. venv\/bin\/activate\npip3 install -r requirements.txt" + }, + "clean" : { + "enabled" : true, + "script" : "#!\/bin\/sh\ncd DockPhobiaPy\n. venv\/bin\/activate\npip3 freeze > requirements.txt\nrm -rf venv" + }, + "run" : { + "enabled" : true, + "script" : "#!\/bin\/sh\ncd DockPhobiaPy\n. venv\/bin\/activate\npython3 main.py" + } + }, + "openLogOnRun" : "start" +} diff --git a/.nova/Tasks/Virtual Environment.json b/.nova/Tasks/Virtual Environment.json deleted file mode 100644 index c3d78f8..0000000 --- a/.nova/Tasks/Virtual Environment.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "actions" : { - "run" : { - "postActions" : [ - { - "script" : ". *Py\/venv\/bin\/activate\npython3 *Py\/main.py", - "type" : "runScript" - } - ] - } - }, - "extension" : { - "identifier" : "net.danwatson.Python", - "name" : "Python" - }, - "extensionTemplate" : "virtualenv", - "extensionValues" : { - "script" : "DockPhobiaPy\/main.py" - } -} diff --git a/DockPhobia.xcodeproj/project.pbxproj b/DockPhobia.xcodeproj/project.pbxproj index fc01060..64669c0 100644 --- a/DockPhobia.xcodeproj/project.pbxproj +++ b/DockPhobia.xcodeproj/project.pbxproj @@ -269,10 +269,10 @@ CURRENT_PROJECT_VERSION = 1; DEVELOPMENT_ASSET_PATHS = "\"DockPhobia/Preview Content\""; DEVELOPMENT_TEAM = P6PV2R9443; - ENABLE_APP_SANDBOX = YES; + ENABLE_APP_SANDBOX = NO; ENABLE_HARDENED_RUNTIME = NO; ENABLE_PREVIEWS = YES; - ENABLE_USER_SCRIPT_SANDBOXING = YES; + ENABLE_USER_SCRIPT_SANDBOXING = NO; GENERATE_INFOPLIST_FILE = YES; INFOPLIST_FILE = DockPhobia/Info.plist; INFOPLIST_KEY_LSUIElement = NO; @@ -302,10 +302,10 @@ CURRENT_PROJECT_VERSION = 1; DEVELOPMENT_ASSET_PATHS = "\"DockPhobia/Preview Content\""; DEVELOPMENT_TEAM = P6PV2R9443; - ENABLE_APP_SANDBOX = YES; + ENABLE_APP_SANDBOX = NO; ENABLE_HARDENED_RUNTIME = NO; ENABLE_PREVIEWS = YES; - ENABLE_USER_SCRIPT_SANDBOXING = YES; + ENABLE_USER_SCRIPT_SANDBOXING = NO; GENERATE_INFOPLIST_FILE = YES; INFOPLIST_FILE = DockPhobia/Info.plist; INFOPLIST_KEY_LSUIElement = NO; diff --git a/DockPhobiaPy/.DS_Store b/DockPhobiaPy/.DS_Store index 53297f3..e8b9eea 100644 Binary files a/DockPhobiaPy/.DS_Store and b/DockPhobiaPy/.DS_Store differ diff --git a/README.md b/README.md index e2072fa..3b6dd16 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,34 @@ -# DoclkPhobia +# DockPhobia -git clone https://github.com/noen443/DockPhobia +Have you ever wanted to use your Dock? +well now you cant + +## This masterclass of an app does the following: +- tracks your mouse +- calculates the size of your screen & Dock +- when your cursor is on the Dock (+ extra 5% of screen), the Dock moves to a different side of the screen +- it also figures out the furthest it can be, for example if your cursor is at the top left quarter of the screen and near the Dock on the left, the dock moves to the bottom as that is the furthest, etc +- - + +## Quick start Guide (Swift Mac App) +(Currently not functional) +``` +git clone https://github.com/neon443/DockPhobia +cd DockPhobia +open DockPhobia.xcodeproj +``` + +## Quick start Guide (Python version) +``` +xcode-select --install +/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" +brew install python3 +``` +``` +git clone https://github.com/neon443/DockPhobia cd DockPhobia/DockPhobiaPy python3 -m venv venv . venv/bin/activate pip3 install -r requirements.txt python3 main.py +```