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

How to disable auto-cycles #66

Closed
exsabuta opened this issue Dec 8, 2020 · 2 comments
Closed

How to disable auto-cycles #66

exsabuta opened this issue Dec 8, 2020 · 2 comments

Comments

@exsabuta
Copy link

exsabuta commented Dec 8, 2020

Hi. Tell me please, how i can disable auto-cycles from the first to the last desktop?

@Elijas
Copy link
Collaborator

Elijas commented Dec 9, 2020

Hi! Thanks for asking.

Two lines are responsible for that. Switching desktop to right:

_switchDesktopToTarget(CurrentDesktop == DesktopCount ? 1 : CurrentDesktop + 1)

Switching desktop to left:
_switchDesktopToTarget(CurrentDesktop == 1 ? DesktopCount : CurrentDesktop - 1)

Change them to these, respectively:

_switchDesktopToTarget(CurrentDesktop == DesktopCount ? CurrentDesktop : CurrentDesktop + 1)
_switchDesktopToTarget(CurrentDesktop == 1 ? CurrentDesktop : CurrentDesktop - 1)

Then reload (shutdown and start again) the script again for the changes to be applied.

Please let us know if it works for you!

@exsabuta
Copy link
Author

exsabuta commented Dec 9, 2020

It works! Thanks!

@exsabuta exsabuta closed this as completed Dec 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants