mirror of
https://github.com/xmonad/xmonad.git
synced 2025-08-05 06:31:54 -07:00
summarise key bindings in a table in Config.hs
This commit is contained in:
68
Config.hs
68
Config.hs
@@ -1,21 +1,51 @@
|
|||||||
module Config where
|
module Config where
|
||||||
|
|
||||||
{-
|
{-
|
||||||
xmonad places each window into a "workspace." Each workspace can have any
|
xmonad bindings follow mostly the dwm/wmii conventions:
|
||||||
number of windows, which you can cycle though with mod-j and mod-k. Windows are
|
|
||||||
either displayed full screen, or tiled. You can toggle the layout mode with
|
|
||||||
mod-space.
|
|
||||||
|
|
||||||
You can switch to workspace N with mod-N. For example, to switch to workspace
|
key combination action
|
||||||
5, you would press mod-5. Similarly, you can move the current window to another
|
|
||||||
workspace with mod-shift-N.
|
|
||||||
|
|
||||||
When running with multiple monitors (Xinerama), each screen has exactly 1
|
mod-shift-return new xterm
|
||||||
workspace visible. When xmonad starts, workspace 1 is on screen 1, workspace 2
|
mod-p launch dmenu
|
||||||
is on screen 2, etc. If you switch to a workspace which is currently visible on
|
mod-shift-p launch gmrun
|
||||||
another screen, xmonad simply switches focus to that screen. If you switch to a
|
|
||||||
workspace which is *not* visible, xmonad replaces the workspace on the
|
mod-space switch tiling mode
|
||||||
*current* screen with the workspace you selected.
|
|
||||||
|
mod-tab raise next window in stack
|
||||||
|
mod-j
|
||||||
|
mod-k
|
||||||
|
|
||||||
|
mod-h resize currently focused window
|
||||||
|
mod-l
|
||||||
|
|
||||||
|
mod-shift-c kill client
|
||||||
|
mod-shift-q exit window manager
|
||||||
|
mod-shift-ctrl-q restart window manager
|
||||||
|
|
||||||
|
mod-return move currently focused window into master position
|
||||||
|
|
||||||
|
mod-1..9 switch to workspace N
|
||||||
|
mod-shift-1..9 move client to workspace N
|
||||||
|
|
||||||
|
mod-w,e,r switch to physical/Xinerama screen 1, 2 or 3.
|
||||||
|
|
||||||
|
xmonad places each window into a "workspace." Each workspace can have
|
||||||
|
any number of windows, which you can cycle though with mod-j and mod-k.
|
||||||
|
Windows are either displayed full screen, tiled horizontally, or tiled
|
||||||
|
vertically. You can toggle the layout mode with mod-space, which will
|
||||||
|
cycle through the available modes.
|
||||||
|
|
||||||
|
You can switch to workspace N with mod-N. For example, to switch to
|
||||||
|
workspace 5, you would press mod-5. Similarly, you can move the current
|
||||||
|
window to another workspace with mod-shift-N.
|
||||||
|
|
||||||
|
When running with multiple monitors (Xinerama), each screen has exactly
|
||||||
|
1 workspace visible. When xmonad starts, workspace 1 is on screen 1,
|
||||||
|
workspace 2 is on screen 2, etc. If you switch to a workspace which is
|
||||||
|
currently visible on another screen, xmonad simply switches focus to
|
||||||
|
that screen. If you switch to a workspace which is *not* visible, xmonad
|
||||||
|
replaces the workspace on the *current* screen with the workspace you
|
||||||
|
selected.
|
||||||
|
|
||||||
For example, if you have the following configuration:
|
For example, if you have the following configuration:
|
||||||
|
|
||||||
@@ -27,11 +57,13 @@ and you wanted to view workspace 7 on screen 1, you would press:
|
|||||||
mod-2 (to select workspace 2, and make screen 1 the current screen)
|
mod-2 (to select workspace 2, and make screen 1 the current screen)
|
||||||
mod-7 (to select workspace 7)
|
mod-7 (to select workspace 7)
|
||||||
|
|
||||||
Since switching to the workspace currently visible on a given screen is such a
|
Since switching to the workspace currently visible on a given screen is
|
||||||
common operation, shortcuts are provided: mod-{w,e,r} switch to the workspace
|
such a common operation, shortcuts are provided: mod-{w,e,r} switch to
|
||||||
currently visible on screens 1, 2, and 3 respectively. Likewise,
|
the workspace currently visible on screens 1, 2, and 3 respectively.
|
||||||
shift-mod-{w,e,r} moves the current window to the workspace on that screen.
|
Likewise, shift-mod-{w,e,r} moves the current window to the workspace on
|
||||||
Using these keys, the above example would become mod-w mod-7.
|
that screen. Using these keys, the above example would become mod-w
|
||||||
|
mod-7.
|
||||||
|
|
||||||
-}
|
-}
|
||||||
|
|
||||||
import Data.Ratio
|
import Data.Ratio
|
||||||
|
Reference in New Issue
Block a user