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

Could we have Next / Previous workspace functions ? #68

Closed
CestDiego opened this issue Sep 21, 2015 · 1 comment
Closed

Could we have Next / Previous workspace functions ? #68

CestDiego opened this issue Sep 21, 2015 · 1 comment

Comments

@CestDiego
Copy link

This would be really helpful to have.

CestDiego added a commit to CestDiego/exwm that referenced this issue Sep 21, 2015
Also supports wrapping when there is an overflow. Closes ch11ng#68
CestDiego added a commit to CestDiego/exwm that referenced this issue Sep 21, 2015
Also supports wrapping when there is an overflow. Closes ch11ng#68
@ch11ng
Copy link
Owner

ch11ng commented Sep 22, 2015

It's trivial to implement:

(exwm-input-set-key (kbd "s-<right>")
                    (lambda ()
                      (interactive)
                      (exwm-workspace-switch
                       (if (>= exwm-workspace-current-index
                               (1- exwm-workspace-number))
                           0
                         (1+ exwm-workspace-current-index)))))
(exwm-input-set-key (kbd "s-<left>")
                    (lambda ()
                      (interactive)
                      (exwm-workspace-switch
                       (if (<= exwm-workspace-current-index 0)
                           (1- exwm-workspace-number)
                         (1- exwm-workspace-current-index)))))

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