Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use mouse cursor 'warp' ONLY #45

Closed
samwzlim opened this issue Jun 28, 2021 · 8 comments
Closed

Use mouse cursor 'warp' ONLY #45

samwzlim opened this issue Jun 28, 2021 · 8 comments

Comments

@samwzlim
Copy link

How can I use the 'warp' feature without activating focus follows mouse and autoraise? I would like my mouse cursor to warp to the window when I cmd + tab but do not want the functionality of focus follows mouse and autoraise. Is this possible?

@sbmpost
Copy link
Owner

sbmpost commented Jun 29, 2021

Not currently possible but there is an easy way to get this anyway. You'd simply have to put a comment symbol // where the call to "onTick" is made in the AutoRaise.mm file:

// cppClass->onTick

Then recompile as explained in the readme. I will consider making this configurable with "-delay -1" or something like that. Thanks for reporting and let me know if the above workaround works for you ;-)

@samwzlim
Copy link
Author

Not currently possible but there is an easy way to get this anyway. You'd simply have to put a comment symbol // where the call to "onTick" is made in the AutoRaise.mm file:

// cppClass->onTick

Then recompile as explained in the readme. I will consider making this configurable with "-delay -1" or something like that. Thanks for reporting and let me know if the above workaround works for you ;-)

@sbmpost Hi, so far it's working as long as I run the command in terminal, but when I try to follow the steps to get AutoRaise.app up and running, it opens but nothing happens. The exact step that I'm stuck in is here:

CleanShot 2021-07-10 at 23 45 56@2x

I've managed to create a hidden directory ".AutoRaise", but have no idea how to go about creating the config file. Can you guide me on this? I would really appreciate it :)

@sbmpost
Copy link
Owner

sbmpost commented Jul 12, 2021

Ah! It should be a hidden file called .Autoraise, not a directory. I see how the instructions are a bit unclear in this regard. So what you can do is:

  1. rmdir .AutoRaise
  2. nano .AutoRaise
  3. Add the configuration
  4. CTRL-X to save and exit nano

@samwzlim
Copy link
Author

Ah! It should be a hidden file called .Autoraise, not a directory. I see how the instructions are a bit unclear in this regard. So what you can do is:

  1. rmdir .AutoRaise
  2. nano .AutoRaise
  3. Add the configuration
  4. CTRL-X to save and exit nano

Thanks! It works well :) However, I use multiple users on my mac and can only access Autoraise.app on one user (the one I ran the commands on). On other users, I'm unable to open the app, and it shows this:

CleanShot 2021-07-13 at 12 34 01@2x

Do you know what I should do to circumvent this? Once again, thanks for your help!

@sbmpost
Copy link
Owner

sbmpost commented Jul 13, 2021

This can be several things as noted here:

https://stackoverflow.com/questions/64842819/cant-run-app-because-of-permission-in-big-sur/64895860#64895860

I guess you can try these commands from the terminal:

sudo xattr -dr com.apple.quarantine /Applications/AutoRaise.app
sudo chmod 755 /Applications/AutoRaise.app

If you don't have the administrator password, you can also just try:

chmod 755 /Applications/AutoRaise.app

Note also the following:

  1. The create-app-bundle.sh script is called by make and contains the line: chmod 700 AutoRaise.

You might want to edit that script and use 755 instead. Of course you would have to run "make clean && make install" again afterwards.

  1. If it works, the next step would be to create a .AutoRaise file for each user in their home folders.

@sbmpost
Copy link
Owner

sbmpost commented Jul 14, 2021

@samwzlim Hi there!

I added the "warp only" functionality to the master branch and also made sure the produced app can be run by multiple users (applying the 755 change as described above).

So all you have to do, is check out the master branch, recompile and "make install" (see the README). To specify you want "warp only", simply set delay=0 in your configuration file.

@samwzlim
Copy link
Author

@sbmpost Thank you so much! Everything is now working as expected!

@sbmpost
Copy link
Owner

sbmpost commented Jul 17, 2021

@samwzlim cool that this is working as expected and thanks for reporting! :)

@sbmpost sbmpost closed this as completed Jul 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants