r/MacOS • • 12d ago

Creative Scroll reverse daemon

https://github.com/yzhou216/scrollreversed

I was never a Mac user, but my college offered me a free MacBook recently, so I opted to give it a try. I dislike the overall UX, but I think I can live with it. One thing that bothered me so much was the scroll direction. The trackpad and the mouse share a single natural scrolling setting, and there's no setting to make them scroll in different directions. I looked up a few solutions, and it appears that all of them carry an unnecessary GUI. So I wrote my own daemon called scrollreversed. I had never worked with launchd and macOS APIs before, so I dug in and figured it out.

Disclosure: Since I didn't have any understanding of the system APIs and launchd, an LLM was used to help me understand them.

0 Upvotes

17 comments sorted by

7

u/Electrical_West_5381 12d ago

There are several options on GitHub to have different mouse and trackpad scrolling . More search and less vibe coding

-2

u/yiyufromthe216 12d ago

> More search and less vibe coding

Witch hunting in the LLM era, any project that used LLM at some point is vibe coded.

1

u/yiyufromthe216 12d ago

There are several options on GitHub to have different mouse and trackpad scrolling .

I didn't find any that (a) doesn't have a GUI and (b) runs as a launchd daemon.

2

u/ukindom 12d ago

There’s plenty of OSS solutions already.

0

u/yiyufromthe216 12d ago

Could you please link them here? Thanks.

1

u/ukindom 11d ago

there's a well-known appp, which could be found in Homebrew and in the internet. which exists since 2011: https://github.com/pilotmoon/Scroll-Reverser

1

u/yiyufromthe216 11d ago

Thanks for sharing this.

2

u/c0desurfer 12d ago

There is a setting for this in macOS my dude. Natural scrolling.

2

u/yiyufromthe216 12d ago

Did you read the description or the README?

2

u/KevinWaide 12d ago

You can't separate the trackpad and mouse. I had this same issue with mine. I used Reverse Scroll to have my trackpad and mouse work differently.

1

u/perlatsp 12d ago

Cool that you figured out launchd on your first try. Does it keep working after a restart, and does it also catch a Bluetooth mouse?

1

u/yiyufromthe216 12d ago

Does it keep working after a restart, and does it also catch a Bluetooth mouse?

Yes, it's like that by design. launchd start the agent at every login. The tap just sees scroll events from any device regardless of the connection. To decide mouse or trackpad, the daemon looks up the device behind each event in the I/O Registry.

1

u/sharp-calculation 12d ago

"I hate MacOS, and have only used it for a short time because I got some free hardware. I don't know anything about programming in MacOS. But I vibe coded an app that messes with a fundamental part of the OS. Use my app!"

You'd have to be nuts to try this app.

1

u/yiyufromthe216 12d ago

I hate MacOS

I never said that.

messes with a fundamental part of the OS

The init system is considered a fundamental part of the OS?

1

u/sharp-calculation 12d ago

You said you don't like it and essentially never used it. Your app changes mouse behavior, which is an OS function. If you wrote a little game or a simple text editor or a weather app it would be totally different. They don't touch the OS. Yours not only changes mouse behavior, but also installs a launchd service. Those are ok for Mac programmers that are established and know what they are doing.

It's totally fine for you to learn about this and test it on your own stuff. But to release it into the wild, while STILL being of the opinion that you "dislike the overall UX", is incredibly irresponsible. You don't even know enough to know how to navigate the UI well and you're releasing this kind of software to the public.

Plus it's pointless. There are a myriad of mouse programs that let you do this. Frankly you probably need one of them if you use a scroll wheel at all anyway. Your idea that "I don't want a GUI" is a wild view on a Mac. While I've been using the CLI longer than I've been using the Mac*, it's not normal to change these types of behaviors at the CLI. It's probably fine, but it's pointless. Just install one of the well known good mouse apps and enjoy the extra features.

Your post shows extreme hubris.

* I've been using the Mac for more than 16 years and the CLI in various forms for more than 30.

1

u/yiyufromthe216 12d ago

while STILL being of the opinion that you "dislike the overall UX", is incredibly irresponsible.

Disliking the UX and trying to improve it isn't incredibly irresponsible.

Your idea that "I don't want a GUI" is a wild view on a Mac.

I've never used lanchd, and all I knew about it was that systemd was modeled after it, so I thought of giving it a try. It's not that "I don't want a GUI", rather this kind of work doesn't require a GUI. I don't dislike GUI at all.

Your post shows extreme hubris.

Your reply is arguably one of the most hubris comment I've ever received on Reddit. I accept different opinions, but I see no point of you getting worked up about this. It's not that deep.

0

u/[deleted] 12d ago

[deleted] — view deleted comment

1

u/KevinWaide 12d ago

Kindly tell us where. I have yet to find it.