2016-01-06 05:21:55 +00:00
|
|
|
#+TITLE: Eyebrowse layer
|
2015-11-08 18:04:44 +00:00
|
|
|
#+HTML_HEAD_EXTRA: <link rel="stylesheet" type="text/css" href="../../../css/readtheorg.css" />
|
2015-06-10 16:44:30 +00:00
|
|
|
|
|
|
|
[[file:img/eyebrowse.gif]] [[file:img/i3wm.png]]
|
|
|
|
|
2015-10-30 11:20:58 +00:00
|
|
|
* Table of Contents :TOC_4_org:noexport:
|
|
|
|
- [[Description][Description]]
|
|
|
|
- [[Install][Install]]
|
|
|
|
- [[Layer][Layer]]
|
|
|
|
- [[Removing additional help][Removing additional help]]
|
|
|
|
- [[Key bindings][Key bindings]]
|
2015-06-10 16:44:30 +00:00
|
|
|
|
|
|
|
* Description
|
|
|
|
This layer adds [[https://i3wm.org/][i3wm]] like workspaces thanks to the [[https://github.com/wasamasa/eyebrowse][eyebrowse]] package.
|
|
|
|
|
2015-11-09 09:39:16 +00:00
|
|
|
Once the layer is activated a new number is added to the left side of the
|
2015-06-10 16:44:30 +00:00
|
|
|
mode-line. This number corresponds to the currently active workspace number.
|
|
|
|
|
|
|
|
At startup, the workspace number 1 is active. Switching to a workspace will
|
|
|
|
create it if it does not exist. For instance at startup you can press
|
2015-11-09 09:39:16 +00:00
|
|
|
~SPC l w 2~ to create the workspace 2.
|
2015-06-10 16:44:30 +00:00
|
|
|
|
|
|
|
The key bindings are registered in a micro-state displayed in the minibuffer.
|
|
|
|
The docstring of the micro-state displays the existing workspaces and the
|
|
|
|
currently active workspace has square brackets. Since this is a micro-state it
|
2016-01-01 12:16:46 +00:00
|
|
|
is possible to just preview a workspace, for instance press ~SPC l w 2~ to see
|
2015-06-10 16:44:30 +00:00
|
|
|
what's on the workspace 2 then press ~TAB~ to go back to the previously
|
|
|
|
activated workspace.
|
|
|
|
|
|
|
|
It is also possible to give a label to a the current workspace by pressing
|
|
|
|
~r~ in the micro-state.
|
|
|
|
|
|
|
|
* Install
|
|
|
|
** Layer
|
2016-01-06 05:21:55 +00:00
|
|
|
To use this configuration layer, add it to your =~/.spacemacs=. You will need to
|
|
|
|
add =eyebrowse= to the existing =dotspacemacs-configuration-layers= list in this
|
|
|
|
file.
|
2015-06-10 16:44:30 +00:00
|
|
|
|
|
|
|
** Removing additional help
|
|
|
|
Once you know the key bindings to navigate between the workspaces you
|
|
|
|
may want to disable the exhaustive help in the workspace micro-state.
|
|
|
|
Set the variable =eyebrowse-display-help= to =nil=
|
|
|
|
|
|
|
|
#+BEGIN_SRC emacs-lisp
|
|
|
|
(setq-default dotspacemacs-configuration-layers
|
|
|
|
'((eyebrowse :variables eyebrowse-display-help nil)))
|
|
|
|
#+END_SRC
|
|
|
|
|
|
|
|
* Key bindings
|
|
|
|
|
2015-11-09 09:39:16 +00:00
|
|
|
| Key Binding | Description |
|
|
|
|
|-------------------------------------------+------------------------------------|
|
|
|
|
| ~gt~ | go to next workspace |
|
|
|
|
| ~gT~ | got to previous workspace |
|
|
|
|
| ~SPC l w 1~ | create or switch to workspace 1 |
|
|
|
|
| ~SPC l w 2~ | create or switch to workspace 2 |
|
|
|
|
| ~SPC l w 3~ | create or switch to workspace 3 |
|
|
|
|
| ~SPC l w 4~ | create or switch to workspace 4 |
|
|
|
|
| ~SPC l w 5~ | create or switch to workspace 5 |
|
|
|
|
| ~SPC l w 6~ | create or switch to workspace 6 |
|
|
|
|
| ~SPC l w 7~ | create or switch to workspace 7 |
|
|
|
|
| ~SPC l w 8~ | create or switch to workspace 8 |
|
|
|
|
| ~SPC l w 9~ | create or switch to workspace 9 |
|
|
|
|
| ~SPC l w 0~ | create or switch to workspace 0 |
|
|
|
|
| ~SPC l w TAB~ | switch to last active workspace |
|
|
|
|
| ~SPC l w c~ | close current workspace |
|
|
|
|
| ~SPC l w n~ or ~SPC l w l~ | switch to next workspace |
|
|
|
|
| ~SPC l w N~ or ~SPC l w p~ or ~SPC l w h~ | switch to previous workspace |
|
|
|
|
| ~SPC l w r~ | set a tag to the current workspace |
|
|
|
|
| ~SPC l w w~ | switched to tagged workspace |
|