Skip to content

Commit 8da2deb

Browse files
mikikivelvis kahoro
andauthored
add workflow for editing mouse acceleration (#156)
* add workflow for editing mouse acceleration * remove echo new value * remove echo new value --------- Co-authored-by: elvis kahoro <elvis@warp.dev>
1 parent 31e8569 commit 8da2deb

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
---
2+
# The name of the workflow.
3+
name: MacOS 13+ - Disable/Enabled mouse acceleration
4+
# The corresponding command for the workflow. Any arguments should be surrounded with two curly braces. E.g `command {{arg}}`.
5+
command: |-
6+
echo "old value:"
7+
defaults read -g com.apple.mouse.scaling
8+
defaults write -g com.apple.mouse.scaling -integer {{acceleration_amount}}
9+
# Any tags that the workflow should be categorized with.
10+
tags:
11+
- MacOS
12+
# A description of the workflow.
13+
description: Update mouse acceleration built into MacOS. Returns -1 when disabled. For MacOS 13+
14+
# List of arguments within the command.
15+
arguments:
16+
# Name of the argument within the command. This must exactly match the name of the argument
17+
# within the command (without the curly braces).
18+
- name: acceleration_amount
19+
# The description of the argument.
20+
description: (-1) = disabled, (0-3) = enabled, amount of acceleration
21+
# The default value for the argument.
22+
default_value: -1
23+
# The source URL for where the workflow was generated from, if any.
24+
source_url: "https://productivityspot.com/how-to-turn-off-mac-mouse-acceleration/"
25+
# The author of the workflow.
26+
author: mikikiv
27+
# The valid shells where this workflow should be active. If valid for all shells, this can be left empty.
28+
# See FORMAT.md for the full list of accepted values.
29+
shells: []

0 commit comments

Comments
 (0)