mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-05-19 03:20:21 -07:00
Refer to the tutorial instead of X.D.Extending more often
Essentially, whenever the tutorial actually has decent material on the subject matter. The replacement is roughly done as follows: - logHook → tutorial - keybindings → tutorial, as this is thoroughly covered - manageHook → tutorial + X.D.Extending, as the manageHook stuff the tutorial talks about is a little bit of an afterthought. - X.D.Extending (on its own) → tutorial + X.D.Extending - layoutHook → tutorial + X.D.Extending, as the tutorial, while talking about layouts, doesn't necessarily have a huge focus there. - mouse bindings → leave this alone, as the tutorial does not at all talk about them.
This commit is contained in:
parent
05c4c776af
commit
3d65a6bf72
@ -57,7 +57,7 @@ import XMonad.Prelude
|
||||
-- bindings!)
|
||||
--
|
||||
-- For detailed instructions on editing your key bindings, see
|
||||
-- "XMonad.Doc.Extending#Editing_key_bindings".
|
||||
-- <https://xmonad.org/TUTORIAL.html#customizing-xmonad the tutorial>.
|
||||
|
||||
-- | Create a 'Data.Map.Map' from @String@s to xmonad actions from a
|
||||
-- list of pairs.
|
||||
|
@ -77,7 +77,7 @@ import qualified XMonad.StackSet as W
|
||||
-- > , ((modm .|. shiftMask, xK_v ), killAllOtherCopies) -- @@ Toggle window state back
|
||||
--
|
||||
-- For detailed instructions on editing your key bindings, see
|
||||
-- "XMonad.Doc.Extending#Editing_key_bindings".
|
||||
-- <https://xmonad.org/TUTORIAL.html#customizing-xmonad the tutorial>.
|
||||
|
||||
-- $logHook
|
||||
--
|
||||
|
@ -49,7 +49,7 @@ import Data.Function (on)
|
||||
-- > , ((modm, xK_Tab), cycleRecentWS [xK_Alt_L] xK_Tab xK_grave)
|
||||
--
|
||||
-- For detailed instructions on editing your key bindings, see
|
||||
-- "XMonad.Doc.Extending#Editing_key_bindings".
|
||||
-- <https://xmonad.org/TUTORIAL.html#customizing-xmonad the tutorial>.
|
||||
|
||||
-- | Cycle through most recent workspaces with repeated presses of a key, while
|
||||
-- a modifier key is held down. The recency of workspaces previewed while browsing
|
||||
|
@ -122,7 +122,7 @@ import XMonad.Util.WorkspaceCompare
|
||||
-- > windows . view $ t )
|
||||
--
|
||||
-- For detailed instructions on editing your key bindings, see
|
||||
-- "XMonad.Doc.Extending#Editing_key_bindings".
|
||||
-- <https://xmonad.org/TUTORIAL.html#customizing-xmonad the tutorial>.
|
||||
--
|
||||
-- When using the toggle functions, in order to ensure that the workspace
|
||||
-- to which you switch is the previously viewed workspace, use the
|
||||
|
@ -79,7 +79,7 @@ import Control.Arrow (second)
|
||||
--
|
||||
-- Also, if you use focus follows mouse, you will want to read the section
|
||||
-- on updating the mouse pointer below. For detailed instructions on
|
||||
-- editing your key bindings, see "XMonad.Doc.Extending#Editing_key_bindings".
|
||||
-- editing your key bindings, see <https://xmonad.org/TUTORIAL.html#customizing-xmonad the tutorial>.
|
||||
{- $pointer
|
||||
With FocusFollowsMouse == True, the focus is updated after binding
|
||||
actions, possibly focusing a window you didn't intend to focus. Most
|
||||
|
@ -48,7 +48,7 @@ import XMonad
|
||||
-- > , ((modm, xK_d ), withFocused demanage)
|
||||
--
|
||||
-- For detailed instructions on editing your key bindings, see
|
||||
-- "XMonad.Doc.Extending#Editing_key_bindings".
|
||||
-- <https://xmonad.org/TUTORIAL.html#customizing-xmonad the tutorial>.
|
||||
|
||||
-- | Stop managing the currently focused window.
|
||||
demanage :: Window -> X ()
|
||||
|
@ -40,7 +40,7 @@ import qualified Data.List.NonEmpty as NE
|
||||
-- > , ((modm, xK_Return), dwmpromote)
|
||||
--
|
||||
-- For detailed instructions on editing your key bindings, see
|
||||
-- "XMonad.Doc.Extending#Editing_key_bindings".
|
||||
-- <https://xmonad.org/TUTORIAL.html#customizing-xmonad the tutorial>.
|
||||
|
||||
-- | Swap the focused window with the master window. If focus is in
|
||||
-- the master, swap it with the next window in the stack. Focus
|
||||
|
@ -113,7 +113,7 @@ import qualified XMonad.Util.ExtensibleState as XS
|
||||
-- > , ((modm, xK_slash), shiftToProjectPrompt def)
|
||||
--
|
||||
-- For detailed instructions on editing your key bindings, see
|
||||
-- "XMonad.Doc.Extending#Editing_key_bindings".
|
||||
-- <https://xmonad.org/TUTORIAL.html#customizing-xmonad the tutorial>.
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
type ProjectName = String
|
||||
|
@ -75,7 +75,7 @@ import qualified XMonad.Util.ExtensibleState as XS
|
||||
-- > zip (zip (repeat (modm .|. controlMask)) [xK_1..xK_9]) (map (setWorkspaceIndex) [1..])
|
||||
--
|
||||
-- For detailed instructions on editing your key bindings, see
|
||||
-- "XMonad.Doc.Extending#Editing_key_bindings". See also the documentation for
|
||||
-- <https://xmonad.org/TUTORIAL.html#customizing-xmonad the tutorial>. See also the documentation for
|
||||
-- "XMonad.Actions.CopyWindow", 'windows', 'shift', and 'XPConfig'.
|
||||
|
||||
type WorkspaceTag = String
|
||||
|
@ -38,7 +38,7 @@ import XMonad.StackSet
|
||||
-- will tag the current window to an empty workspace and view it.
|
||||
--
|
||||
-- For detailed instructions on editing your key bindings, see
|
||||
-- "XMonad.Doc.Extending#Editing_key_bindings".
|
||||
-- <https://xmonad.org/TUTORIAL.html#customizing-xmonad the tutorial>.
|
||||
|
||||
-- | Find the first hidden empty workspace in a StackSet. Returns
|
||||
-- Nothing if all workspaces are in use. Function searches currently
|
||||
|
@ -39,7 +39,7 @@ import XMonad.Prelude (fi)
|
||||
-- > , ((modm, xK_a ), withFocused (keysMoveWindowTo (512,384) (1%2,1%2)))
|
||||
--
|
||||
-- For detailed instructions on editing your key bindings, see
|
||||
-- "XMonad.Doc.Extending#Editing_key_bindings".
|
||||
-- <https://xmonad.org/TUTORIAL.html#customizing-xmonad the tutorial>.
|
||||
|
||||
-- | @keysMoveWindow (dx, dy)@ moves the window by @dx@ pixels to the
|
||||
-- right and @dy@ pixels down.
|
||||
|
@ -53,7 +53,7 @@ import XMonad.Actions.AfterDrag
|
||||
-- > , ((modm .|. shiftMask, xK_Down), withFocused $ snapGrow D Nothing)
|
||||
--
|
||||
-- For detailed instructions on editing your key bindings, see
|
||||
-- "XMonad.Doc.Extending#Editing_key_bindings".
|
||||
-- <https://xmonad.org/TUTORIAL.html#customizing-xmonad the tutorial>.
|
||||
--
|
||||
-- And possibly add appropriate mouse bindings, for example:
|
||||
--
|
||||
|
@ -36,7 +36,7 @@ import XMonad.StackSet
|
||||
-- > | (i, k) <- zip [0 .. 8] [xK_1 ..]]
|
||||
--
|
||||
-- For detailed instructions on editing your key bindings, see
|
||||
-- "XMonad.Doc.Extending#Editing_key_bindings".
|
||||
-- <https://xmonad.org/TUTORIAL.html#customizing-xmonad the tutorial>.
|
||||
|
||||
-- | Give focus to the nth window of the current workspace.
|
||||
focusNth :: Int -> X ()
|
||||
|
@ -58,7 +58,7 @@ import qualified Data.Map as M
|
||||
-- > , (i, k) <- zip (XMonad.workspaces conf) [xK_1 .. xK_9]]
|
||||
--
|
||||
-- For detailed instructions on editing your key bindings, see
|
||||
-- "XMonad.Doc.Extending#Editing_key_bindings".
|
||||
-- <https://xmonad.org/TUTORIAL.html#customizing-xmonad the tutorial>.
|
||||
|
||||
data MessageConfig = MessageConfig { messageFunction :: ScreenId -> [Char] -> [Char] -> [Char] -> X()
|
||||
, foreground :: [Char]
|
||||
|
@ -50,9 +50,9 @@ import XMonad.Util.XUtils
|
||||
--
|
||||
-- > main = xmonad def { layoutHook = myLayout }
|
||||
--
|
||||
-- For more detailed instructions on editing the layoutHook see:
|
||||
--
|
||||
-- "XMonad.Doc.Extending#Editing_the_layout_hook"
|
||||
-- For more detailed instructions on editing the layoutHook see
|
||||
-- <https://xmonad.org/TUTORIAL.html#customizing-xmonad the tutorial> and
|
||||
-- "XMonad.Doc.Extending#Editing_the_layout_hook".
|
||||
|
||||
mouseResize :: l a -> ModifiedLayout MouseResize l a
|
||||
mouseResize = ModifiedLayout (MR [])
|
||||
|
@ -161,7 +161,7 @@ import XMonad.Util.Types
|
||||
--
|
||||
-- For detailed instruction on editing the key binding see:
|
||||
--
|
||||
-- "XMonad.Doc.Extending#Editing_key_bindings".
|
||||
-- <https://xmonad.org/TUTORIAL.html#customizing-xmonad the tutorial>.
|
||||
|
||||
-- $finer_points
|
||||
-- #Finer_Points#
|
||||
|
@ -183,4 +183,4 @@ toggleOrView' f i st = fromMaybe (f i st) $ do
|
||||
-- where 0 is the first screen and \"1\" the workspace with the tag \"1\".
|
||||
--
|
||||
-- For detailed instructions on editing your key bindings, see
|
||||
-- "XMonad.Doc.Extending#Editing_key_bindings".
|
||||
-- <https://xmonad.org/TUTORIAL.html#customizing-xmonad the tutorial>.
|
||||
|
@ -32,7 +32,7 @@ import XMonad.StackSet as S
|
||||
-- > ,((0, xK_F2), bindByLayout [("Tall", spawn "rxvt"), ("Mirror Tall", spawn "xeyes"), ("", spawn "xmessage hello")])
|
||||
--
|
||||
-- For detailed instructions on editing your key bindings, see
|
||||
-- "XMonad.Doc.Extending#Editing_key_bindings".
|
||||
-- <https://xmonad.org/TUTORIAL.html#customizing-xmonad the tutorial>.
|
||||
|
||||
-- | Uses supplied function to decide which action to run depending on current layout name.
|
||||
chooseActionByLayout :: (String->X()) -> X()
|
||||
|
@ -41,7 +41,7 @@ import XMonad
|
||||
-- doThisIfTheOthersFail)]@.
|
||||
--
|
||||
-- For detailed instructions on editing your key bindings, see
|
||||
-- "XMonad.Doc.Extending#Editing_key_bindings".
|
||||
-- <https://xmonad.org/TUTORIAL.html#customizing-xmonad the tutorial>.
|
||||
|
||||
-- | Run an action if a Query holds true. Doesn't stop at the first one that
|
||||
-- does, however, and could potentially run all actions.
|
||||
|
@ -32,7 +32,7 @@ import XMonad.StackSet as S
|
||||
-- > ,((0, xK_F2), bindOn [("1", spawn "rxvt"), ("2", spawn "xeyes"), ("", spawn "xmessage hello")])
|
||||
--
|
||||
-- For detailed instructions on editing your key bindings, see
|
||||
-- "XMonad.Doc.Extending#Editing_key_bindings".
|
||||
-- <https://xmonad.org/TUTORIAL.html#customizing-xmonad the tutorial>.
|
||||
|
||||
-- | Uses supplied function to decide which action to run depending on current workspace name.
|
||||
chooseAction :: (String->X()) -> X()
|
||||
|
@ -65,7 +65,7 @@ Example usage in your @~\/.xmonad\/xmonad.hs@ file:
|
||||
> , (f, mask) <- [(viewScreen def, 0), (sendToScreen def, shiftMask)]]
|
||||
|
||||
For detailed instructions on editing your key bindings, see
|
||||
"XMonad.Doc.Extending#Editing_key_bindings".
|
||||
<https://xmonad.org/TUTORIAL.html#customizing-xmonad the tutorial>.
|
||||
-}
|
||||
|
||||
-- | The type of the index of a screen by location
|
||||
|
@ -59,7 +59,7 @@ import XMonad.Util.Run
|
||||
-- > myNewKeys (XConfig {modMask = modm}) = planeKeys modm (Lines 3) Finite
|
||||
--
|
||||
-- For detailed instructions on editing your key bindings, see
|
||||
-- "XMonad.Doc.Extending#Editing_key_bindings".
|
||||
-- <https://xmonad.org/TUTORIAL.html#customizing-xmonad the tutorial>.
|
||||
|
||||
-- | Direction to go in the plane.
|
||||
data Direction = ToLeft | ToUp | ToRight | ToDown deriving Enum
|
||||
|
@ -37,7 +37,7 @@ import XMonad.StackSet
|
||||
-- > , ((modm, xK_Return), promote)
|
||||
--
|
||||
-- For detailed instructions on editing your key bindings, see
|
||||
-- "XMonad.Doc.Extending#Editing_key_bindings".
|
||||
-- <https://xmonad.org/TUTORIAL.html#customizing-xmonad the tutorial>.
|
||||
|
||||
-- | Move the focused window to the master pane. All other windows
|
||||
-- retain their order. If focus is in the master, swap it with the
|
||||
|
@ -39,7 +39,7 @@ import XMonad.Prelude
|
||||
-- TwoPane layout (see "XMonad.Layout.TwoPane").
|
||||
--
|
||||
-- For detailed instructions on editing your key bindings, see
|
||||
-- "XMonad.Doc.Extending#Editing_key_bindings".
|
||||
-- <https://xmonad.org/TUTORIAL.html#customizing-xmonad the tutorial>.
|
||||
|
||||
-- | Rotate the windows in the current stack, excluding the first one
|
||||
-- (master).
|
||||
|
@ -35,7 +35,7 @@ import XMonad.Util.Run
|
||||
-- In this example, a popup date menu will now be bound to @mod-d@.
|
||||
--
|
||||
-- For detailed instructions on editing your key bindings, see
|
||||
-- "XMonad.Doc.Extending#Editing_key_bindings".
|
||||
-- <https://xmonad.org/TUTORIAL.html#customizing-xmonad the tutorial>.
|
||||
|
||||
date :: X ()
|
||||
date = unsafeSpawn "(date; sleep 10) | dzen2"
|
||||
|
@ -32,4 +32,4 @@ import XMonad.Actions.WithAll (sinkAll)
|
||||
-- > , ((modm .|. shiftMask, xK_t), sinkAll)
|
||||
--
|
||||
-- For detailed instructions on editing your key bindings, see
|
||||
-- "XMonad.Doc.Extending#Editing_key_bindings".
|
||||
-- <https://xmonad.org/TUTORIAL.html#customizing-xmonad the tutorial>.
|
||||
|
@ -63,7 +63,7 @@ import XMonad.Util.Process (getPPIDChain)
|
||||
-- the spawned application(e.g. float or resize it).
|
||||
--
|
||||
-- For detailed instructions on editing your key bindings, see
|
||||
-- "XMonad.Doc.Extending#Editing_key_bindings".
|
||||
-- <https://xmonad.org/TUTORIAL.html#customizing-xmonad the tutorial>.
|
||||
|
||||
newtype Spawner = Spawner {pidsRef :: [(ProcessID, ManageHook)]}
|
||||
|
||||
|
@ -56,7 +56,7 @@ because that is a special value passed to XGrabKey() and not an actual
|
||||
modifier.
|
||||
|
||||
For detailed instructions on editing your key bindings, see
|
||||
"XMonad.Doc.Extending#Editing_key_bindings".
|
||||
<https://xmonad.org/TUTORIAL.html#customizing-xmonad the tutorial>.
|
||||
|
||||
-}
|
||||
|
||||
|
@ -44,7 +44,7 @@ import XMonad.Util.WorkspaceCompare
|
||||
-- will swap workspaces 1 and 5.
|
||||
--
|
||||
-- For detailed instructions on editing your key bindings, see
|
||||
-- "XMonad.Doc.Extending#Editing_key_bindings".
|
||||
-- <https://xmonad.org/TUTORIAL.html#customizing-xmonad the tutorial>.
|
||||
|
||||
-- | Swaps the currently focused workspace with the given workspace tag, via
|
||||
-- @swapWorkspaces@.
|
||||
|
@ -64,7 +64,7 @@ econst = const . return
|
||||
-- the tags \"a\" and \"b\" but not \"a b\".
|
||||
--
|
||||
-- For detailed instructions on editing your key bindings, see
|
||||
-- "XMonad.Doc.Extending#Editing_key_bindings".
|
||||
-- <https://xmonad.org/TUTORIAL.html#customizing-xmonad the tutorial>.
|
||||
|
||||
-- | set multiple tags for a window at once (overriding any previous tags)
|
||||
setTags :: [String] -> Window -> X ()
|
||||
|
@ -45,7 +45,7 @@ Note that warping to a particular screen may change the focus.
|
||||
-}
|
||||
|
||||
-- For detailed instructions on editing your key bindings, see
|
||||
-- "XMonad.Doc.Extending#Editing_key_bindings".
|
||||
-- <https://xmonad.org/TUTORIAL.html#customizing-xmonad the tutorial>.
|
||||
|
||||
|
||||
data Corner = UpperLeft | UpperRight | LowerLeft | LowerRight
|
||||
|
@ -46,7 +46,7 @@ import XMonad.Util.NamedWindows (getName, getNameWMClass)
|
||||
-- > , ((modm .|. shiftMask, xK_b ), bringMenu)
|
||||
--
|
||||
-- For detailed instructions on editing your key bindings, see
|
||||
-- "XMonad.Doc.Extending#Editing_key_bindings".
|
||||
-- <https://xmonad.org/TUTORIAL.html#customizing-xmonad the tutorial>.
|
||||
|
||||
data WindowBringerConfig = WindowBringerConfig
|
||||
{ menuCommand :: String -- ^ The shell command that will handle window selection
|
||||
|
@ -66,7 +66,8 @@ appropriate one, or cover your bases by using instead something like:
|
||||
> (className =? "Firefox" <||> className =? "Firefox-bin")
|
||||
|
||||
For detailed instructions on editing your key bindings, see
|
||||
"XMonad.Doc.Extending#Editing_key_bindings". -}
|
||||
<https://xmonad.org/TUTORIAL.html#customizing-xmonad the tutorial>.
|
||||
-}
|
||||
|
||||
-- | Get the list of workspaces sorted by their tag
|
||||
workspacesSorted :: Ord i => W.StackSet i l a s sd -> [W.Workspace i l a]
|
||||
|
@ -33,7 +33,7 @@ import XMonad.StackSet
|
||||
-- , ((modm .|. shiftMask, xK_t), sinkAll)
|
||||
--
|
||||
-- For detailed instructions on editing your key bindings, see
|
||||
-- "XMonad.Doc.Extending#Editing_key_bindings".
|
||||
-- <https://xmonad.org/TUTORIAL.html#customizing-xmonad the tutorial>.
|
||||
|
||||
-- | Un-float all floating windows on the current workspace.
|
||||
sinkAll :: X ()
|
||||
|
@ -58,7 +58,7 @@ import XMonad.Actions.OnScreen
|
||||
-- > , (f, m) <- [(Workscreen.viewWorkscreen, 0), (Workscreen.shiftToWorkscreen, shiftMask)]]
|
||||
--
|
||||
-- For detailed instructions on editing your key bindings, see
|
||||
-- "XMonad.Doc.Extending#Editing_key_bindings".
|
||||
-- <https://xmonad.org/TUTORIAL.html#customizing-xmonad the tutorial>.
|
||||
|
||||
|
||||
data Workscreen = Workscreen{workscreenId::Int,workspaces::[WorkspaceId]} deriving (Show)
|
||||
|
@ -88,7 +88,7 @@ import qualified Data.Map as M
|
||||
-- > | (i, k) <- zip workspaces [xK_1 ..]]
|
||||
--
|
||||
-- For detailed instructions on editing your key bindings, see
|
||||
-- "XMonad.Doc.Extending#Editing_key_bindings".
|
||||
-- <https://xmonad.org/TUTORIAL.html#customizing-xmonad the tutorial>.
|
||||
|
||||
|
||||
|
||||
|
@ -91,7 +91,7 @@ import qualified Data.Map as M
|
||||
|
||||
-- $customizing
|
||||
-- To customize a desktop config, modify its fields as is illustrated with
|
||||
-- the default configuration @def@ in "XMonad.Doc.Extending#Extending xmonad".
|
||||
-- the default configuration @def@ in <https://xmonad.org/TUTORIAL.html the tutorial>.
|
||||
|
||||
-- $layouts
|
||||
-- See also "XMonad.Util.EZConfig" for more options for modifying key bindings.
|
||||
|
@ -14,7 +14,9 @@
|
||||
-- <https://xmonad.org/TUTORIAL.html xmonad website>.
|
||||
--
|
||||
-- For more detailed instructions on extending xmonad with the
|
||||
-- xmonad-contrib library, see "XMonad.Doc.Extending".
|
||||
-- xmonad-contrib library, see
|
||||
-- <https://xmonad.org/TUTORIAL.html the tutorial>
|
||||
-- and "XMonad.Doc.Extending".
|
||||
--
|
||||
-----------------------------------------------------------------------------
|
||||
|
||||
|
@ -51,9 +51,8 @@ import System.IO (hPutStrLn
|
||||
-- the key; @mask@ is raw, and @clean@ is what @xmonad@ sees after
|
||||
-- sanitizing it (removing @numberLockMask@, etc.)
|
||||
--
|
||||
-- For more detailed instructions on editing the logHook see:
|
||||
--
|
||||
-- "XMonad.Doc.Extending#The_log_hook_and_external_status_bars"
|
||||
-- For more detailed instructions on editing the logHook see
|
||||
-- <https://xmonad.org/TUTORIAL.html#make-xmonad-and-xmobar-talk-to-each-other the tutorial>.
|
||||
|
||||
-- | Print key events to stderr for debugging
|
||||
debugKeyEvents :: Event -> X All
|
||||
|
@ -47,13 +47,12 @@ import qualified XMonad.StackSet as W
|
||||
-- you will need to have xcompmgr <http://freedesktop.org/wiki/Software/xapps>
|
||||
-- or something similar for this to do anything
|
||||
--
|
||||
-- For more detailed instructions on editing the logHook see:
|
||||
-- For more detailed instructions on editing the logHook see
|
||||
-- <https://xmonad.org/TUTORIAL.html#make-xmonad-and-xmobar-talk-to-each-other the tutorial>.
|
||||
--
|
||||
-- "XMonad.Doc.Extending#The_log_hook_and_external_status_bars"
|
||||
--
|
||||
-- For more detailed instructions on editing the layoutHook see:
|
||||
--
|
||||
-- "XMonad.Doc.Extending#Editing_the_layout_hook"
|
||||
-- For more detailed instructions on editing the layoutHook see
|
||||
-- <https://xmonad.org/TUTORIAL.html#customizing-xmonad the tutorial> and
|
||||
-- "XMonad.Doc.Extending#Editing_the_layout_hook".
|
||||
|
||||
-- | Converts a percentage to the format required for _NET_WM_WINDOW_OPACITY
|
||||
rationalToOpacity :: Integral a => Rational -> a
|
||||
|
@ -105,9 +105,8 @@ import Graphics.X11.Xlib.Extras (Event(..))
|
||||
-- aren't running a compositing manager, the opacity will be recorded
|
||||
-- but won't take effect until a compositing manager is started.
|
||||
--
|
||||
-- For more detailed instructions on editing the 'logHook' see:
|
||||
--
|
||||
-- "XMonad.Doc.Extending#The_log_hook_and_external_status_bars"
|
||||
-- For more detailed instructions on editing the 'logHook' see
|
||||
-- <https://xmonad.org/TUTORIAL.html#make-xmonad-and-xmobar-talk-to-each-other the tutorial>.
|
||||
--
|
||||
-- For more detailed instructions on editing the 'handleEventHook',
|
||||
-- see:
|
||||
|
@ -83,7 +83,7 @@ import qualified XMonad.StackSet as W
|
||||
-- > layoutHook = avoidStrutsOn [U,L] (tall ||| mirror tall ||| ...)
|
||||
--
|
||||
-- For detailed instructions on editing your key bindings, see
|
||||
-- "XMonad.Doc.Extending#Editing_key_bindings".
|
||||
-- <https://xmonad.org/TUTORIAL.html#customizing-xmonad the tutorial>.
|
||||
--
|
||||
|
||||
-- | Add docks functionality to the given config. See above for an example.
|
||||
|
@ -33,7 +33,7 @@
|
||||
-- fails miserably by guessing absolutely bogus values.
|
||||
--
|
||||
-- For detailed instructions on editing your hooks, see
|
||||
-- "XMonad.Doc.Extending#4".
|
||||
-- <https://xmonad.org/TUTORIAL.html the tutorial> and "XMonad.Doc.Extending".
|
||||
-----------------------------------------------------------------------------
|
||||
|
||||
module XMonad.Hooks.SetWMName (
|
||||
|
@ -66,7 +66,7 @@ import System.Posix.Types ( ProcessID )
|
||||
-- instead of swallowing the window it will merge the child window with the parent. (this does not work with floating windows)
|
||||
--
|
||||
-- For more information on editing your handleEventHook and key bindings,
|
||||
-- see "XMonad.Doc.Extending".
|
||||
-- see <https://xmonad.org/TUTORIAL.html the tutorial> and "XMonad.Doc.Extending".
|
||||
|
||||
-- | Run @action@ iff both parent- and child queries match and the child
|
||||
-- is a child by PID.
|
||||
|
@ -34,9 +34,9 @@ import Data.Ratio
|
||||
-- > myLayout = Accordion ||| Full ||| etc..
|
||||
-- > main = xmonad def { layoutHook = myLayout }
|
||||
--
|
||||
-- For more detailed instructions on editing the layoutHook see:
|
||||
--
|
||||
-- "XMonad.Doc.Extending#Editing_the_layout_hook"
|
||||
-- For more detailed instructions on editing the layoutHook see
|
||||
-- <https://xmonad.org/TUTORIAL.html#customizing-xmonad the tutorial> and
|
||||
-- "XMonad.Doc.Extending#Editing_the_layout_hook".
|
||||
|
||||
data Accordion a = Accordion deriving ( Read, Show )
|
||||
|
||||
|
@ -44,8 +44,9 @@ import qualified Data.Set as S
|
||||
--
|
||||
-- > layoutHook = ... ||| avoidFloats Full ||| ...
|
||||
--
|
||||
-- For more detailed instructions on editing the layoutHook see:
|
||||
-- "XMonad.Doc.Extending#Editing_the_layout_hook"
|
||||
-- For more detailed instructions on editing the layoutHook see
|
||||
-- <https://xmonad.org/TUTORIAL.html#customizing-xmonad the tutorial> and
|
||||
-- "XMonad.Doc.Extending#Editing_the_layout_hook".
|
||||
--
|
||||
-- Then add appropriate key bindings, for example:
|
||||
--
|
||||
@ -54,7 +55,7 @@ import qualified Data.Set as S
|
||||
-- > ,((modm .|. shiftMask .|. controlMask, xK_b), sendMessage (AvoidFloatSet False) >> sendMessage AvoidFloatClearItems)
|
||||
--
|
||||
-- For detailed instructions on editing your key bindings, see
|
||||
-- "XMonad.Doc.Extending#Editing_key_bindings".
|
||||
-- <https://xmonad.org/TUTORIAL.html#customizing-xmonad the tutorial>.
|
||||
--
|
||||
-- Note that this module is incompatible with an old way of configuring
|
||||
-- "XMonad.Actions.FloatSnap". If you are having problems, please update your
|
||||
|
@ -60,9 +60,9 @@ import qualified XMonad.StackSet as W
|
||||
-- > , ((modm, xK_k), focusDown)
|
||||
-- > , ((modm, xK_m), focusMaster)
|
||||
--
|
||||
-- For more detailed instructions on editing the layoutHook see:
|
||||
--
|
||||
-- "XMonad.Doc.Extending#Editing_the_layout_hook"
|
||||
-- For more detailed instructions on editing the layoutHook see
|
||||
-- <https://xmonad.org/TUTORIAL.html#customizing-xmonad the tutorial> and
|
||||
-- "XMonad.Doc.Extending#Editing_the_layout_hook".
|
||||
|
||||
|
||||
data BoringMessage = FocusUp | FocusDown | FocusMaster | IsBoring Window | ClearBoring
|
||||
|
@ -38,7 +38,9 @@ import XMonad.Prelude (fi)
|
||||
--
|
||||
-- > myLayoutHook = centeredIfSingle 0.7 0.8 Grid ||| ...
|
||||
--
|
||||
-- For more information on configuring your layouts see "XMonad.Doc.Extending".
|
||||
-- For more information on configuring your layouts see
|
||||
-- <https://xmonad.org/TUTORIAL.html#customizing-xmonad the tutorial>
|
||||
-- and "XMonad.Doc.Extending".
|
||||
|
||||
|
||||
-- | Layout Modifier that places a window in the center of the screen,
|
||||
|
@ -35,9 +35,9 @@ import XMonad.StackSet (integrate, peek)
|
||||
-- > myLayout = Circle ||| Full ||| etc..
|
||||
-- > main = xmonad def { layoutHook = myLayout }
|
||||
--
|
||||
-- For more detailed instructions on editing the layoutHook see:
|
||||
--
|
||||
-- "XMonad.Doc.Extending#Editing_the_layout_hook"
|
||||
-- For more detailed instructions on editing the layoutHook see
|
||||
-- <https://xmonad.org/TUTORIAL.html#customizing-xmonad the tutorial> and
|
||||
-- "XMonad.Doc.Extending#Editing_the_layout_hook".
|
||||
|
||||
data Circle a = Circle deriving ( Read, Show )
|
||||
|
||||
|
@ -40,9 +40,9 @@ import qualified XMonad.StackSet as W ( differentiate )
|
||||
--
|
||||
-- to your layouts.
|
||||
--
|
||||
-- For more detailed instructions on editing the layoutHook see:
|
||||
--
|
||||
-- "XMonad.Doc.Extending#Editing_the_layout_hook"
|
||||
-- For more detailed instructions on editing the layoutHook see
|
||||
-- <https://xmonad.org/TUTORIAL.html#customizing-xmonad the tutorial> and
|
||||
-- "XMonad.Doc.Extending#Editing_the_layout_hook".
|
||||
--
|
||||
-- combineTwo is a new simple layout combinator. It allows the
|
||||
-- combination of two layouts using a third to split the screen
|
||||
@ -57,7 +57,7 @@ import qualified XMonad.StackSet as W ( differentiate )
|
||||
-- > , ((modm .|. controlMask .|. shiftMask, xK_Down ), sendMessage $ Move D)
|
||||
--
|
||||
-- For detailed instruction on editing the key binding see
|
||||
-- "XMonad.Doc.Extending#Editing_key_bindings".
|
||||
-- <https://xmonad.org/TUTORIAL.html#customizing-xmonad the tutorial>.
|
||||
--
|
||||
-- These bindings will move a window into the sublayout that is
|
||||
-- up\/down\/left\/right of its current position. Note that there is some
|
||||
|
@ -44,9 +44,9 @@ import qualified XMonad.StackSet as W
|
||||
-- to your layouts. This way all windows with class = \"Firefox\" will always go
|
||||
-- to the left pane, all others - to the right.
|
||||
--
|
||||
-- For more detailed instructions on editing the layoutHook see:
|
||||
--
|
||||
-- "XMonad.Doc.Extending#Editing_the_layout_hook"
|
||||
-- For more detailed instructions on editing the layoutHook see
|
||||
-- <https://xmonad.org/TUTORIAL.html#customizing-xmonad the tutorial> and
|
||||
-- "XMonad.Doc.Extending#Editing_the_layout_hook".
|
||||
--
|
||||
-- 'combineTwoP' is a simple layout combinator based on 'combineTwo' from Combo, with
|
||||
-- addition of a 'Property' which tells where to put new windows. Windows mathing
|
||||
@ -64,7 +64,7 @@ import qualified XMonad.StackSet as W
|
||||
-- > , ((modm .|. controlMask .|. shiftMask, xK_s ), sendMessage $ SwapWindow)
|
||||
--
|
||||
-- For detailed instruction on editing the key binding see
|
||||
-- "XMonad.Doc.Extending#Editing_key_bindings".
|
||||
-- <https://xmonad.org/TUTORIAL.html#customizing-xmonad the tutorial>.
|
||||
|
||||
data SwapWindow = SwapWindow -- ^ Swap window between panes
|
||||
| SwapWindowN Int -- ^ Swap window between panes in the N-th nested ComboP. @SwapWindowN 0@ equals to SwapWindow
|
||||
|
@ -108,9 +108,9 @@ import XMonad.Layout.SimpleFloat
|
||||
--
|
||||
-- > main = xmonad def { layoutHook = someMadLayout }
|
||||
--
|
||||
-- For more detailed instructions on editing the layoutHook see:
|
||||
--
|
||||
-- "XMonad.Doc.Extending#Editing_the_layout_hook"
|
||||
-- For more detailed instructions on editing the layoutHook see
|
||||
-- <https://xmonad.org/TUTORIAL.html#customizing-xmonad the tutorial> and
|
||||
-- "XMonad.Doc.Extending#Editing_the_layout_hook".
|
||||
--
|
||||
-- You can also edit the default theme:
|
||||
--
|
||||
|
@ -36,9 +36,9 @@ import XMonad.Prelude (ap)
|
||||
-- > myLayout = Dishes 2 (1/6) ||| Full ||| etc..
|
||||
-- > main = xmonad def { layoutHook = myLayout }
|
||||
--
|
||||
-- For more detailed instructions on editing the layoutHook see:
|
||||
--
|
||||
-- "XMonad.Doc.Extending#Editing_the_layout_hook"
|
||||
-- For more detailed instructions on editing the layoutHook see
|
||||
-- <https://xmonad.org/TUTORIAL.html#customizing-xmonad the tutorial> and
|
||||
-- "XMonad.Doc.Extending#Editing_the_layout_hook".
|
||||
|
||||
data Dishes a = Dishes Int Rational deriving (Show, Read)
|
||||
instance LayoutClass Dishes a where
|
||||
|
@ -44,9 +44,9 @@ import XMonad.Util.XUtils
|
||||
-- > myLayout = dragPane Horizontal 0.1 0.5 ||| Full ||| etc..
|
||||
-- > main = xmonad def { layoutHook = myLayout }
|
||||
--
|
||||
-- For more detailed instructions on editing the layoutHook see:
|
||||
--
|
||||
-- "XMonad.Doc.Extending#Editing_the_layout_hook"
|
||||
-- For more detailed instructions on editing the layoutHook see
|
||||
-- <https://xmonad.org/TUTORIAL.html#customizing-xmonad the tutorial> and
|
||||
-- "XMonad.Doc.Extending#Editing_the_layout_hook".
|
||||
|
||||
halfHandleWidth :: Integral a => a
|
||||
halfHandleWidth = 1
|
||||
|
@ -68,9 +68,9 @@ import XMonad.Util.Types ( Direction2D(..) )
|
||||
-- 1.1, is the factor by which the third parameter increases or decreases in
|
||||
-- response to Expand or Shrink messages.
|
||||
--
|
||||
-- For more detailed instructions on editing the layoutHook see:
|
||||
--
|
||||
-- "XMonad.Doc.Extending#Editing_the_layout_hook"
|
||||
-- For more detailed instructions on editing the layoutHook see
|
||||
-- <https://xmonad.org/TUTORIAL.html#customizing-xmonad the tutorial> and
|
||||
-- "XMonad.Doc.Extending#Editing_the_layout_hook".
|
||||
|
||||
-- | Layouts with geometrically decreasing window sizes. 'Spiral' and 'Dwindle'
|
||||
-- split the screen into a rectangle for the first window and a rectangle for
|
||||
|
@ -40,9 +40,9 @@ import XMonad.Layout.Decoration
|
||||
-- > myL = dwmStyle shrinkText def (layoutHook def)
|
||||
-- > main = xmonad def { layoutHook = myL }
|
||||
--
|
||||
-- For more detailed instructions on editing the layoutHook see:
|
||||
--
|
||||
-- "XMonad.Doc.Extending#Editing_the_layout_hook"
|
||||
-- For more detailed instructions on editing the layoutHook see
|
||||
-- <https://xmonad.org/TUTORIAL.html#customizing-xmonad the tutorial> and
|
||||
-- "XMonad.Doc.Extending#Editing_the_layout_hook".
|
||||
--
|
||||
-- You can also edit the default configuration options.
|
||||
--
|
||||
|
@ -53,8 +53,8 @@ import XMonad.Layout.LayoutHints
|
||||
-- depending on the size hints (for example for programs like mpv),
|
||||
-- see "XMonad.Layout.LayoutHints"
|
||||
--
|
||||
-- See "XMonad.Doc.Extending#Editing_the_layout_hook" for more info on
|
||||
-- the 'layoutHook'.
|
||||
-- See <https://xmonad.org/TUTORIAL.html#customizing-xmonad the tutorial> and
|
||||
-- "XMonad.Doc.Extending#Editing_the_layout_hook" for more info on the 'layoutHook'.
|
||||
--
|
||||
-- You also want to add keybindings to set and clear the aspect ratio:
|
||||
--
|
||||
@ -73,7 +73,7 @@ import XMonad.Layout.LayoutHints
|
||||
--
|
||||
-- > , ((modMask .|. shiftMask, xK_c), withFocused (sendMessage . ResetRatio) >> kill)
|
||||
--
|
||||
-- See "XMonad.Doc.Extending#Editing_key_bindings" for more info
|
||||
-- See <https://xmonad.org/TUTORIAL.html#customizing-xmonad the tutorial> for more info
|
||||
-- on customizing the keybindings.
|
||||
--
|
||||
-- This layout also comes with a 'ManageHook' 'doFixAspect' to
|
||||
@ -84,7 +84,8 @@ import XMonad.Layout.LayoutHints
|
||||
-- > ...
|
||||
-- > ]
|
||||
--
|
||||
-- Check "XMonad.Doc.Extending#Editing_the_manage_hook" for more information on
|
||||
-- Check <https://xmonad.org/TUTORIAL.html#final-touches the tutorial> and
|
||||
-- "XMonad.Doc.Extending#Editing_the_manage_hook" for more information on
|
||||
-- customizing the manage hook.
|
||||
|
||||
-- | Similar to 'layoutHintsWithReplacement', but relies on the user to
|
||||
|
@ -37,9 +37,9 @@ import qualified XMonad.StackSet as W
|
||||
-- > myLayout = FixedColumn 1 20 80 10 ||| Full ||| etc..
|
||||
-- > main = xmonad def { layoutHook = myLayout }
|
||||
--
|
||||
-- For more detailed instructions on editing the layoutHook see:
|
||||
--
|
||||
-- "XMonad.Doc.Extending#Editing_the_layout_hook"
|
||||
-- For more detailed instructions on editing the layoutHook see
|
||||
-- <https://xmonad.org/TUTORIAL.html#customizing-xmonad the tutorial> and
|
||||
-- "XMonad.Doc.Extending#Editing_the_layout_hook".
|
||||
|
||||
-- | A tiling mode based on preserving a nice fixed width
|
||||
-- window. Supports 'Shrink', 'Expand' and 'IncMasterN'.
|
||||
|
@ -40,9 +40,9 @@ import XMonad.StackSet
|
||||
--
|
||||
-- > myLayout = GridRatio (4/3) ||| etc.
|
||||
--
|
||||
-- For more detailed instructions on editing the layoutHook see:
|
||||
--
|
||||
-- "XMonad.Doc.Extending#Editing_the_layout_hook"
|
||||
-- For more detailed instructions on editing the layoutHook see
|
||||
-- <https://xmonad.org/TUTORIAL.html#customizing-xmonad the tutorial> and
|
||||
-- "XMonad.Doc.Extending#Editing_the_layout_hook".
|
||||
|
||||
data Grid a = Grid | GridRatio Double deriving (Read, Show)
|
||||
|
||||
|
@ -84,8 +84,8 @@ import XMonad.Layout.Simplest
|
||||
-- the "XMonad.Layout.Groups.Helpers" module, which are all
|
||||
-- re-exported by this module.
|
||||
--
|
||||
-- For more information on how to extend your layour hook and key bindings, see
|
||||
-- "XMonad.Doc.Extending".
|
||||
-- For more information on how to extend your layoutHook and key bindings, see
|
||||
-- <https://xmonad.org/TUTORIAL.html the tutorial> and "XMonad.Doc.Extending".
|
||||
|
||||
|
||||
-- * Helper: ZoomRow of Group elements
|
||||
|
@ -83,8 +83,8 @@ import qualified Data.Map as M
|
||||
--
|
||||
-- > import qualified XMonad.Layout.Groups as G
|
||||
--
|
||||
-- For more information on how to extend your layour hook and key bindings, see
|
||||
-- "XMonad.Doc.Extending".
|
||||
-- For more information on how to extend your layoutHook and key bindings, see
|
||||
-- <https://xmonad.org/TUTORIAL.html the tutorial> and "XMonad.Doc.Extending".
|
||||
|
||||
-- ** Layout-generic actions
|
||||
-- #Layout-generic actions#
|
||||
|
@ -79,8 +79,8 @@ import XMonad.Layout.Simplest
|
||||
--
|
||||
-- and so on.
|
||||
--
|
||||
-- For more information on how to extend your layout hook and key bindings, see
|
||||
-- "XMonad.Doc.Extending".
|
||||
-- For more information on how to extend your layoutHook and key bindings, see
|
||||
-- <https://xmonad.org/TUTORIAL.html the tutorial> and "XMonad.Doc.Extending".
|
||||
--
|
||||
-- Finally, you will probably want to be able to move focus and windows
|
||||
-- between groups in a consistent fashion. For this, you should take a look
|
||||
|
@ -46,9 +46,9 @@ import qualified XMonad.StackSet as W
|
||||
-- > myLayout = hiddenWindows (Tall 1 (3/100) (1/2)) ||| Full ||| etc..
|
||||
-- > main = xmonad def { layoutHook = myLayout }
|
||||
--
|
||||
-- For more detailed instructions on editing the layoutHook see:
|
||||
--
|
||||
-- "XMonad.Doc.Extending#Editing_the_layout_hook"
|
||||
-- For more detailed instructions on editing the layoutHook see
|
||||
-- <https://xmonad.org/TUTORIAL.html#customizing-xmonad the tutorial> and
|
||||
-- "XMonad.Doc.Extending#Editing_the_layout_hook".
|
||||
--
|
||||
-- In the key bindings, do something like:
|
||||
--
|
||||
@ -58,7 +58,7 @@ import qualified XMonad.StackSet as W
|
||||
--
|
||||
-- For detailed instruction on editing the key bindings see:
|
||||
--
|
||||
-- "XMonad.Doc.Extending#Editing_key_bindings".
|
||||
-- <https://xmonad.org/TUTORIAL.html#customizing-xmonad the tutorial>.
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
newtype HiddenWindows a = HiddenWindows [Window] deriving (Show, Read)
|
||||
|
@ -51,6 +51,7 @@ infixr 9 .
|
||||
-- > myLayout = GridRatio (4/3) False ||| etc.
|
||||
--
|
||||
-- For more detailed instructions on editing the layoutHook see
|
||||
-- <https://xmonad.org/TUTORIAL.html#customizing-xmonad the tutorial> and
|
||||
-- "XMonad.Doc.Extending#Editing_the_layout_hook".
|
||||
|
||||
-- | Automatic mirroring of hinted layouts doesn't work very well, so this
|
||||
|
@ -46,9 +46,9 @@ import XMonad.Prelude
|
||||
-- built-in Tall with HintedTile, change @import Xmonad@ to
|
||||
-- @import Xmonad hiding (Tall)@.
|
||||
--
|
||||
-- For more detailed instructions on editing the layoutHook see:
|
||||
--
|
||||
-- "XMonad.Doc.Extending#Editing_the_layout_hook"
|
||||
-- For more detailed instructions on editing the layoutHook see
|
||||
-- <https://xmonad.org/TUTORIAL.html#customizing-xmonad the tutorial> and
|
||||
-- "XMonad.Doc.Extending#Editing_the_layout_hook".
|
||||
|
||||
data HintedTile a = HintedTile
|
||||
{ nmaster :: !Int -- ^ number of windows in the master pane
|
||||
|
@ -55,9 +55,9 @@ import Control.Arrow (first)
|
||||
--
|
||||
-- Screenshot: <http://haskell.org/haskellwiki/Image:Xmonad-layout-im.png>
|
||||
--
|
||||
-- For more detailed instructions on editing the layoutHook see:
|
||||
--
|
||||
-- "XMonad.Doc.Extending#Editing_the_layout_hook"
|
||||
-- For more detailed instructions on editing the layoutHook see
|
||||
-- <https://xmonad.org/TUTORIAL.html#customizing-xmonad the tutorial> and
|
||||
-- "XMonad.Doc.Extending#Editing_the_layout_hook".
|
||||
|
||||
-- $hints
|
||||
--
|
||||
|
@ -103,9 +103,9 @@ import XMonad.Util.WindowProperties
|
||||
--
|
||||
-- These examples require "XMonad.Layout.Tabbed".
|
||||
--
|
||||
-- For more detailed instructions on editing the layoutHook see:
|
||||
--
|
||||
-- "XMonad.Doc.Extending#Editing_the_layout_hook"
|
||||
-- For more detailed instructions on editing the layoutHook see
|
||||
-- <https://xmonad.org/TUTORIAL.html#customizing-xmonad the tutorial> and
|
||||
-- "XMonad.Doc.Extending#Editing_the_layout_hook".
|
||||
--
|
||||
-- You may wish to add the following keybindings:
|
||||
--
|
||||
@ -114,7 +114,7 @@ import XMonad.Util.WindowProperties
|
||||
--
|
||||
-- For detailed instruction on editing the key binding see:
|
||||
--
|
||||
-- "XMonad.Doc.Extending#Editing_key_bindings".
|
||||
-- <https://xmonad.org/TUTORIAL.html#customizing-xmonad the tutorial>.
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
-- $selectWin
|
||||
|
@ -61,9 +61,9 @@ import XMonad.Layout.DragPane
|
||||
-- > myLayout = (Tall 1 (3/100) (1/2) *//* Full) ||| (Tall 1 (3/100) (1/2) ***||** Full) ||| Full ||| etc..
|
||||
-- > main = xmonad def { layoutHook = myLayout }
|
||||
--
|
||||
-- For more detailed instructions on editing the @layoutHook@ see:
|
||||
--
|
||||
-- "XMonad.Doc.Extending#Editing_the_layout_hook"
|
||||
-- For more detailed instructions on editing the @layoutHook@ see
|
||||
-- <https://xmonad.org/TUTORIAL.html#customizing-xmonad the tutorial> and
|
||||
-- "XMonad.Doc.Extending#Editing_the_layout_hook".
|
||||
--
|
||||
|
||||
-- $combine
|
||||
|
@ -66,9 +66,9 @@ import qualified Data.Set as Set
|
||||
--
|
||||
-- > myLayout = layoutHintsToCenter (Tall 1 (3/100) (1/2))
|
||||
--
|
||||
-- For more detailed instructions on editing the layoutHook see:
|
||||
--
|
||||
-- "XMonad.Doc.Extending#Editing_the_layout_hook"
|
||||
-- For more detailed instructions on editing the layoutHook see
|
||||
-- <https://xmonad.org/TUTORIAL.html#customizing-xmonad the tutorial> and
|
||||
-- "XMonad.Doc.Extending#Editing_the_layout_hook".
|
||||
--
|
||||
-- To make XMonad reflect changes in window hints immediately, add
|
||||
-- 'hintsEventHook' to your 'handleEventHook'.
|
||||
|
@ -57,7 +57,7 @@ import qualified XMonad.StackSet as W
|
||||
-- > , ((modm .|. controlMask .|. shiftMask, xK_space), rescreen)
|
||||
--
|
||||
-- For detailed instructions on editing your key bindings, see
|
||||
-- "XMonad.Doc.Extending#Editing_key_bindings".
|
||||
-- <https://xmonad.org/TUTORIAL.html#customizing-xmonad the tutorial>.
|
||||
|
||||
-- | Modify all screens.
|
||||
layoutScreens :: LayoutClass l Int => Int -> l Int -> X ()
|
||||
|
@ -56,7 +56,7 @@ import qualified XMonad.StackSet as W
|
||||
-- actions.
|
||||
--
|
||||
-- For detailed instructions on editing your key bindings, see
|
||||
-- "XMonad.Doc.Extending#Editing_key_bindings".
|
||||
-- <https://xmonad.org/TUTORIAL.html#customizing-xmonad the tutorial>.
|
||||
--
|
||||
-- See also 'XMonad.Layout.BoringWindows.boringAuto' for keybindings that skip
|
||||
-- the hidden windows.
|
||||
|
@ -45,9 +45,9 @@ import qualified Data.Map as M
|
||||
-- > main = xmonad def { layoutHook = myLayout,
|
||||
-- > handleEventHook = promoteWarp }
|
||||
--
|
||||
-- For more detailed instructions on editing the layoutHook see:
|
||||
--
|
||||
-- "XMonad.Doc.Extending#Editing_the_layout_hook"
|
||||
-- For more detailed instructions on editing the layoutHook see
|
||||
-- <https://xmonad.org/TUTORIAL.html#customizing-xmonad the tutorial> and
|
||||
-- "XMonad.Doc.Extending#Editing_the_layout_hook".
|
||||
|
||||
-- | Create a new layout which automagically puts the focused window
|
||||
-- in the master area.
|
||||
|
@ -76,9 +76,9 @@ import XMonad.StackSet
|
||||
-- functions in this module are essentially just creative applications
|
||||
-- of it.
|
||||
--
|
||||
-- For more detailed instructions on editing the layoutHook see:
|
||||
--
|
||||
-- "XMonad.Doc.Extending#Editing_the_layout_hook"
|
||||
-- For more detailed instructions on editing the layoutHook see
|
||||
-- <https://xmonad.org/TUTORIAL.html#customizing-xmonad the tutorial> and
|
||||
-- "XMonad.Doc.Extending#Editing_the_layout_hook".
|
||||
--
|
||||
-- Magnifier supports some commands, see 'MagnifyMsg'. To use them add
|
||||
-- something like this to your key bindings:
|
||||
@ -101,7 +101,7 @@ import XMonad.StackSet
|
||||
-- like @Mag.Toggle@, @Mag.magnifier@, and so on.
|
||||
--
|
||||
-- For detailed instruction on editing the key binding see
|
||||
-- "XMonad.Doc.Extending#Editing_key_bindings".
|
||||
-- <https://xmonad.org/TUTORIAL.html#customizing-xmonad the tutorial>.
|
||||
|
||||
-- | Add magnification capabilities to a certain layout.
|
||||
--
|
||||
|
@ -52,6 +52,7 @@ import Control.Arrow (first)
|
||||
-- Grid manage the right half.
|
||||
--
|
||||
-- For more detailed instructions on editing the layoutHook see
|
||||
-- <https://xmonad.org/TUTORIAL.html#customizing-xmonad the tutorial> and
|
||||
-- "XMonad.Doc.Extending#Editing_the_layout_hook".
|
||||
--
|
||||
-- Like 'XMonad.Layout.Tall', 'withMaster' supports the
|
||||
|
@ -46,9 +46,9 @@ import XMonad.Prelude ( partition )
|
||||
-- > myLayout = maximizeWithPadding 10 (Tall 1 (3/100) (1/2)) ||| Full ||| etc..)
|
||||
-- > main = xmonad def { layoutHook = myLayout }
|
||||
--
|
||||
-- For more detailed instructions on editing the layoutHook see:
|
||||
--
|
||||
-- "XMonad.Doc.Extending#Editing_the_layout_hook"
|
||||
-- For more detailed instructions on editing the layoutHook see
|
||||
-- <https://xmonad.org/TUTORIAL.html#customizing-xmonad the tutorial> and
|
||||
-- "XMonad.Doc.Extending#Editing_the_layout_hook".
|
||||
--
|
||||
-- In the key-bindings, do something like:
|
||||
--
|
||||
@ -57,7 +57,7 @@ import XMonad.Prelude ( partition )
|
||||
--
|
||||
-- For detailed instruction on editing the key binding see:
|
||||
--
|
||||
-- "XMonad.Doc.Extending#Editing_key_bindings".
|
||||
-- <https://xmonad.org/TUTORIAL.html#customizing-xmonad the tutorial>.
|
||||
|
||||
data Maximize a = Maximize Dimension (Maybe Window) deriving ( Read, Show )
|
||||
maximize :: LayoutClass l Window => l Window -> ModifiedLayout Maximize l Window
|
||||
|
@ -39,9 +39,9 @@ import qualified XMonad.Util.ExtensibleState as XS
|
||||
-- > myLayout = minimize (Tall 1 (3/100) (1/2)) ||| Full ||| etc..
|
||||
-- > main = xmonad def { layoutHook = myLayout }
|
||||
--
|
||||
-- For more detailed instructions on editing the layoutHook see:
|
||||
--
|
||||
-- "XMonad.Doc.Extending#Editing_the_layout_hook"
|
||||
-- For more detailed instructions on editing the layoutHook see
|
||||
-- <https://xmonad.org/TUTORIAL.html#customizing-xmonad the tutorial> and
|
||||
-- "XMonad.Doc.Extending#Editing_the_layout_hook".
|
||||
--
|
||||
-- The module is designed to work together with "XMonad.Layout.BoringWindows" so
|
||||
-- that minimized windows will be skipped over when switching the focused window with
|
||||
|
@ -58,9 +58,9 @@ import Control.Arrow(second, first)
|
||||
--
|
||||
-- > , ((modm, xK_r), sendMessage Reset)
|
||||
--
|
||||
-- For more detailed instructions on editing the layoutHook see:
|
||||
--
|
||||
-- "XMonad.Doc.Extending#Editing_the_layout_hook"
|
||||
-- For more detailed instructions on editing the layoutHook see
|
||||
-- <https://xmonad.org/TUTORIAL.html#customizing-xmonad the tutorial> and
|
||||
-- "XMonad.Doc.Extending#Editing_the_layout_hook".
|
||||
|
||||
data Aspect
|
||||
= Taller
|
||||
|
@ -48,9 +48,9 @@ import Data.Ratio
|
||||
-- > myLayout = MosaicAlt M.empty ||| Full ||| etc..
|
||||
-- > main = xmonad def { layoutHook = myLayout }
|
||||
--
|
||||
-- For more detailed instructions on editing the layoutHook see:
|
||||
--
|
||||
-- "XMonad.Doc.Extending#Editing_the_layout_hook"
|
||||
-- For more detailed instructions on editing the layoutHook see
|
||||
-- <https://xmonad.org/TUTORIAL.html#customizing-xmonad the tutorial> and
|
||||
-- "XMonad.Doc.Extending#Editing_the_layout_hook".
|
||||
--
|
||||
-- In the key-bindings, do something like:
|
||||
--
|
||||
@ -63,7 +63,7 @@ import Data.Ratio
|
||||
--
|
||||
-- For detailed instruction on editing the key binding see:
|
||||
--
|
||||
-- "XMonad.Doc.Extending#Editing_key_bindings".
|
||||
-- <https://xmonad.org/TUTORIAL.html#customizing-xmonad the tutorial>.
|
||||
|
||||
data HandleWindowAlt =
|
||||
ShrinkWindowAlt Window
|
||||
|
@ -53,9 +53,9 @@ import Graphics.X11 as X
|
||||
-- > main = xmonad def { layoutHook = myLayout }
|
||||
--
|
||||
--
|
||||
-- For more detailed instructions on editing the layoutHook see:
|
||||
--
|
||||
-- "XMonad.Doc.Extending#Editing_the_layout_hook"
|
||||
-- For more detailed instructions on editing the layoutHook see
|
||||
-- <https://xmonad.org/TUTORIAL.html#customizing-xmonad the tutorial> and
|
||||
-- "XMonad.Doc.Extending#Editing_the_layout_hook".
|
||||
--
|
||||
-- You may also want to add the following key bindings:
|
||||
--
|
||||
@ -64,7 +64,7 @@ import Graphics.X11 as X
|
||||
--
|
||||
-- For detailed instruction on editing the key binding see:
|
||||
--
|
||||
-- "XMonad.Doc.Extending#Editing_key_bindings".
|
||||
-- <https://xmonad.org/TUTORIAL.html#customizing-xmonad the tutorial>.
|
||||
|
||||
-- $mrtParameters
|
||||
-- The following functions are also labels for updating the @data@ (whose
|
||||
|
@ -56,9 +56,9 @@ import XMonad.Prelude
|
||||
-- columns, the screen is instead split equally among all columns. Therefore,
|
||||
-- if equal size among all columns are desired, set the size to -0.5.
|
||||
--
|
||||
-- For more detailed instructions on editing the layoutHook see:
|
||||
--
|
||||
-- "XMonad.Doc.Extending#Editing_the_layout_hook"
|
||||
-- For more detailed instructions on editing the layoutHook see
|
||||
-- <https://xmonad.org/TUTORIAL.html#customizing-xmonad the tutorial> and
|
||||
-- "XMonad.Doc.Extending#Editing_the_layout_hook".
|
||||
|
||||
-- | Layout constructor.
|
||||
multiCol
|
||||
|
@ -53,9 +53,9 @@ import XMonad.Prelude (ap)
|
||||
-- > |_______|
|
||||
-- > |___|___|
|
||||
--
|
||||
-- For more detailed instructions on editing the layoutHook see:
|
||||
--
|
||||
-- "XMonad.Doc.Extending#Editing_the_layout_hook"
|
||||
-- For more detailed instructions on editing the layoutHook see
|
||||
-- <https://xmonad.org/TUTORIAL.html#customizing-xmonad the tutorial> and
|
||||
-- "XMonad.Doc.Extending#Editing_the_layout_hook".
|
||||
|
||||
data MultiDishes a = MultiDishes Int Int Rational deriving (Show, Read)
|
||||
instance LayoutClass MultiDishes a where
|
||||
|
@ -37,9 +37,9 @@ import XMonad.Layout.Renamed
|
||||
-- > myLayout = named "real big" Full ||| (nameTail $ named "real big" $ Full) ||| etc..
|
||||
-- > main = xmonad def { layoutHook = myLayout }
|
||||
--
|
||||
-- For more detailed instructions on editing the layoutHook see:
|
||||
--
|
||||
-- "XMonad.Doc.Extending#Editing_the_layout_hook"
|
||||
-- For more detailed instructions on editing the layoutHook see
|
||||
-- <https://xmonad.org/TUTORIAL.html#customizing-xmonad the tutorial> and
|
||||
-- "XMonad.Doc.Extending#Editing_the_layout_hook".
|
||||
--
|
||||
-- Note that this module has been deprecated and may be removed in a future
|
||||
-- release, please use "XMonad.Layout.Renamed" instead.
|
||||
|
@ -54,9 +54,9 @@ import qualified Data.Map as M
|
||||
--
|
||||
-- > layoutHook = ... ||| noBorders Full ||| ...
|
||||
--
|
||||
-- For more detailed instructions on editing the layoutHook see:
|
||||
--
|
||||
-- "XMonad.Doc.Extending#Editing_the_layout_hook"
|
||||
-- For more detailed instructions on editing the layoutHook see
|
||||
-- <https://xmonad.org/TUTORIAL.html#customizing-xmonad the tutorial> and
|
||||
-- "XMonad.Doc.Extending#Editing_the_layout_hook".
|
||||
|
||||
-- todo, use an InvisibleList.
|
||||
data WithBorder a = WithBorder Dimension [a] deriving ( Read, Show )
|
||||
|
@ -55,9 +55,9 @@ import Data.Ratio
|
||||
--
|
||||
-- The ResizableThreeColMid variant places the main window between the slave columns.
|
||||
--
|
||||
-- For more detailed instructions on editing the layoutHook see:
|
||||
--
|
||||
-- "XMonad.Doc.Extending#Editing_the_layout_hook"
|
||||
-- For more detailed instructions on editing the layoutHook see
|
||||
-- <https://xmonad.org/TUTORIAL.html#customizing-xmonad the tutorial> and
|
||||
-- "XMonad.Doc.Extending#Editing_the_layout_hook".
|
||||
|
||||
|
||||
-- | Arguments are nmaster, delta, fraction
|
||||
|
@ -36,9 +36,9 @@ import qualified Data.Map as M
|
||||
-- > myLayout = ResizableTall 1 (3/100) (1/2) [] ||| etc..
|
||||
-- > main = xmonad def { layoutHook = myLayout }
|
||||
--
|
||||
-- For more detailed instructions on editing the layoutHook see:
|
||||
--
|
||||
-- "XMonad.Doc.Extending#Editing_the_layout_hook"
|
||||
-- For more detailed instructions on editing the layoutHook see
|
||||
-- <https://xmonad.org/TUTORIAL.html#customizing-xmonad the tutorial> and
|
||||
-- "XMonad.Doc.Extending#Editing_the_layout_hook".
|
||||
--
|
||||
-- You may also want to add the following key bindings:
|
||||
--
|
||||
@ -47,7 +47,7 @@ import qualified Data.Map as M
|
||||
--
|
||||
-- For detailed instruction on editing the key binding see:
|
||||
--
|
||||
-- "XMonad.Doc.Extending#Editing_key_bindings".
|
||||
-- <https://xmonad.org/TUTORIAL.html#customizing-xmonad the tutorial>.
|
||||
|
||||
data MirrorResize = MirrorShrink | MirrorExpand
|
||||
instance Message MirrorResize
|
||||
|
@ -39,9 +39,9 @@ import XMonad.Layout.Decoration
|
||||
--
|
||||
-- > layoutHook = resizeHorizontal 40 Full
|
||||
--
|
||||
-- For more detailed instructions on editing the layoutHook see:
|
||||
--
|
||||
-- "XMonad.Doc.Extending#Editing_the_layout_hook"
|
||||
-- For more detailed instructions on editing the layoutHook see
|
||||
-- <https://xmonad.org/TUTORIAL.html#customizing-xmonad the tutorial> and
|
||||
-- "XMonad.Doc.Extending#Editing_the_layout_hook".
|
||||
|
||||
resizeHorizontal :: Int -> l a -> ModifiedLayout ResizeScreen l a
|
||||
resizeHorizontal i = ModifiedLayout (ResizeScreen L i)
|
||||
|
@ -36,9 +36,9 @@ import Data.Ratio
|
||||
-- > myLayout = Roledex ||| etc..
|
||||
-- > main = xmonad def { layoutHook = myLayout }
|
||||
--
|
||||
-- For more detailed instructions on editing the layoutHook see:
|
||||
--
|
||||
-- "XMonad.Doc.Extending#Editing_the_layout_hook"
|
||||
-- For more detailed instructions on editing the layoutHook see
|
||||
-- <https://xmonad.org/TUTORIAL.html#customizing-xmonad the tutorial> and
|
||||
-- "XMonad.Doc.Extending#Editing_the_layout_hook".
|
||||
|
||||
-- $screenshot
|
||||
-- <<http://www.timthelion.com/rolodex.png>>
|
||||
|
@ -41,9 +41,9 @@ import XMonad.Util.XUtils
|
||||
-- > myLayout = layoutHook def
|
||||
-- > main = xmonad def { layoutHook = showWName myLayout }
|
||||
--
|
||||
-- For more detailed instructions on editing the layoutHook see:
|
||||
--
|
||||
-- "XMonad.Doc.Extending#Editing_the_layout_hook"
|
||||
-- For more detailed instructions on editing the layoutHook see
|
||||
-- <https://xmonad.org/TUTORIAL.html#customizing-xmonad the tutorial> and
|
||||
-- "XMonad.Doc.Extending#Editing_the_layout_hook".
|
||||
|
||||
-- | A layout modifier to show the workspace name when switching
|
||||
showWName :: l a -> ModifiedLayout ShowWName l a
|
||||
|
@ -42,9 +42,9 @@ import XMonad.Layout.Decoration
|
||||
-- > myL = simpleDeco shrinkText def (layoutHook def)
|
||||
-- > main = xmonad def { layoutHook = myL }
|
||||
--
|
||||
-- For more detailed instructions on editing the layoutHook see:
|
||||
--
|
||||
-- "XMonad.Doc.Extending#Editing_the_layout_hook"
|
||||
-- For more detailed instructions on editing the layoutHook see
|
||||
-- <https://xmonad.org/TUTORIAL.html#customizing-xmonad the tutorial> and
|
||||
-- "XMonad.Doc.Extending#Editing_the_layout_hook".
|
||||
--
|
||||
-- You can also edit the default configuration options.
|
||||
--
|
||||
|
@ -42,9 +42,9 @@ import XMonad.Layout.WindowArranger
|
||||
-- > myLayout = simpleFloat ||| Full ||| etc..
|
||||
-- > main = xmonad def { layoutHook = myLayout }
|
||||
--
|
||||
-- For more detailed instructions on editing the layoutHook see:
|
||||
--
|
||||
-- "XMonad.Doc.Extending#Editing_the_layout_hook"
|
||||
-- For more detailed instructions on editing the layoutHook see
|
||||
-- <https://xmonad.org/TUTORIAL.html#customizing-xmonad the tutorial> and
|
||||
-- "XMonad.Doc.Extending#Editing_the_layout_hook".
|
||||
|
||||
-- | A simple floating layout where every window is placed according
|
||||
-- to the window's initial attributes.
|
||||
|
@ -33,9 +33,9 @@ import qualified XMonad.StackSet as S
|
||||
-- > myLayout = Simplest ||| Full ||| etc..
|
||||
-- > main = xmonad def { layoutHook = myLayout }
|
||||
--
|
||||
-- For more detailed instructions on editing the layoutHook see:
|
||||
--
|
||||
-- "XMonad.Doc.Extending#Editing_the_layout_hook"
|
||||
-- For more detailed instructions on editing the layoutHook see
|
||||
-- <https://xmonad.org/TUTORIAL.html#customizing-xmonad the tutorial> and
|
||||
-- "XMonad.Doc.Extending#Editing_the_layout_hook".
|
||||
|
||||
data Simplest a = Simplest deriving (Show, Read)
|
||||
instance LayoutClass Simplest a where
|
||||
|
@ -37,9 +37,9 @@ import XMonad.Layout.LayoutModifier
|
||||
-- > myLayout = simplestFloat ||| Full ||| etc..
|
||||
-- > main = xmonad def { layoutHook = myLayout }
|
||||
--
|
||||
-- For more detailed instructions on editing the layoutHook see:
|
||||
--
|
||||
-- "XMonad.Doc.Extending#Editing_the_layout_hook"
|
||||
-- For more detailed instructions on editing the layoutHook see
|
||||
-- <https://xmonad.org/TUTORIAL.html#customizing-xmonad the tutorial> and
|
||||
-- "XMonad.Doc.Extending#Editing_the_layout_hook".
|
||||
|
||||
-- | A simple floating layout where every window is placed according
|
||||
-- to the window's initial attributes.
|
||||
|
@ -42,9 +42,9 @@ import XMonad.Util.WindowProperties
|
||||
-- > myLayout = sorted [ClassName "Firefox", ClassName "URxvt"] Grid
|
||||
-- > main = xmonad def { layoutHook = myLayout }
|
||||
--
|
||||
-- For more detailed instructions on editing the layoutHook see:
|
||||
--
|
||||
-- "XMonad.Doc.Extending#Editing_the_layout_hook"
|
||||
-- For more detailed instructions on editing the layoutHook see
|
||||
-- <https://xmonad.org/TUTORIAL.html#customizing-xmonad the tutorial> and
|
||||
-- "XMonad.Doc.Extending#Editing_the_layout_hook".
|
||||
|
||||
|
||||
-- | Modify a layout using a list of properties to sort its windows.
|
||||
|
@ -40,9 +40,9 @@ import XMonad.StackSet ( integrate )
|
||||
-- > myLayout = spiral (6/7) ||| etc..
|
||||
-- > main = xmonad def { layoutHook = myLayout }
|
||||
--
|
||||
-- For more detailed instructions on editing the layoutHook see:
|
||||
--
|
||||
-- "XMonad.Doc.Extending#Editing_the_layout_hook"
|
||||
-- For more detailed instructions on editing the layoutHook see
|
||||
-- <https://xmonad.org/TUTORIAL.html#customizing-xmonad the tutorial> and
|
||||
-- "XMonad.Doc.Extending#Editing_the_layout_hook".
|
||||
|
||||
fibs :: [Integer]
|
||||
fibs = 1 : 1 : zipWith (+) fibs (tail fibs)
|
||||
|
@ -41,7 +41,7 @@ import XMonad.StackSet ( integrate )
|
||||
-- > [(tabbed,3),(tabbed,30),(tabbed,1),(tabbed,1)]
|
||||
|
||||
-- For detailed instructions on editing your key bindings, see
|
||||
-- "XMonad.Doc.Extending#Editing_key_bindings".
|
||||
-- <https://xmonad.org/TUTORIAL.html#customizing-xmonad the tutorial>.
|
||||
|
||||
data Square a = Square deriving ( Read, Show )
|
||||
|
||||
|
@ -36,9 +36,9 @@ import XMonad.Prelude
|
||||
-- > myLayout = StackTile 1 (3/100) (1/2) ||| etc..
|
||||
-- > main = xmonad def { layoutHook = myLayout }
|
||||
--
|
||||
-- For more detailed instructions on editing the layoutHook see:
|
||||
--
|
||||
-- "XMonad.Doc.Extending#Editing_the_layout_hook"
|
||||
-- For more detailed instructions on editing the layoutHook see
|
||||
-- <https://xmonad.org/TUTORIAL.html#customizing-xmonad the tutorial> and
|
||||
-- "XMonad.Doc.Extending#Editing_the_layout_hook".
|
||||
--
|
||||
data StackTile a = StackTile !Int !Rational !Rational deriving (Show, Read)
|
||||
|
||||
|
@ -75,9 +75,9 @@ import System.Posix.Signals
|
||||
-- layoutHook you have to provide manageHook from
|
||||
-- "XMonad.Util.RemoteWindows" module.
|
||||
--
|
||||
-- For more detailed instructions on editing the layoutHook see:
|
||||
--
|
||||
-- "XMonad.Doc.Extending#Editing_the_layout_hook"
|
||||
-- For more detailed instructions on editing the layoutHook see
|
||||
-- <https://xmonad.org/TUTORIAL.html#customizing-xmonad the tutorial> and
|
||||
-- "XMonad.Doc.Extending#Editing_the_layout_hook".
|
||||
|
||||
signalWindow :: Signal -> Window -> X ()
|
||||
signalWindow s w = do
|
||||
|
@ -163,10 +163,9 @@ import qualified Data.Set as S
|
||||
-- could not be used in the keybinding instead? It avoids having to explicitly
|
||||
-- pass the conf.
|
||||
--
|
||||
-- For more detailed instructions, see:
|
||||
--
|
||||
-- "XMonad.Doc.Extending#Editing_the_layout_hook"
|
||||
-- "XMonad.Doc.Extending#Adding_key_bindings"
|
||||
-- For more detailed instructions, see
|
||||
-- <https://xmonad.org/TUTORIAL.html#customizing-xmonad the tutorial>
|
||||
-- and "XMonad.Doc.Extending#Editing_the_layout_hook".
|
||||
|
||||
-- | The main layout modifier arguments:
|
||||
--
|
||||
|
@ -39,9 +39,9 @@ import XMonad.Prompt ( XPPosition (..) )
|
||||
--
|
||||
-- > main = xmonad def { layoutHook = simpleTabBar $ layoutHook def}
|
||||
--
|
||||
-- For more detailed instructions on editing the layoutHook see:
|
||||
--
|
||||
-- "XMonad.Doc.Extending#Editing_the_layout_hook"
|
||||
-- For more detailed instructions on editing the layoutHook see
|
||||
-- <https://xmonad.org/TUTORIAL.html#customizing-xmonad the tutorial> and
|
||||
-- "XMonad.Doc.Extending#Editing_the_layout_hook".
|
||||
--
|
||||
-- 'tabBar' will give you the possibility of setting a custom shrinker
|
||||
-- and a custom theme.
|
||||
|
@ -67,9 +67,9 @@ import XMonad.Util.Types (Direction2D(..))
|
||||
-- on the workspace. To have it always shown, use one of the layouts or
|
||||
-- modifiers ending in @Always@.
|
||||
--
|
||||
-- For more detailed instructions on editing the layoutHook see:
|
||||
--
|
||||
-- "XMonad.Doc.Extending#Editing_the_layout_hook"
|
||||
-- For more detailed instructions on editing the layoutHook see
|
||||
-- <https://xmonad.org/TUTORIAL.html#customizing-xmonad the tutorial> and
|
||||
-- "XMonad.Doc.Extending#Editing_the_layout_hook".
|
||||
--
|
||||
-- You can also edit the default configuration options.
|
||||
--
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user