From f2e2f656255d7aa4a4427e08e4958e1d4416d854 Mon Sep 17 00:00:00 2001 From: Mikey <46366395+mikikiv@users.noreply.github.com> Date: Thu, 13 Apr 2023 09:43:32 -0700 Subject: [PATCH 1/3] add workflow for editing mouse acceleration --- specs/macos/mac_mouse_acceleration.yaml | 31 +++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 specs/macos/mac_mouse_acceleration.yaml diff --git a/specs/macos/mac_mouse_acceleration.yaml b/specs/macos/mac_mouse_acceleration.yaml new file mode 100644 index 00000000..526b619c --- /dev/null +++ b/specs/macos/mac_mouse_acceleration.yaml @@ -0,0 +1,31 @@ +--- +# The name of the workflow. +name: MacOS 13+ - Disable/Enabled mouse acceleration +# The corresponding command for the workflow. Any arguments should be surrounded with two curly braces. E.g `command {{arg}}`. +command: |- + echo "old value:" + defaults read -g com.apple.mouse.scaling + defaults write -g com.apple.mouse.scaling -integer {{acceleration_amount}} + echo "new value:" + defaults read -g com.apple.mouse.scaling +# Any tags that the workflow should be categorized with. +tags: + - MacOS +# A description of the workflow. +description: Update mouse acceleration built into MacOS. Returns -1 when disabled. For MacOS 13+ +# List of arguments within the command. +arguments: + # Name of the argument within the command. This must exactly match the name of the argument + # within the command (without the curly braces). + - name: acceleration_amount + # The description of the argument. + description: (-1) = disabled, (0-3) = enabled, amount of acceleration + # The default value for the argument. + default_value: -1 +# The source URL for where the workflow was generated from, if any. +source_url: "https://productivityspot.com/how-to-turn-off-mac-mouse-acceleration/" +# The author of the workflow. +author: mikikiv +# The valid shells where this workflow should be active. If valid for all shells, this can be left empty. +# See FORMAT.md for the full list of accepted values. +shells: [] From cee71505e16af817eec0d30e64509aca215b6a0b Mon Sep 17 00:00:00 2001 From: Mikey <46366395+mikikiv@users.noreply.github.com> Date: Tue, 25 Apr 2023 13:19:20 -0700 Subject: [PATCH 2/3] remove echo new value --- specs/macos/mac_mouse_acceleration.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/specs/macos/mac_mouse_acceleration.yaml b/specs/macos/mac_mouse_acceleration.yaml index 526b619c..f403e1c4 100644 --- a/specs/macos/mac_mouse_acceleration.yaml +++ b/specs/macos/mac_mouse_acceleration.yaml @@ -7,7 +7,6 @@ command: |- defaults read -g com.apple.mouse.scaling defaults write -g com.apple.mouse.scaling -integer {{acceleration_amount}} echo "new value:" - defaults read -g com.apple.mouse.scaling # Any tags that the workflow should be categorized with. tags: - MacOS From 3866369b8b19dcbfbc973eaade75e1df1e31c5b6 Mon Sep 17 00:00:00 2001 From: Mikey <46366395+mikikiv@users.noreply.github.com> Date: Tue, 25 Apr 2023 13:19:38 -0700 Subject: [PATCH 3/3] remove echo new value --- specs/macos/mac_mouse_acceleration.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/specs/macos/mac_mouse_acceleration.yaml b/specs/macos/mac_mouse_acceleration.yaml index f403e1c4..1036c745 100644 --- a/specs/macos/mac_mouse_acceleration.yaml +++ b/specs/macos/mac_mouse_acceleration.yaml @@ -6,7 +6,6 @@ command: |- echo "old value:" defaults read -g com.apple.mouse.scaling defaults write -g com.apple.mouse.scaling -integer {{acceleration_amount}} - echo "new value:" # Any tags that the workflow should be categorized with. tags: - MacOS