Config.hs comment formatting/typo

This commit is contained in:
Jason Creighton
2007-04-01 05:57:11 +00:00
parent b22432a8b3
commit b4076c2ac2

View File

@@ -1,36 +1,38 @@
module Config where module Config where
-- 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 xmonad places each window into a "workspace." Each workspace can have any
-- either displayed full screen, or tiled. You can toggle the layout mode with number of windows, which you can cycle though with mod-j and mod-k. Windows are
-- mod-space. 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
-- 5, you would press mod-5. Similarly, you can move the current window to another You can switch to workspace N with mod-N. For example, to switch to workspace
-- workspace with mod-shift-N. 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 When running with multiple monitors (Xinerama), each screen has exactly 1
-- is on screen 2, etc. If you switch to a workspace which is currently visible on workspace visible. When xmonad starts, workspace 1 is on screen 1, workspace 2
-- another screen, xmonad simply switches focus to that screen. If you switch to a is on screen 2, etc. If you switch to a workspace which is currently visible on
-- workspace which is *not* visible, xmonad replaces the workspace on the another screen, xmonad simply switches focus to that screen. If you switch to a
-- *current* screen with the workspace you selected. 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:
-- Screen 1: Workspace 2
-- Screen 2: Workspace 5 (current workspace) Screen 1: Workspace 2
-- Screen 2: Workspace 5 (current workspace)
-- and you wanted to view workspace 7 on screen 1, you would press:
-- 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-7 (to select workspace 7) mod-2 (to select workspace 2, and make screen 1 the current screen)
-- mod-7 (to select workspace 7)
-- Since switching to the workspace currently visible on a given screen is such a
-- common operation, shortcuts are provided: mod-{w,e,r} switch to the workspace Since switching to the workspace currently visible on a given screen is such a
-- currently visible on screens 1, 2, and 3 respectively. Likewise, common operation, shortcuts are provided: mod-{w,e,r} switch to the workspace
-- shift-mod-{w,e,r} moves the current window to the workspace on that screen. currently visible on screens 1, 2, and 3 respectively. Likewise,
-- Using these keys, the above example would become mod-w mod-7. shift-mod-{w,e,r} moves the current window to the workspace on that screen.
Using these keys, the above example would become mod-w mod-7.
-}
import Data.Ratio import Data.Ratio
import Data.Bits import Data.Bits
@@ -94,7 +96,7 @@ keys = M.fromList $
, (f, m) <- [(view, 0), (tag, shiftMask)]] , (f, m) <- [(view, 0), (tag, shiftMask)]]
-- Keybindings to each screen : -- Keybindings to each screen :
-- mod-wer (underneath 123) swtiches to physical/Xinerama screens 1 2 and 3 -- mod-wer (underneath 123) switches to physical/Xinerama screens 1 2 and 3
++ ++
[((m .|. modMask, key), screenWS sc >>= f) [((m .|. modMask, key), screenWS sc >>= f)
| (key, sc) <- zip [xK_w, xK_e, xK_r] [1..] | (key, sc) <- zip [xK_w, xK_e, xK_r] [1..]