forked from DWilliames/idasen-controller-mac
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5fe28c0
commit a32359d
Showing
17 changed files
with
212 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
Desk Controller.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"object": { | ||
"pins": [ | ||
{ | ||
"package": "LaunchAtLogin", | ||
"repositoryURL": "https://github.com/sindresorhus/LaunchAtLogin", | ||
"state": { | ||
"branch": null, | ||
"revision": "0f39982b9d6993eef253b81219d3c39ba1e680f3", | ||
"version": "4.0.0" | ||
} | ||
} | ||
] | ||
}, | ||
"version": 1 | ||
} |
Binary file added
BIN
+97.7 KB
.../project.xcworkspace/xcuserdata/davidwilliames.xcuserdatad/UserInterfaceState.xcuserstate
Binary file not shown.
78 changes: 78 additions & 0 deletions
78
Desk Controller.xcodeproj/xcshareddata/xcschemes/Desk Controller.xcscheme
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<Scheme | ||
LastUpgradeVersion = "1230" | ||
version = "1.3"> | ||
<BuildAction | ||
parallelizeBuildables = "YES" | ||
buildImplicitDependencies = "YES"> | ||
<BuildActionEntries> | ||
<BuildActionEntry | ||
buildForTesting = "YES" | ||
buildForRunning = "YES" | ||
buildForProfiling = "YES" | ||
buildForArchiving = "YES" | ||
buildForAnalyzing = "YES"> | ||
<BuildableReference | ||
BuildableIdentifier = "primary" | ||
BlueprintIdentifier = "7D93E28325AAB38B00F37364" | ||
BuildableName = "Desk Controller.app" | ||
BlueprintName = "Desk Controller" | ||
ReferencedContainer = "container:Desk Controller.xcodeproj"> | ||
</BuildableReference> | ||
</BuildActionEntry> | ||
</BuildActionEntries> | ||
</BuildAction> | ||
<TestAction | ||
buildConfiguration = "Debug" | ||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB" | ||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB" | ||
shouldUseLaunchSchemeArgsEnv = "YES"> | ||
<Testables> | ||
</Testables> | ||
</TestAction> | ||
<LaunchAction | ||
buildConfiguration = "Debug" | ||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB" | ||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB" | ||
launchStyle = "0" | ||
useCustomWorkingDirectory = "NO" | ||
ignoresPersistentStateOnLaunch = "NO" | ||
debugDocumentVersioning = "YES" | ||
debugServiceExtension = "internal" | ||
allowLocationSimulation = "YES"> | ||
<BuildableProductRunnable | ||
runnableDebuggingMode = "0"> | ||
<BuildableReference | ||
BuildableIdentifier = "primary" | ||
BlueprintIdentifier = "7D93E28325AAB38B00F37364" | ||
BuildableName = "Desk Controller.app" | ||
BlueprintName = "Desk Controller" | ||
ReferencedContainer = "container:Desk Controller.xcodeproj"> | ||
</BuildableReference> | ||
</BuildableProductRunnable> | ||
</LaunchAction> | ||
<ProfileAction | ||
buildConfiguration = "Release" | ||
shouldUseLaunchSchemeArgsEnv = "YES" | ||
savedToolIdentifier = "" | ||
useCustomWorkingDirectory = "NO" | ||
debugDocumentVersioning = "YES"> | ||
<BuildableProductRunnable | ||
runnableDebuggingMode = "0"> | ||
<BuildableReference | ||
BuildableIdentifier = "primary" | ||
BlueprintIdentifier = "7D93E28325AAB38B00F37364" | ||
BuildableName = "Desk Controller.app" | ||
BlueprintName = "Desk Controller" | ||
ReferencedContainer = "container:Desk Controller.xcodeproj"> | ||
</BuildableReference> | ||
</BuildableProductRunnable> | ||
</ProfileAction> | ||
<AnalyzeAction | ||
buildConfiguration = "Debug"> | ||
</AnalyzeAction> | ||
<ArchiveAction | ||
buildConfiguration = "Release" | ||
revealArchiveInOrganizer = "YES"> | ||
</ArchiveAction> | ||
</Scheme> |
6 changes: 6 additions & 0 deletions
6
...ller.xcodeproj/xcuserdata/davidwilliames.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<Bucket | ||
uuid = "E339415D-E368-4208-B379-467B2E7D2686" | ||
type = "1" | ||
version = "2.0"> | ||
</Bucket> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
# Idasen Desk Controller – Mac app | ||
|
||
|
||
This is a Mac Status Bar application for controlling your [IKEA IDÅSEN (Linak) Desk](https://www.ikea.com/au/en/p/idasen-desk-sit-stand-black-beige-s79280979/) | ||
|
||
If you find this at least a little bit useful, why don't you help me out by: | ||
* Starring this project | ||
* Shout me a cup of coffe via [PayPal](https://paypal.me/dtw/5) | ||
* Follow me on Twitter [@davidwilliames](https://twitter.com/davidwilliames) | ||
|
||
--- | ||
|
||
![Animated example](/images/example.gif) | ||
|
||
![Preferences example](/images/preferences_example.png) | ||
|
||
--- | ||
|
||
## Why? | ||
|
||
The best way I've found to get myself to use my sit/stand desk more; is to remove as much friction around moving it as possible. | ||
|
||
The Linak 'Desk Control' mobile app let's you set favourite positions — but then you need to open the app, and press **and hold** the up/down arrow until it get's into position. Having to hold the button the whole time was just a bit annoying for me; and I found myself changing height positions less. | ||
|
||
I found a couple of different solutions across Github; but there were no truly Native Mac apps... until now. | ||
|
||
I'm already on my Mac when sitting/standing at my desk — so why can't I quickly control the desk from here; without needing to open Linak's Desk Control Mobile app or having to use physical controller? | ||
|
||
|
||
## Features | ||
|
||
* Easy access from the Mac Status Bar | ||
* View current height | ||
* Save sit/stand height positions | ||
* Move up/down | ||
* Move to sit/stand position without having to hold down the button | ||
* Automatic launch on startup (configurable in preferences) | ||
* Supports AppleScript to interact with it (e.g. via an [Alfred App](https://www.alfredapp.com) workflow) | ||
|
||
|
||
![Animated example](/images/status_bar_example.png) | ||
![App icon](/images/Icon.png) | ||
|
||
## Getting started | ||
|
||
* Download the 'Desk Controller' App, and move it to your 'Applications' folder | ||
* Double-click to open it | ||
* Now it will show up in your Status Bar | ||
|
||
Other info: | ||
* To access the preferences either right-click on the Status bar icon and click `Preferences` – or after clicking on the icon, click on the settings icon in the bottom right | ||
* To quit the application entirely; right-click on the Status bar icon and click `Quit` | ||
|
||
|
||
## Troublshooting | ||
|
||
* Make sure no other phones / computers currently have one of the 'Desk Control' apps open and connected to your desk, if you do, simply quit that app, and this Desk Controller app should work | ||
* Make sure your Idasen Desk still has the word "Desk" in the name of the device — e.g if you changed its name via Linak's Desk Control mobile app | ||
* If it's still not finding your desk; try resetting your desk; to do this: | ||
1. Lower your desk as low as it goes | ||
2. Now once more hold down the physical controller to lower it even more, after a second or 2 it should jump down and up | ||
3. Now press and hold the 'bluetooth' button on the front of the physical controller, for a few seconds – until the blue light starts blinking | ||
|
||
--- | ||
|
||
## Interacting with AppleScript | ||
|
||
If you want to interact with your Desk via AppleScript; you can talk directly through the 'Desk Controller' mac app. | ||
|
||
This is great for setting up an [Alfred App](https://www.alfredapp.com) workflow | ||
|
||
#### Commands: | ||
|
||
`move "to-sit"`: Will move to the saved 'Sitting position' | ||
|
||
`move "to-stand"`: Will move to the saved 'Standing position' | ||
|
||
`move "up"`: Will move the desk up a tiny bit | ||
|
||
`move "down"`: Will move the desk down a tiny bit | ||
|
||
|
||
So you may have an AppleScript script that looks like this: | ||
``` AppleScript | ||
tell application "Desk Controller" | ||
move "to-sit" | ||
end tell | ||
``` | ||
|
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.