Last active
July 30, 2025 08:15
-
-
Save cmbuckley/c0c39559c2e052c8b218007d0f6aa2a7 to your computer and use it in GitHub Desktop.
Revisions
-
cmbuckley revised this gist
Jul 30, 2025 . No changes.There are no files selected for viewing
-
cmbuckley revised this gist
Jul 30, 2025 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,4 @@ #!/bin/bash # flip scroll direction based on whether a mouse is plugged in defaults write -g com.apple.swipescrolldirection -bool $(ioreg -p IOUSB -w0 | grep -q Mouse && echo false || echo true) -
cmbuckley revised this gist
Jul 30, 2025 . 1 changed file with 1 addition and 2 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,4 @@ #!/bin/bash # flip scroll direction based on whether a mouse is plugged in defaults write -g com.apple.swipescrolldirection -bool $(ioreg -p IOUSB -w0 grep -q Mouse && echo false || echo true) -
cmbuckley revised this gist
Jul 30, 2025 . 1 changed file with 2 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,5 @@ #!/bin/bash # flip scroll direction based on whether a mouse is plugged in defaults write -g com.apple.swipescrolldirection \ -bool $(ioreg -p IOUSB -w0 | sed 's/[^o]*o //; s/@.*$//' | grep -v '^Root.*' | grep -q Mouse && echo false || echo true) -
cmbuckley created this gist
Jul 30, 2025 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,4 @@ #!/bin/bash # flip scroll direction based on whether a mouse is plugged in defaults write -g com.apple.swipescrolldirection -bool $(ioreg -p IOUSB -w0 | sed 's/[^o]*o //; s/@.*$//' | grep -v '^Root.*' | grep -q Mouse && echo false || echo true)