How to disable auto-cycles
exsabuta opened this issue · 2 comments
exsabuta commented
Hi. Tell me please, how i can disable auto-cycles from the first to the last desktop?
Elijas commented
Hi! Thanks for asking.
Two lines are responsible for that. Switching desktop to right:
windows-desktop-switcher/desktop_switcher.ahk
Line 154 in 755abfc
Switching desktop to left:
windows-desktop-switcher/desktop_switcher.ahk
Line 161 in 755abfc
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 commented
It works! Thanks!