mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-08-01 12:41:52 -07:00
Remove mentions of defaultConfig
These were superseded, but forgotten to be updated, by Data.Default.def
in 5140f5b5d0
.
This commit is contained in:
@@ -94,12 +94,12 @@ grab" and let the C-c C-u be sent to the application.
|
||||
|
||||
The simplest way to enable this is to use 'useDefaultPrefixArgument'
|
||||
|
||||
> xmonad $ useDefaultPrefixArgument $ defaultConfig { .. }
|
||||
> xmonad $ useDefaultPrefixArgument $ def { .. }
|
||||
|
||||
The default prefix argument is C-u. If you want to customize the
|
||||
prefix argument, use the following:
|
||||
|
||||
> xmonad $ usePrefixArgument prefixKey $ defaultConfig { .. }
|
||||
> xmonad $ usePrefixArgument prefixKey $ def { .. }
|
||||
|
||||
where 'prefixKey' is a function which takes 'XConfig' as an argument
|
||||
in case you wish to extract the 'modMask'. An example
|
||||
|
@@ -533,7 +533,7 @@ instance UrgencyHook StdoutUrgencyHook where
|
||||
--
|
||||
-- Useful for scratchpad workspaces perhaps:
|
||||
--
|
||||
-- > main = xmonad (withUrgencyHook (filterUrgencyHook ["NSP", "SP"]) defaultConfig)
|
||||
-- > main = xmonad (withUrgencyHook (filterUrgencyHook ["NSP", "SP"]) def)
|
||||
filterUrgencyHook :: [WorkspaceId] -> Window -> X ()
|
||||
filterUrgencyHook skips w = do
|
||||
ws <- gets windowset
|
||||
|
@@ -53,7 +53,7 @@ import Data.Maybe
|
||||
--
|
||||
-- > myWorkspaces = ["1:main","2:misc","3","4"]
|
||||
-- > ...
|
||||
-- > main = xmonad $ defaultConfig {
|
||||
-- > main = xmonad $ def {
|
||||
-- > logHook = wallpaperSetter defWallpaperConf {
|
||||
-- > wallpapers = defWPNames myWorkspaces
|
||||
-- > <> WallpaperList [("1:main",WallpaperDir "1")]
|
||||
|
@@ -72,7 +72,7 @@ import Control.Arrow (second)
|
||||
--
|
||||
-- > main = xmonad
|
||||
-- > $ fullscreenSupport
|
||||
-- > $ defaultConfig { ... }
|
||||
-- > $ def { ... }
|
||||
fullscreenSupport :: LayoutClass l Window =>
|
||||
XConfig l -> XConfig (ModifiedLayout FullscreenFull l)
|
||||
fullscreenSupport c = c {
|
||||
|
@@ -46,8 +46,7 @@ import qualified Data.Map as Map
|
||||
-- > ppOutput = maybe (\s -> return ()) (hPutStrLn) mh}
|
||||
-- >
|
||||
-- > -- Main
|
||||
-- > main = xmonad $ defaultConfig {
|
||||
-- > startupHook = startupHook'
|
||||
-- > main = xmonad $ def { startupHook = startupHook'
|
||||
-- > , logHook = logHook'}
|
||||
--
|
||||
|
||||
|
Reference in New Issue
Block a user