Skip to content

Instantly share code, notes, and snippets.

@ralt
Created January 16, 2015 13:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ralt/943fe5a9472c8e1b2800 to your computer and use it in GitHub Desktop.
Save ralt/943fe5a9472c8e1b2800 to your computer and use it in GitHub Desktop.
So... my use case is the following: I have 2 screens. And I have ~3-5
windows on each screen. So I want an easy way to go to each window
quickly.
I currently have this in my .stumpwmrc to help with this:
(loop for i from 1 to 9
do (define-key
*top-map*
(kbd (format nil "s-~d" i))
(format nil "select-window-by-number ~d" i)))
It works well... but the problem is that I have to reach Super-8 or 9
quite quickly, which is inconvenient.
I thought about using groups, but the problem is that I mix and match
the windows on each screen, so I don't neccessarily have windows
belonging to *one* group.
I think the best idea I have is to use a single numbering scheme per
screen, but I'm open to suggestions on better workflows.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment