diff --git a/README.md b/README.md index 7da781aa..ded5b79e 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,4 @@ + # SlimHUD - Cyanocitta @@ -7,7 +8,7 @@ Every day you change your volume or brightness and an ugly and unbelievably old ## Features -###Settings +### Settings ## Installation Download the [latest release](https://github.com/AlexPerathoner/SlimHUD/releases/latest). @@ -18,10 +19,10 @@ Launching SlimHud is easy: copy the app into your Application's folder and then 1. Enter Recovery Mode by restarting your mac and holding ⌘+R while it's booting up. 2. Launch the terminal by clicking on Utilities > Terminal. 3. Disable SIP with ```crsutil disable```. -4. Restart your mac and login into your account. -5. Navigate to /System/Library/LaunchAgents/com.apple.OSDUIHelper.plist -6. As com.apple.OSDUIHelper.plist is a read-only file, to modify it, you'll first need to run ```sudo mount -uw; killall Finder``` -7. You can now open com.apple.OSDUIHelper.plist and remove all of the text between \ and \. Save the file. +4. Restart your mac and login into an admin account. +5. Run ```sudo mount -uw /; killall Finder``` in your terminal. +6. Now run ```sudo nano /System/Library/LaunchAgents/com.apple.OSDUIHelper.plist```. +6. Remove all of the text between \ and \. Save the file by hitting control + X, answering yes and hitting return. 8. Re-enter Recovery mode. 9. Enable SIP with ```crsutil enable```. diff --git a/SlimHUD.xcodeproj/xcuserdata/alex.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist b/SlimHUD.xcodeproj/xcuserdata/alex.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist index faf51e7f..9ea81623 100644 --- a/SlimHUD.xcodeproj/xcuserdata/alex.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist +++ b/SlimHUD.xcodeproj/xcuserdata/alex.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist @@ -14,8 +14,8 @@ filePath = "SlimHUD/AppDelegate.swift" startingColumnNumber = "9223372036854775807" endingColumnNumber = "9223372036854775807" - startingLineNumber = "177" - endingLineNumber = "177" + startingLineNumber = "168" + endingLineNumber = "168" landmarkName = "AppDelegate" landmarkType = "3"> @@ -30,8 +30,8 @@ filePath = "SlimHUD/AppDelegate.swift" startingColumnNumber = "9223372036854775807" endingColumnNumber = "9223372036854775807" - startingLineNumber = "168" - endingLineNumber = "168" + startingLineNumber = "158" + endingLineNumber = "158" landmarkName = "AppDelegate" landmarkType = "3"> @@ -46,8 +46,8 @@ filePath = "SlimHUD/AppDelegate.swift" startingColumnNumber = "9223372036854775807" endingColumnNumber = "9223372036854775807" - startingLineNumber = "170" - endingLineNumber = "170" + startingLineNumber = "160" + endingLineNumber = "160" landmarkName = "AppDelegate" landmarkType = "3"> diff --git a/SlimHUD/AppDelegate.swift b/SlimHUD/AppDelegate.swift index 113c5d52..e74336dc 100644 --- a/SlimHUD/AppDelegate.swift +++ b/SlimHUD/AppDelegate.swift @@ -15,6 +15,13 @@ import QuartzCore class AppDelegate: NSObject, NSApplicationDelegate, SettingsWindowControllerDelegate { // MARK: - Settings & setups + var shouldUseAnimation = true { + didSet { + volumeHud.animated = shouldUseAnimation + brightnessHud.animated = shouldUseAnimation + backlightHud.animated = shouldUseAnimation + } + } private let shadowRadius: CGFloat = 20 var disabledColor = NSColor(red: 0.9, green: 0.9, blue: 0.9, alpha: 0.9) var enabledColor = NSColor(red: 0.19, green: 0.5, blue: 0.96, alpha: 0.9) @@ -230,6 +237,7 @@ class AppDelegate: NSObject, NSApplicationDelegate, SettingsWindowControllerDele oldBacklight = getKeyboardBrightness() oldBrightness = getDisplayBrightness() + shouldUseAnimation = settingsController.shouldUseAnimation volumeHud.view = volumeView brightnessHud.view = brightnessView diff --git a/SlimHUD/Settings/SettingsController.swift b/SlimHUD/Settings/SettingsController.swift index 41d03e79..2d55bb73 100644 --- a/SlimHUD/Settings/SettingsController.swift +++ b/SlimHUD/Settings/SettingsController.swift @@ -65,6 +65,12 @@ class SettingsController { setItem(shouldContinuouslyCheck, for: "shouldContinuouslyCheck") } } + var shouldUseAnimation: Bool! = true { + didSet { + setItem(shouldUseAnimation, for: "shouldUseAnimation") + } + } + var barHeight: Int = 218 { didSet { setItem(barHeight, for: "barHeight") @@ -88,6 +94,7 @@ class SettingsController { barHeight = getItem(for: "barHeight", defaultValue: 218) position = Position(rawValue: getItem(for: "position", defaultValue: "left"))! shouldContinuouslyCheck = getItem(for: "shouldContinuouslyCheck", defaultValue: true) + shouldUseAnimation = getItem(for: "shouldUseAnimation", defaultValue: true) } func resetDefaultColors() { diff --git a/SlimHUD/Settings/SettingsWindow.xib b/SlimHUD/Settings/SettingsWindow.xib index e3222404..b9a7e4ad 100644 --- a/SlimHUD/Settings/SettingsWindow.xib +++ b/SlimHUD/Settings/SettingsWindow.xib @@ -9,6 +9,7 @@ + @@ -221,7 +222,7 @@ - + @@ -280,6 +281,9 @@ + + +