mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-05-18 19:10:21 -07:00
Merge pull request #859 from slotThe/kill-dots
`~/.xmonad/xmonad.hs` -> `xmonad.hs`
This commit is contained in:
commit
82e4260084
@ -24,7 +24,7 @@ import XMonad
|
||||
import Data.Time (NominalDiffTime, diffUTCTime, getCurrentTime)
|
||||
|
||||
-- $usage
|
||||
-- You can use this module with the following in your @~\/.xmonad\/xmonad.hs@:
|
||||
-- You can use this module with the following in your @xmonad.hs@:
|
||||
--
|
||||
-- > import XMonad.Actions.AfterDrag
|
||||
--
|
||||
|
@ -29,7 +29,7 @@ import System.Exit
|
||||
|
||||
-- $usage
|
||||
--
|
||||
-- You can use this module with the following in your @~\/.xmonad\/xmonad.hs@:
|
||||
-- You can use this module with the following in your @xmonad.hs@:
|
||||
--
|
||||
-- > import XMonad.Hooks.ServerMode
|
||||
-- > import XMonad.Actions.BluetileCommands
|
||||
|
@ -37,7 +37,7 @@ import XMonad.Prelude
|
||||
|
||||
-- $usage
|
||||
--
|
||||
-- You can use this module with the following in your @~\/.xmonad\/xmonad.hs@:
|
||||
-- You can use this module with the following in your @xmonad.hs@:
|
||||
--
|
||||
-- > import XMonad.Actions.Commands
|
||||
--
|
||||
|
@ -26,7 +26,7 @@ import XMonad
|
||||
|
||||
-- $usage
|
||||
--
|
||||
-- You can use this module with the following in your @~\/.xmonad\/xmonad.hs@:
|
||||
-- You can use this module with the following in your @xmonad.hs@:
|
||||
--
|
||||
-- > import qualified XMonad.Actions.ConstrainedResize as Sqr
|
||||
--
|
||||
|
@ -37,7 +37,7 @@ import qualified XMonad.StackSet as W
|
||||
|
||||
-- $usage
|
||||
--
|
||||
-- You can use this module with the following in your @~\/.xmonad\/xmonad.hs@ file:
|
||||
-- You can use this module with the following in your @xmonad.hs@ file:
|
||||
--
|
||||
-- > import XMonad.Actions.CopyWindow
|
||||
--
|
||||
|
@ -47,7 +47,7 @@ import Data.Function (on)
|
||||
import Control.Monad.State (lift)
|
||||
|
||||
-- $usage
|
||||
-- You can use this module with the following in your @~\/.xmonad\/xmonad.hs@ file:
|
||||
-- You can use this module with the following in your @xmonad.hs@ file:
|
||||
--
|
||||
-- > import XMonad.Actions.CycleRecentWS
|
||||
-- >
|
||||
|
@ -23,7 +23,7 @@ import XMonad.Prelude (elemIndex, fromMaybe)
|
||||
import qualified XMonad.StackSet as S
|
||||
|
||||
-- $usage
|
||||
-- You can use this module with the following in your @~\/.xmonad\/xmonad.hs@:
|
||||
-- You can use this module with the following in your @xmonad.hs@:
|
||||
--
|
||||
-- > import XMonad
|
||||
-- > import XMonad.Actions.CycleSelectedLayouts
|
||||
|
@ -92,7 +92,7 @@ import XMonad.Util.Types
|
||||
import XMonad.Util.WorkspaceCompare
|
||||
|
||||
-- $usage
|
||||
-- You can use this module with the following in your @~\/.xmonad\/xmonad.hs@ file:
|
||||
-- You can use this module with the following in your @xmonad.hs@ file:
|
||||
--
|
||||
-- > import XMonad.Actions.CycleWS
|
||||
-- >
|
||||
|
@ -64,7 +64,7 @@ import Control.Arrow (second)
|
||||
import Control.Monad.Trans (lift)
|
||||
|
||||
-- $usage
|
||||
-- You can use this module with the following in your @~\/.xmonad\/xmonad.hs@ file:
|
||||
-- You can use this module with the following in your @xmonad.hs@ file:
|
||||
--
|
||||
-- > import XMonad.Actions.CycleWindows
|
||||
-- > -- config
|
||||
|
@ -39,7 +39,7 @@ import qualified XMonad.StackSet as W
|
||||
import XMonad
|
||||
|
||||
-- $usage
|
||||
-- To use demanage, add this import to your @~\/.xmonad\/xmonad.hs@:
|
||||
-- To use demanage, add this import to your @xmonad.hs@:
|
||||
--
|
||||
-- > import XMonad.Actions.DeManage
|
||||
--
|
||||
|
@ -31,7 +31,7 @@ import qualified Data.List.NonEmpty as NE
|
||||
|
||||
-- $usage
|
||||
--
|
||||
-- You can use this module with the following in your @~\/.xmonad\/xmonad.hs@:
|
||||
-- You can use this module with the following in your @xmonad.hs@:
|
||||
--
|
||||
-- > import XMonad.Actions.DwmPromote
|
||||
--
|
||||
|
@ -51,7 +51,7 @@ import qualified XMonad.Util.ExtensibleState as XS
|
||||
import XMonad.Actions.TopicSpace
|
||||
|
||||
-- $usage
|
||||
-- You can use this module by importing it into your ~\/.xmonad\/xmonad.hs file:
|
||||
-- You can use this module by importing it into your @xmonad.hs@ file:
|
||||
--
|
||||
-- > import XMonad.Actions.DynamicWorkspaceGroups
|
||||
--
|
||||
|
@ -49,7 +49,7 @@ import XMonad.Prelude (fromJust, fromMaybe)
|
||||
import Data.Ord (comparing)
|
||||
|
||||
-- $usage
|
||||
-- You can use this module by importing it into your ~\/.xmonad\/xmonad.hs file:
|
||||
-- You can use this module by importing it into your @xmonad.hs@ file:
|
||||
--
|
||||
-- > import qualified XMonad.Actions.DynamicWorkspaceOrder as DO
|
||||
--
|
||||
|
@ -44,7 +44,7 @@ import qualified Data.Map.Strict as Map
|
||||
import qualified XMonad.Util.ExtensibleState as XS
|
||||
|
||||
-- $usage
|
||||
-- You can use this module with the following in your @~\/.xmonad\/xmonad.hs@ file:
|
||||
-- You can use this module with the following in your @xmonad.hs@ file:
|
||||
--
|
||||
-- > import XMonad.Actions.DynamicWorkspaces
|
||||
-- > import XMonad.Actions.CopyWindow(copy)
|
||||
|
@ -51,7 +51,7 @@ import qualified Data.Map.Strict as M (Map, elems, map, mapWithKey)
|
||||
-- $usage
|
||||
--
|
||||
-- You can use this module's basic functionality with the following in your
|
||||
-- @~\/.xmonad\/xmonad.hs@:
|
||||
-- @xmonad.hs@:
|
||||
--
|
||||
-- > import XMonad.Actions.EasyMotion (selectWindow)
|
||||
--
|
||||
|
@ -25,7 +25,7 @@ import XMonad.StackSet
|
||||
|
||||
-- $usage
|
||||
--
|
||||
-- To use, import this module into your @~\/.xmonad\/xmonad.hs@:
|
||||
-- To use, import this module into your @xmonad.hs@:
|
||||
--
|
||||
-- > import XMonad.Actions.FindEmptyWorkspace
|
||||
--
|
||||
|
@ -29,7 +29,7 @@ import qualified Prelude as P
|
||||
import Prelude (Double, Integer, Ord (..), const, fromIntegral, fst, id, otherwise, round, snd, uncurry, ($))
|
||||
|
||||
-- $usage
|
||||
-- First, add this import to your @~\/.xmonad\/xmonad.hs@:
|
||||
-- First, add this import to your @xmonad.hs@:
|
||||
--
|
||||
-- > import qualified XMonad.Actions.FlexibleManipulate as Flex
|
||||
--
|
||||
|
@ -25,7 +25,7 @@ import XMonad.Prelude (fi)
|
||||
import Foreign.C.Types
|
||||
|
||||
-- $usage
|
||||
-- To use, first import this module into your @~\/.xmonad\/xmonad.hs@ file:
|
||||
-- To use, first import this module into your @xmonad.hs@ file:
|
||||
--
|
||||
-- > import qualified XMonad.Actions.FlexibleResize as Flex
|
||||
--
|
||||
|
@ -30,7 +30,7 @@ import XMonad.Prelude (fi)
|
||||
import XMonad.Util.Types
|
||||
|
||||
-- $usage
|
||||
-- You can use this module with the following in your @~\/.xmonad\/xmonad.hs@:
|
||||
-- You can use this module with the following in your @xmonad.hs@:
|
||||
--
|
||||
-- > import XMonad.Actions.FloatKeys
|
||||
--
|
||||
|
@ -37,7 +37,7 @@ import XMonad.Util.Types (Direction2D(..))
|
||||
import XMonad.Actions.AfterDrag
|
||||
|
||||
-- $usage
|
||||
-- You can use this module with the following in your @~\/.xmonad\/xmonad.hs@:
|
||||
-- You can use this module with the following in your @xmonad.hs@:
|
||||
--
|
||||
-- > import XMonad.Actions.FloatSnap
|
||||
--
|
||||
|
@ -25,7 +25,7 @@ import XMonad.Prelude
|
||||
import XMonad.StackSet
|
||||
|
||||
-- $usage
|
||||
-- Add the import to your @~\/.xmonad\/xmonad.hs@:
|
||||
-- Add the import to your @xmonad.hs@:
|
||||
--
|
||||
-- > import XMonad.Actions.FocusNth
|
||||
--
|
||||
|
@ -101,7 +101,7 @@ import qualified Data.List.NonEmpty as NE
|
||||
|
||||
-- $usage
|
||||
--
|
||||
-- You can use this module with the following in your @~\/.xmonad\/xmonad.hs@:
|
||||
-- You can use this module with the following in your @xmonad.hs@:
|
||||
--
|
||||
-- > import XMonad.Actions.GridSelect
|
||||
--
|
||||
|
@ -53,7 +53,7 @@ import qualified XMonad.Util.ExtensibleState as XS
|
||||
|
||||
{- $usage
|
||||
|
||||
Import the module into your @~\/.xmonad\/xmonad.hs@:
|
||||
Import the module into your @xmonad.hs@:
|
||||
|
||||
> import XMonad.Actions.GroupNavigation
|
||||
|
||||
@ -129,7 +129,7 @@ focusNextMatchOrDo qry act = findM (runQuery qry)
|
||||
>=> maybe act (windows . SS.focusWindow)
|
||||
|
||||
-- Returns the list of windows ordered by workspace as specified in
|
||||
-- ~/.xmonad/xmonad.hs
|
||||
-- @xmonad.hs@.
|
||||
orderedWindowList :: Direction -> X (Seq Window)
|
||||
orderedWindowList History = fmap (\(HistoryDB w ws) -> maybe ws (ws |>) w) XS.get
|
||||
orderedWindowList dir = withWindowSet $ \ss -> do
|
||||
@ -145,7 +145,7 @@ orderedWindowList dir = withWindowSet $ \ss -> do
|
||||
dirfun _ = id
|
||||
rotfun wins x = rotate $ rotateTo (== x) wins
|
||||
|
||||
-- Returns the ordered workspace list as specified in ~/.xmonad/xmonad.hs
|
||||
-- Returns the ordered workspace list as specified in @xmonad.hs@.
|
||||
orderedWorkspaceList :: WindowSet -> Seq String -> Seq WindowSpace
|
||||
orderedWorkspaceList ss wsids = rotateTo isCurWS wspcs'
|
||||
where
|
||||
|
@ -36,7 +36,7 @@ import qualified Data.Map as M
|
||||
( insert, delete, Map, lookup, empty, filter )
|
||||
|
||||
-- $usage
|
||||
-- You can use this module with the following in your @~\/.xmonad\/xmonad.hs@ file:
|
||||
-- You can use this module with the following in your @xmonad.hs@ file:
|
||||
--
|
||||
-- > import XMonad.Actions.LinkWorkspaces
|
||||
--
|
||||
|
@ -53,7 +53,7 @@ import XMonad.StackSet ( Workspace, current, workspace, layout, tag )
|
||||
import Control.Monad.State ( gets )
|
||||
|
||||
-- $usage
|
||||
-- You can use this module with the following in your @~\/.xmonad\/xmonad.hs@:
|
||||
-- You can use this module with the following in your @xmonad.hs@:
|
||||
--
|
||||
-- > import XMonad.Actions.MessageFeedback
|
||||
--
|
||||
|
@ -32,7 +32,7 @@ import Data.Map (Map)
|
||||
|
||||
-- $usage
|
||||
--
|
||||
-- You can use this module with the following in your @~\/.xmonad\/xmonad.hs@:
|
||||
-- You can use this module with the following in your @xmonad.hs@:
|
||||
--
|
||||
-- > import XMonad.Actions.MouseGestures
|
||||
-- > import qualified XMonad.StackSet as W
|
||||
|
@ -37,7 +37,7 @@ import XMonad.Util.XUtils
|
||||
-- "XMonad.Layout.SimpleFloat" or "XMonad.Layout.DecorationMadness".
|
||||
--
|
||||
-- You can use this module with the following in your
|
||||
-- @~\/.xmonad\/xmonad.hs@:
|
||||
-- @xmonad.hs@:
|
||||
--
|
||||
-- > import XMonad.Actions.MouseResize
|
||||
-- > import XMonad.Layout.WindowArranger
|
||||
|
@ -85,7 +85,7 @@ import qualified Data.List.NonEmpty as NE
|
||||
-- layers and allows customization of the navigation strategy for the tiled
|
||||
-- layer based on the layout currently in effect.
|
||||
--
|
||||
-- You can use this module with (a subset of) the following in your @~\/.xmonad\/xmonad.hs@:
|
||||
-- You can use this module with (a subset of) the following in your @xmonad.hs@:
|
||||
--
|
||||
-- > import XMonad.Actions.Navigation2D
|
||||
--
|
||||
|
@ -148,7 +148,7 @@ toggleOrView' f i st = fromMaybe (f i st) $ do
|
||||
--
|
||||
-- This module provides an easy way to control, what you see on other screens in
|
||||
-- xinerama mode without having to focus them. Put this into your
|
||||
-- @~\/.xmonad\/xmonad.hs@:
|
||||
-- @xmonad.hs@:
|
||||
--
|
||||
-- > import XMonad.Actions.OnScreen
|
||||
--
|
||||
|
@ -25,7 +25,7 @@ import XMonad.StackSet as S
|
||||
|
||||
-- $usage
|
||||
--
|
||||
-- You can use this module with the following in your @~\/.xmonad\/xmonad.hs@:
|
||||
-- You can use this module with the following in your @xmonad.hs@:
|
||||
--
|
||||
-- > import XMonad.Actions.PerLayoutKeys
|
||||
--
|
||||
|
@ -24,7 +24,7 @@ import XMonad
|
||||
|
||||
-- $usage
|
||||
--
|
||||
-- You can use this module with the following in your @~\/.xmonad\/xmonad.hs@:
|
||||
-- You can use this module with the following in your @xmonad.hs@:
|
||||
--
|
||||
-- > import XMonad.Actions.PerWindowKeys
|
||||
--
|
||||
|
@ -25,7 +25,7 @@ import XMonad.StackSet as S
|
||||
|
||||
-- $usage
|
||||
--
|
||||
-- You can use this module with the following in your @~\/.xmonad\/xmonad.hs@:
|
||||
-- You can use this module with the following in your @xmonad.hs@:
|
||||
--
|
||||
-- > import XMonad.Actions.PerWorkspaceKeys
|
||||
--
|
||||
|
@ -46,7 +46,7 @@ To create a screen comparator you can use screenComparatorByRectangle or screenC
|
||||
The default ScreenComparator orders screens by the upper-left-most corner, from top-to-bottom
|
||||
and then left-to-right.
|
||||
|
||||
Example usage in your @~\/.xmonad\/xmonad.hs@ file:
|
||||
Example usage in your @xmonad.hs@ file:
|
||||
|
||||
> import XMonad.Actions.PhysicalScreens
|
||||
> import Data.Default
|
||||
|
@ -47,7 +47,7 @@ import XMonad.StackSet hiding (workspaces)
|
||||
import XMonad.Util.Run
|
||||
|
||||
-- $usage
|
||||
-- You can use this module with the following in your @~\/.xmonad\/xmonad.hs@ file:
|
||||
-- You can use this module with the following in your @xmonad.hs@ file:
|
||||
--
|
||||
-- > import XMonad.Actions.Plane
|
||||
-- > import Data.Map (union)
|
||||
|
@ -28,7 +28,7 @@ import XMonad.StackSet
|
||||
|
||||
-- $usage
|
||||
--
|
||||
-- You can use this module with the following in your @~\/.xmonad\/xmonad.hs@:
|
||||
-- You can use this module with the following in your @xmonad.hs@:
|
||||
--
|
||||
-- > import XMonad.Actions.Promote
|
||||
--
|
||||
|
@ -35,7 +35,7 @@ import XMonad.StackSet (Screen (Screen), Stack (Stack), current, floating, modif
|
||||
import XMonad.Util.Stack (reverseS)
|
||||
|
||||
{- $usage
|
||||
You can use this module with the following in your @~\/.xmonad\/xmonad.hs@:
|
||||
You can use this module with the following in your @xmonad.hs@:
|
||||
|
||||
> import XMonad.Actions.RotateSome
|
||||
|
||||
|
@ -42,7 +42,7 @@ import XMonad.Util.XUtils (createNewWindow
|
||||
import qualified XMonad.Util.ExtensibleState as ES
|
||||
|
||||
-- $usage
|
||||
-- You can use this module with the following in your @~\/.xmonad\/xmonad.hs@:
|
||||
-- You can use this module with the following in your @xmonad.hs@:
|
||||
--
|
||||
-- > import XMonad.Actions.ShowText
|
||||
--
|
||||
|
@ -28,7 +28,7 @@ import XMonad.StackSet (Stack (Stack), StackSet, modify')
|
||||
import XMonad.Util.Stack (reverseS)
|
||||
|
||||
-- $usage
|
||||
-- You can use this module with the following in your @~\/.xmonad\/xmonad.hs@:
|
||||
-- You can use this module with the following in your @xmonad.hs@:
|
||||
--
|
||||
-- > import XMonad.Actions.Sift
|
||||
--
|
||||
|
@ -24,7 +24,7 @@ import XMonad.Core
|
||||
import XMonad.Util.Run
|
||||
|
||||
-- $usage
|
||||
-- To use, import this module into @~\/.xmonad\/xmonad.hs@:
|
||||
-- To use, import this module into @xmonad.hs@:
|
||||
--
|
||||
-- > import XMonad.Actions.SimpleDate
|
||||
--
|
||||
|
@ -23,7 +23,7 @@ import XMonad.Actions.WithAll (sinkAll)
|
||||
|
||||
-- $usage
|
||||
--
|
||||
-- You can use this module with the following in your @~\/.xmonad\/xmonad.hs@:
|
||||
-- You can use this module with the following in your @xmonad.hs@:
|
||||
--
|
||||
-- > import XMonad.Actions.SinkAll
|
||||
--
|
||||
|
@ -43,7 +43,7 @@ import qualified XMonad.Util.ExtensibleState as XS
|
||||
import XMonad.Util.Process (getPPIDChain)
|
||||
|
||||
-- $usage
|
||||
-- You can use this module with the following in your @~\/.xmonad\/xmonad.hs@:
|
||||
-- You can use this module with the following in your @xmonad.hs@:
|
||||
--
|
||||
-- > import XMonad.Actions.SpawnOn
|
||||
--
|
||||
|
@ -32,10 +32,7 @@ import XMonad.Util.XUtils
|
||||
|
||||
{- $usage
|
||||
|
||||
|
||||
|
||||
|
||||
First, import this module into your @~\/.xmonad\/xmonad.hs@:
|
||||
First, import this module into your @xmonad.hs@:
|
||||
|
||||
> import XMonad.Actions.Submap
|
||||
|
||||
|
@ -30,7 +30,7 @@ import XMonad.Util.WorkspaceCompare
|
||||
|
||||
|
||||
-- $usage
|
||||
-- Add this import to your @~\/.xmonad\/xmonad.hs@:
|
||||
-- Add this import to your @xmonad.hs@:
|
||||
--
|
||||
-- > import XMonad.Actions.SwapWorkspaces
|
||||
--
|
||||
|
@ -39,7 +39,7 @@ econst = const . return
|
||||
|
||||
-- $usage
|
||||
--
|
||||
-- To use window tags, import this module into your @~\/.xmonad\/xmonad.hs@:
|
||||
-- To use window tags, import this module into your @xmonad.hs@:
|
||||
--
|
||||
-- > import XMonad.Actions.TagWindows
|
||||
-- > import XMonad.Prompt -- to use tagPrompt
|
||||
|
@ -27,7 +27,7 @@ import qualified XMonad.StackSet as W
|
||||
import XMonad.Layout.DraggingVisualizer
|
||||
|
||||
-- $usage
|
||||
-- You can use this module with the following in your @~\/.xmonad\/xmonad.hs@:
|
||||
-- You can use this module with the following in your @xmonad.hs@:
|
||||
--
|
||||
-- > import XMonad.Actions.TiledWindowDragging
|
||||
-- > import XMonad.Layout.DraggingVisualizer
|
||||
|
@ -108,7 +108,7 @@ import XMonad.Hooks.WorkspaceHistory
|
||||
-- <https://tony-zorman.com/posts/topic-space/2022-09-11-topic-spaces.html here>.
|
||||
|
||||
-- $usage
|
||||
-- You can use this module with the following in your @~\/.xmonad\/xmonad.hs@:
|
||||
-- You can use this module with the following in your @xmonad.hs@:
|
||||
--
|
||||
-- > import qualified Data.Map.Strict as M
|
||||
-- > import qualified XMonad.StackSet as W
|
||||
|
@ -27,7 +27,7 @@ import qualified XMonad.StackSet as W
|
||||
|
||||
-- $usage
|
||||
-- To make the focus update on mouse movement within an unfocused window, add the
|
||||
-- following to your @~\/.xmonad\/xmonad.hs@:
|
||||
-- following to your @xmonad.hs@:
|
||||
--
|
||||
-- > import XMonad.Actions.UpdateFocus
|
||||
-- > xmonad $ def {
|
||||
|
@ -31,7 +31,7 @@ import XMonad.StackSet (member, peek, screenDetail, current)
|
||||
import Control.Arrow ((&&&), (***))
|
||||
|
||||
-- $usage
|
||||
-- You can use this module with the following in your @~\/.xmonad\/xmonad.hs@:
|
||||
-- You can use this module with the following in your @xmonad.hs@:
|
||||
--
|
||||
-- > import XMonad
|
||||
-- > import XMonad.Actions.UpdatePointer
|
||||
|
@ -28,7 +28,7 @@ import XMonad
|
||||
import XMonad.StackSet as W
|
||||
|
||||
{- $usage
|
||||
You can use this module with the following in your @~\/.xmonad\/xmonad.hs@:
|
||||
You can use this module with the following in your @xmonad.hs@:
|
||||
|
||||
> import XMonad.Actions.Warp
|
||||
|
||||
|
@ -36,7 +36,7 @@ import XMonad.Util.NamedWindows (getName, getNameWMClass)
|
||||
|
||||
-- $usage
|
||||
--
|
||||
-- Import the module into your @~\/.xmonad\/xmonad.hs@:
|
||||
-- Import the module into your @xmonad.hs@:
|
||||
--
|
||||
-- > import XMonad.Actions.WindowBringer
|
||||
--
|
||||
|
@ -52,7 +52,7 @@ import qualified Data.List.NonEmpty as NE
|
||||
|
||||
{- $usage
|
||||
|
||||
Import the module into your @~\/.xmonad\/xmonad.hs@:
|
||||
Import the module into your @xmonad.hs@:
|
||||
|
||||
> import XMonad.Actions.WindowGo
|
||||
|
||||
|
@ -34,7 +34,7 @@ import XMonad.Prelude (fi)
|
||||
|
||||
-- $usage
|
||||
--
|
||||
-- You can use this module with the following in your @~\/.xmonad\/xmonad.hs@:
|
||||
-- You can use this module with the following in your @xmonad.hs@:
|
||||
--
|
||||
-- > import XMonad.Actions.WindowMenu
|
||||
--
|
||||
|
@ -24,7 +24,7 @@ import XMonad.StackSet
|
||||
|
||||
-- $usage
|
||||
--
|
||||
-- You can use this module with the following in your @~\/.xmonad\/xmonad.hs@:
|
||||
-- You can use this module with the following in your @xmonad.hs@:
|
||||
--
|
||||
-- > import XMonad.Actions.WithAll
|
||||
--
|
||||
|
@ -43,7 +43,7 @@ import qualified XMonad.Util.ExtensibleState as XS
|
||||
import XMonad.Actions.OnScreen
|
||||
|
||||
-- $usage
|
||||
-- You can use this module with the following in your @~\/.xmonad\/xmonad.hs@:
|
||||
-- You can use this module with the following in your @xmonad.hs@:
|
||||
--
|
||||
-- > import XMonad.Actions.Workscreen
|
||||
-- > myWorkspaces = let myOldWorkspaces = ["adm","work","mail"]
|
||||
|
@ -58,7 +58,7 @@ import XMonad.Util.WorkspaceCompare (getSortByIndex)
|
||||
import qualified Data.Map as M
|
||||
|
||||
-- $usage
|
||||
-- You can use this module with the following in your @~\/.xmonad\/xmonad.hs@ file:
|
||||
-- You can use this module with the following in your @xmonad.hs@ file:
|
||||
--
|
||||
-- > import XMonad.Actions.WorkspaceNames
|
||||
--
|
||||
|
@ -47,7 +47,7 @@ import XMonad.Util.Themes
|
||||
|
||||
-- $usage
|
||||
-- The simplest way to use this configuration module is to use an
|
||||
-- @~\/.xmonad\/xmonad.hs@ like this:
|
||||
-- @xmonad.hs@ like this:
|
||||
--
|
||||
-- > module Main (main) where
|
||||
-- >
|
||||
@ -64,7 +64,7 @@ import XMonad.Util.Themes
|
||||
--
|
||||
-- You can use this module also as a starting point for writing your
|
||||
-- own configuration module from scratch. Save it as your
|
||||
-- @~\/.xmonad\/xmonad.hs@ and:
|
||||
-- @xmonad.hs@ and:
|
||||
--
|
||||
-- 1. Change the module name from
|
||||
--
|
||||
|
@ -27,7 +27,7 @@ import qualified XMonad.StackSet as W
|
||||
import qualified Data.Map as M
|
||||
|
||||
-- $usage
|
||||
-- To use this module, start with the following @~\/.xmonad\/xmonad.hs@:
|
||||
-- To use this module, start with the following @xmonad.hs@:
|
||||
--
|
||||
-- > import XMonad
|
||||
-- > import XMonad.Config.Azerty
|
||||
|
@ -26,7 +26,7 @@ import qualified XMonad.StackSet as W
|
||||
import qualified Data.Map as M
|
||||
|
||||
-- $usage
|
||||
-- To use this module, start with the following @~\/.xmonad\/xmonad.hs@:
|
||||
-- To use this module, start with the following @xmonad.hs@:
|
||||
--
|
||||
-- > import XMonad
|
||||
-- > import XMonad.Config.Bepo
|
||||
|
@ -65,7 +65,7 @@ import System.Exit
|
||||
import XMonad.Prelude(when)
|
||||
|
||||
-- $usage
|
||||
-- To use this module, start with the following @~\/.xmonad\/xmonad.hs@:
|
||||
-- To use this module, start with the following @xmonad.hs@:
|
||||
--
|
||||
-- > import XMonad
|
||||
-- > import XMonad.Config.Bluetile
|
||||
|
@ -24,7 +24,7 @@ module XMonad.Config.Desktop (
|
||||
-- specification. Extra xmonad settings unique to specific DE's are
|
||||
-- added by overriding or modifying @desktopConfig@ fields in the
|
||||
-- same way that the default configuration is customized in
|
||||
-- @~\/.xmonad/xmonad.hs@.
|
||||
-- @xmonad.hs@.
|
||||
--
|
||||
-- For more information about EWMH see:
|
||||
--
|
||||
@ -72,7 +72,7 @@ import qualified Data.Map as M
|
||||
-- <http://haskell.org/haskellwiki/Xmonad>
|
||||
--
|
||||
-- To configure xmonad for use with a DE or with DE tools like panels
|
||||
-- and pagers, in place of @def@ in your @~\/.xmonad/xmonad.hs@,
|
||||
-- and pagers, in place of @def@ in your @xmonad.hs@,
|
||||
-- use @desktopConfig@ or one of the other desktop configs from the
|
||||
-- @XMonad.Config@ namespace. The following setup and customization examples
|
||||
-- work the same way for the other desktop configs as for @desktopConfig@.
|
||||
|
@ -32,7 +32,7 @@ import qualified Data.Map as M
|
||||
import System.Environment (getEnvironment)
|
||||
|
||||
-- $usage
|
||||
-- To use this module, start with the following @~\/.xmonad\/xmonad.hs@:
|
||||
-- To use this module, start with the following @xmonad.hs@:
|
||||
--
|
||||
-- > import XMonad
|
||||
-- > import XMonad.Config.Gnome
|
||||
|
@ -28,7 +28,7 @@ import XMonad.Config.Desktop
|
||||
import qualified Data.Map as M
|
||||
|
||||
-- $usage
|
||||
-- To use this module, start with the following @~\/.xmonad\/xmonad.hs@:
|
||||
-- To use this module, start with the following @xmonad.hs@:
|
||||
--
|
||||
-- > import XMonad
|
||||
-- > import XMonad.Config.Kde
|
||||
|
@ -27,7 +27,7 @@ import XMonad.Config.Desktop
|
||||
import qualified Data.Map as M
|
||||
|
||||
-- $usage
|
||||
-- To use this module, start with the following @~\/.xmonad\/xmonad.hs@:
|
||||
-- To use this module, start with the following @xmonad.hs@:
|
||||
--
|
||||
-- > import XMonad
|
||||
-- > import XMonad.Config.LXQt
|
||||
|
@ -40,7 +40,7 @@ import XMonad.Util.Run (safeSpawn)
|
||||
import XMonad.Util.Ungrab (unGrab)
|
||||
|
||||
-- $usage
|
||||
-- To use this module, start with the following @~\/.xmonad\/xmonad.hs@:
|
||||
-- To use this module, start with the following @xmonad.hs@:
|
||||
--
|
||||
-- > import XMonad
|
||||
-- > import XMonad.Config.Mate
|
||||
|
@ -126,7 +126,7 @@ import qualified XMonad as X (xmonad, XConfig(..))
|
||||
import XMonad.Util.EZConfig (additionalKeysP, additionalMouseBindings, checkKeymap, removeKeysP, removeMouseBindings)
|
||||
|
||||
-- $start_here
|
||||
-- To start with, create a @~\/.xmonad\/xmonad.hs@ that looks like this:
|
||||
-- To start with, create a @xmonad.hs@ that looks like this:
|
||||
--
|
||||
-- > {-# LANGUAGE RebindableSyntax #-}
|
||||
-- > import XMonad.Config.Prime
|
||||
|
@ -27,7 +27,7 @@ import XMonad.Config.Desktop
|
||||
import qualified Data.Map as M
|
||||
|
||||
-- $usage
|
||||
-- To use this module, start with the following @~\/.xmonad\/xmonad.hs@:
|
||||
-- To use this module, start with the following @xmonad.hs@:
|
||||
--
|
||||
-- > import XMonad
|
||||
-- > import XMonad.Config.Xfce
|
||||
|
@ -86,7 +86,7 @@ customize the window manager to fit her needs.
|
||||
|
||||
Basically, xmonad and the xmonad-contrib libraries let users write
|
||||
their own window manager in just a few lines of code. While
|
||||
@~\/.xmonad\/xmonad.hs@ at first seems to be simply a configuration
|
||||
@xmonad.hs@ at first seems to be simply a configuration
|
||||
file, it is actually a complete Haskell program which uses the xmonad
|
||||
and xmonad-contrib libraries to create a custom window manager.
|
||||
|
||||
@ -106,13 +106,13 @@ manager you are writing in any way you see fit.
|
||||
xmonad installs a binary, @xmonad@, which must be executed by the
|
||||
Xsession starting script. This binary, whose code can be read in
|
||||
@Main.hs@ of the xmonad source tree, will use 'XMonad.Core.recompile'
|
||||
to run @ghc@ in order to build a binary from @~\/.xmonad\/xmonad.hs@.
|
||||
to run @ghc@ in order to build a binary from @xmonad.hs@.
|
||||
If this compilation process fails, for any reason, a default @main@
|
||||
entry point will be used, which calls the 'XMonad.Main.xmonad'
|
||||
function with a default configuration.
|
||||
|
||||
Thus, the real @main@ entry point, the one that even the users' custom
|
||||
window manager application in @~\/.xmonad\/xmonad.hs@ must call, is
|
||||
window manager application in @xmonad.hs@ must call, is
|
||||
the 'XMonad.Main.xmonad' function. This function takes a configuration
|
||||
as its only argument, whose type ('XMonad.Core.XConfig')
|
||||
is defined in "XMonad.Core".
|
||||
|
@ -500,7 +500,7 @@ with a specific layout combinator: 'XMonad.Layout.|||'.
|
||||
Suppose we want a list with the 'XMonad.Layout.Full',
|
||||
'XMonad.Layout.Tabbed.tabbed' and
|
||||
'XMonad.Layout.Accordion.Accordion' layouts. First we import, in our
|
||||
@~\/.xmonad\/xmonad.hs@, all the needed modules:
|
||||
@xmonad.hs@, all the needed modules:
|
||||
|
||||
> import XMonad
|
||||
>
|
||||
@ -529,7 +529,7 @@ If we want only the tabbed layout without borders, then we may write:
|
||||
|
||||
> mylayoutHook = Full ||| noBorders (tabbed shrinkText def) ||| Accordion
|
||||
|
||||
Our @~\/.xmonad\/xmonad.hs@ will now look like this:
|
||||
Our @xmonad.hs@ will now look like this:
|
||||
|
||||
> import XMonad
|
||||
>
|
||||
|
@ -30,7 +30,7 @@ import qualified XMonad.StackSet as S
|
||||
import qualified XMonad.Util.ExtensibleState as XS
|
||||
|
||||
-- $usage
|
||||
-- You can use this module with the following in your @~\/.xmonad\/xmonad.hs@:
|
||||
-- You can use this module with the following in your @xmonad.hs@:
|
||||
--
|
||||
-- > import XMonad.Hooks.CurrentWorkspaceOnTop
|
||||
-- >
|
||||
|
@ -76,7 +76,7 @@ import XMonad.Hooks.StatusBar.PP
|
||||
import XMonad.Hooks.StatusBar
|
||||
|
||||
-- $usage
|
||||
-- You can use this module with the following in your @~\/.xmonad\/xmonad.hs@:
|
||||
-- You can use this module with the following in your @xmonad.hs@:
|
||||
--
|
||||
-- > import XMonad
|
||||
-- > import XMonad.Hooks.DynamicLog
|
||||
|
@ -76,7 +76,7 @@ import qualified XMonad.Util.ExtensibleConf as XC
|
||||
import qualified XMonad.Util.ExtensibleState as XS
|
||||
|
||||
-- $usage
|
||||
-- You can use this module with the following in your @~\/.xmonad\/xmonad.hs@:
|
||||
-- You can use this module with the following in your @xmonad.hs@:
|
||||
--
|
||||
-- > import XMonad
|
||||
-- > import XMonad.Hooks.EwmhDesktops
|
||||
|
@ -32,7 +32,7 @@ import XMonad.Prelude
|
||||
import qualified XMonad.StackSet as W
|
||||
|
||||
-- $usage
|
||||
-- You can use this module with the following in your @~\/.xmonad\/xmonad.hs@:
|
||||
-- You can use this module with the following in your @xmonad.hs@:
|
||||
--
|
||||
-- > import XMonad
|
||||
-- > import XMonad.Hooks.FadeInactive
|
||||
|
@ -47,7 +47,7 @@ hookName = "__float"
|
||||
-- to automatically send the next spawned window(s) to the floating
|
||||
-- layer.
|
||||
--
|
||||
-- You can use it by including the following in your @~\/.xmonad\/xmonad.hs@:
|
||||
-- You can use it by including the following in your @xmonad.hs@:
|
||||
--
|
||||
-- > import XMonad.Hooks.FloatNext
|
||||
--
|
||||
|
@ -26,7 +26,7 @@ import XMonad.Prelude (Endo (Endo), find)
|
||||
import qualified XMonad.StackSet as W
|
||||
|
||||
-- $usage
|
||||
-- You can use this module by importing it in your @~\/.xmonad\/xmonad.hs@:
|
||||
-- You can use this module by importing it in your @xmonad.hs@:
|
||||
--
|
||||
-- > import XMonad.Hooks.InsertPosition
|
||||
--
|
||||
|
@ -49,7 +49,7 @@ import qualified Data.Map as M
|
||||
import qualified XMonad.StackSet as W
|
||||
|
||||
-- $usage
|
||||
-- To use this module, add the following import to @~\/.xmonad\/xmonad.hs@:
|
||||
-- To use this module, add the following import to @xmonad.hs@:
|
||||
--
|
||||
-- > import XMonad.Hooks.ManageDocks
|
||||
--
|
||||
|
@ -25,7 +25,7 @@ import XMonad.Actions.Minimize
|
||||
import XMonad.Prelude
|
||||
|
||||
-- $usage
|
||||
-- You can use this module with the following in your @~\/.xmonad\/xmonad.hs@:
|
||||
-- You can use this module with the following in your @xmonad.hs@:
|
||||
--
|
||||
-- > import XMonad.Hooks.Minimize
|
||||
-- > import XMonad.Layout.Minimize
|
||||
|
@ -39,7 +39,7 @@ import XMonad
|
||||
import XMonad.Prelude
|
||||
|
||||
-- $usage
|
||||
-- You can use this module with the following in your @~\/.xmonad\/xmonad.hs@:
|
||||
-- You can use this module with the following in your @xmonad.hs@:
|
||||
--
|
||||
-- > import XMonad.Hooks.DynamicProperty
|
||||
--
|
||||
|
@ -51,7 +51,7 @@ import Control.Monad.Trans (lift)
|
||||
-- floating windows at appropriate positions on the screen, as well
|
||||
-- as an 'X' action to manually trigger repositioning.
|
||||
--
|
||||
-- You can use this module by including the following in your @~\/.xmonad\/xmonad.hs@:
|
||||
-- You can use this module by including the following in your @xmonad.hs@:
|
||||
--
|
||||
-- > import XMonad.Hooks.Place
|
||||
--
|
||||
|
@ -45,7 +45,7 @@ import System.Random(randomRIO)
|
||||
import qualified Data.Set as S
|
||||
|
||||
-- $usage
|
||||
-- You can use this module with the following in your @~\/.xmonad\/xmonad.hs@:
|
||||
-- You can use this module with the following in your @xmonad.hs@:
|
||||
--
|
||||
-- > import XMonad.Hooks.PositionStoreHooks
|
||||
--
|
||||
|
@ -32,7 +32,7 @@ import qualified XMonad.Util.ExtensibleConf as XC
|
||||
-- ('XMonad.Hooks.StatusBar.dynamicSBs' uses this module internally), as well
|
||||
-- as to actually invoke xrandr or autorandr when an output is (dis)connected.
|
||||
--
|
||||
-- To use this, include the following in your @~\/.xmonad\/xmonad.hs@:
|
||||
-- To use this, include the following in your @xmonad.hs@:
|
||||
--
|
||||
-- > import XMonad.Hooks.Rescreen
|
||||
--
|
||||
|
@ -36,7 +36,7 @@ import XMonad.Actions.Commands
|
||||
|
||||
-- $usage
|
||||
-- You can use this module with the following in your
|
||||
-- @~\/.xmonad\/xmonad.hs@:
|
||||
-- @xmonad.hs@:
|
||||
--
|
||||
-- > import XMonad.Hooks.ServerMode
|
||||
--
|
||||
|
@ -15,7 +15,7 @@
|
||||
-- May be useful for making Java GUI programs work, just set WM name to \"LG3D\"
|
||||
-- and use Java 1.6u1 (1.6.0_01-ea-b03 works for me) or later.
|
||||
--
|
||||
-- To your @~\/.xmonad\/xmonad.hs@ file, add the following line:
|
||||
-- To your @xmonad.hs@ file, add the following line:
|
||||
--
|
||||
-- > import XMonad.Hooks.SetWMName
|
||||
--
|
||||
|
@ -33,7 +33,7 @@ import Control.Concurrent (threadDelay)
|
||||
{- $usage
|
||||
|
||||
You can use this module with the following in your
|
||||
@~\/.xmonad\/xmonad.hs@:
|
||||
@xmonad.hs@:
|
||||
|
||||
> import XMonad.Hooks.ShowWName
|
||||
>
|
||||
|
@ -82,7 +82,7 @@ import XMonad.Hooks.StatusBar.PP
|
||||
import qualified XMonad.StackSet as W
|
||||
|
||||
-- $usage
|
||||
-- You can use this module with the following in your @~\/.xmonad\/xmonad.hs@:
|
||||
-- You can use this module with the following in your @xmonad.hs@:
|
||||
--
|
||||
-- > import XMonad
|
||||
-- > import XMonad.Hooks.StatusBar
|
||||
|
@ -34,7 +34,7 @@ import XMonad.Prelude
|
||||
import qualified XMonad.StackSet as W
|
||||
|
||||
{- $usage
|
||||
You can use this module with the following in your @~\/.xmonad\/xmonad.hs@:
|
||||
You can use this module with the following in your @xmonad.hs@:
|
||||
|
||||
> import XMonad
|
||||
> import XMonad.Hooks.StatusBar
|
||||
|
@ -77,7 +77,7 @@ modify' n f = XS.modify (HookState . setter . hooks)
|
||||
-- This module provides actions (that can be set as keybindings)
|
||||
-- to be able to cause hooks to be occur on a conditional basis.
|
||||
--
|
||||
-- You can use it by including the following in your @~\/.xmonad\/xmonad.hs@:
|
||||
-- You can use it by including the following in your @xmonad.hs@:
|
||||
--
|
||||
-- > import XMonad.Hooks.ToggleHook
|
||||
--
|
||||
|
@ -54,7 +54,7 @@ import qualified Data.Map.Strict as M
|
||||
import System.Posix.Types ( ProcessID )
|
||||
|
||||
-- $usage
|
||||
-- You can use this module by including the following in your @~\/.xmonad/xmonad.hs@:
|
||||
-- You can use this module by including the following in your @xmonad.hs@:
|
||||
--
|
||||
-- > import XMonad.Hooks.WindowSwallowing
|
||||
--
|
||||
|
@ -30,7 +30,7 @@ import Control.Monad.Except (runExceptT, throwError)
|
||||
import Control.Monad.Trans (lift)
|
||||
|
||||
-- $usage
|
||||
-- You can use this module with the following in your @~\/.xmonad\/xmonad.hs@:
|
||||
-- You can use this module with the following in your @xmonad.hs@:
|
||||
--
|
||||
-- > import XMonad.Hooks.WorkspaceByPos
|
||||
-- >
|
||||
|
@ -39,7 +39,7 @@ import qualified XMonad.Util.ExtensibleState as XS
|
||||
|
||||
-- $usage
|
||||
-- To record the order in which you view workspaces, you can use this
|
||||
-- module with the following in your @~\/.xmonad\/xmonad.hs@:
|
||||
-- module with the following in your @xmonad.hs@:
|
||||
--
|
||||
-- > import XMonad.Hooks.WorkspaceHistory (workspaceHistoryHook)
|
||||
--
|
||||
|
@ -26,7 +26,7 @@ import XMonad
|
||||
import XMonad.Prelude (Endo (..), chr)
|
||||
|
||||
-- $usage
|
||||
-- You can use this module with the following in your @~\/.xmonad\/xmonad.hs@:
|
||||
-- You can use this module with the following in your @xmonad.hs@:
|
||||
--
|
||||
-- > import XMonad.Hooks.XPropManage
|
||||
-- > import qualified XMonad.StackSet as W
|
||||
|
@ -25,7 +25,7 @@ import qualified XMonad.StackSet as W
|
||||
import Data.Ratio
|
||||
|
||||
-- $usage
|
||||
-- You can use this module with the following in your @~\/.xmonad\/xmonad.hs@:
|
||||
-- You can use this module with the following in your @xmonad.hs@:
|
||||
--
|
||||
-- > import XMonad.Layout.Accordion
|
||||
--
|
||||
|
@ -35,7 +35,7 @@ import qualified Data.Map as M
|
||||
import qualified Data.Set as S
|
||||
|
||||
-- $usage
|
||||
-- You can use this module with the following in your ~\/.xmonad\/xmonad.hs file:
|
||||
-- You can use this module with the following in your @xmonad.hs@ file:
|
||||
--
|
||||
-- > import XMonad.Layout.AvoidFloats
|
||||
--
|
||||
|
@ -52,7 +52,7 @@ import qualified Data.Set as S
|
||||
import Data.Ratio ((%))
|
||||
|
||||
-- $usage
|
||||
-- You can use this module with the following in your @~\/.xmonad\/xmonad.hs@:
|
||||
-- You can use this module with the following in your @xmonad.hs@:
|
||||
--
|
||||
-- > import XMonad.Layout.BinarySpacePartition
|
||||
--
|
||||
|
@ -38,7 +38,7 @@ import qualified Data.Map as M
|
||||
|
||||
-- $usage
|
||||
-- You can use this module with the following in your
|
||||
-- @~\/.xmonad\/xmonad.hs@:
|
||||
-- @xmonad.hs@:
|
||||
--
|
||||
-- > import XMonad.Layout.BorderResize
|
||||
-- > myLayout = borderResize (... layout setup that reacts to SetGeometry ...)
|
||||
|
@ -45,7 +45,7 @@ import qualified XMonad.StackSet as W
|
||||
|
||||
-- $usage
|
||||
-- You can use this module with the following in your
|
||||
-- @~\/.xmonad\/xmonad.hs@:
|
||||
-- @xmonad.hs@:
|
||||
--
|
||||
-- > import XMonad.Layout.BoringWindows
|
||||
--
|
||||
|
@ -33,7 +33,7 @@ import XMonad.Layout.DecorationAddons
|
||||
|
||||
-- $usage
|
||||
-- You can use this module with the following in your
|
||||
-- @~\/.xmonad\/xmonad.hs@:
|
||||
-- @xmonad.hs@:
|
||||
--
|
||||
-- > import XMonad.Layout.DecorationAddons
|
||||
-- > import XMonad.Layout.ButtonDecoration
|
||||
|
@ -30,7 +30,7 @@ import XMonad.Layout.LayoutModifier
|
||||
import XMonad.Prelude (fi)
|
||||
|
||||
-- $usage
|
||||
-- You can use this module by including the following in your @~\/.xmonad/xmonad.hs@:
|
||||
-- You can use this module by including the following in your @xmonad.hs@:
|
||||
--
|
||||
-- > import XMonad.Layout.CenteredIfSingle
|
||||
--
|
||||
|
@ -26,7 +26,7 @@ import GHC.Real (Ratio(..))
|
||||
import XMonad.Layout.CircleEx
|
||||
|
||||
-- $usage
|
||||
-- You can use this module with the following in your @~\/.xmonad\/xmonad.hs@:
|
||||
-- You can use this module with the following in your @xmonad.hs@:
|
||||
--
|
||||
-- > import XMonad.Layout.Circle
|
||||
--
|
||||
|
@ -33,7 +33,7 @@ import XMonad.StackSet (Stack (..), Workspace (..), integrate')
|
||||
import XMonad.Util.Stack (zipperFocusedAtFirstOf)
|
||||
|
||||
-- $usage
|
||||
-- You can use this module with the following in your @~\/.xmonad\/xmonad.hs@:
|
||||
-- You can use this module with the following in your @xmonad.hs@:
|
||||
--
|
||||
-- > import XMonad.Layout.Combo
|
||||
--
|
||||
|
@ -34,7 +34,7 @@ import XMonad.Util.Stack (zipperFocusedAtFirstOf)
|
||||
import XMonad.Util.WindowProperties
|
||||
|
||||
-- $usage
|
||||
-- You can use this module with the following in your @~\/.xmonad\/xmonad.hs@:
|
||||
-- You can use this module with the following in your @xmonad.hs@:
|
||||
--
|
||||
-- > import XMonad.Layout.ComboP
|
||||
--
|
||||
|
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