add reaadme and stuff

This commit is contained in:
neon443
2025-03-16 16:59:32 +00:00
parent 4373233432
commit d9d82d3304
9 changed files with 55 additions and 33 deletions

4
.nova/Configuration.json Normal file
View File

@@ -0,0 +1,4 @@
{
"python.analysis.typeCheckingMode" : "strict",
"python.pipRequirements" : "DockPhobiaPy\/requirements.txt"
}

View File

@@ -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"
}

View File

@@ -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"
}
}

View File

@@ -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;

BIN
DockPhobia/.DS_Store vendored
View File

Binary file not shown.

View File

@@ -6,8 +6,8 @@
<string>allow it</string>
<key>NSAccessibilitysUsageDescription</key>
<string>allow it</string>
<key>com.apple.security.automation.apple-events<>
<true>
<key>com.apple.security.automation.apple-events</key>
<true/>
<key>com.apple.security.scripting-targets</key>
<dict>
<key>com.apple.mail</key>

View File

@@ -1,5 +0,0 @@
tell application "System Events"
tell dock preferences
set screen edge to right
end tell
end tell

BIN
DockPhobiaPy/.DS_Store vendored
View File

Binary file not shown.

View File

@@ -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
```