Created
January 27, 2017 02:53
-
-
Save z3t0/cfdeb78130fcdca721aff3da7c3945f8 to your computer and use it in GitHub Desktop.
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 characters
| function change_to_space(space) | |
| -- already on space | |
| if space == spaces.activeSpace() then | |
| return | |
| end | |
| local new_space = get_spaces()[space] | |
| print("changed") | |
| if new_space ~= nil then | |
| spaces.changeToSpace(new_space) | |
| else | |
| error("space does not exist: " .. tostring(space)) | |
| end | |
| end | |
| function func_change_to_space(index) | |
| print("index" .. index) | |
| return function(index) | |
| return change_to_space(index) | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment