mirror of
https://github.com/xmonad/xmonad.git
synced 2025-08-01 20:51:55 -07:00
Make border width configurable
This commit is contained in:
@@ -111,6 +111,10 @@ normalBorderColor, focusedBorderColor :: String
|
|||||||
normalBorderColor = "#dddddd"
|
normalBorderColor = "#dddddd"
|
||||||
focusedBorderColor = "#ff0000"
|
focusedBorderColor = "#ff0000"
|
||||||
|
|
||||||
|
-- Width of the window border in pixels
|
||||||
|
borderWidth :: Dimension
|
||||||
|
borderWidth = 1
|
||||||
|
|
||||||
-- What layout to start in, and what the default proportion for the
|
-- What layout to start in, and what the default proportion for the
|
||||||
-- left pane should be in the tiled layout. See LayoutDesc and
|
-- left pane should be in the tiled layout. See LayoutDesc and
|
||||||
-- friends in XMonad.hs for options.
|
-- friends in XMonad.hs for options.
|
||||||
|
@@ -1,3 +1,5 @@
|
|||||||
module Config where
|
module Config where
|
||||||
import XMonad (LayoutDesc)
|
import XMonad (LayoutDesc)
|
||||||
|
import Graphics.X11.Xlib.Types (Dimension)
|
||||||
defaultLayoutDesc :: LayoutDesc
|
defaultLayoutDesc :: LayoutDesc
|
||||||
|
borderWidth :: Dimension
|
||||||
|
@@ -161,7 +161,7 @@ manage w = do
|
|||||||
withDisplay $ \d -> io $ do
|
withDisplay $ \d -> io $ do
|
||||||
selectInput d w $ structureNotifyMask .|. enterWindowMask .|. propertyChangeMask
|
selectInput d w $ structureNotifyMask .|. enterWindowMask .|. propertyChangeMask
|
||||||
mapWindow d w
|
mapWindow d w
|
||||||
setWindowBorderWidth d w 1
|
setWindowBorderWidth d w borderWidth
|
||||||
windows $ W.push w
|
windows $ W.push w
|
||||||
|
|
||||||
-- | unmanage. A window no longer exists, remove it from the window
|
-- | unmanage. A window no longer exists, remove it from the window
|
||||||
|
Reference in New Issue
Block a user