make xmobar fancy
This commit is contained in:
parent
a3ad5c5544
commit
4d947ab1a3
|
@ -93,6 +93,7 @@ import XMonad.Util.Ungrab (unGrab)
|
||||||
import XMonad.Util.WorkspaceCompare (getSortByIndex)
|
import XMonad.Util.WorkspaceCompare (getSortByIndex)
|
||||||
import XMonad.Layout (Resize(Expand,Shrink) )
|
import XMonad.Layout (Resize(Expand,Shrink) )
|
||||||
import XMonad.Layout.NoBorders
|
import XMonad.Layout.NoBorders
|
||||||
|
import XMonad.Layout.Named (named)
|
||||||
|
|
||||||
main :: IO ()
|
main :: IO ()
|
||||||
main = do
|
main = do
|
||||||
|
@ -141,7 +142,7 @@ main = do
|
||||||
myXmobarPP :: [String] -> PP
|
myXmobarPP :: [String] -> PP
|
||||||
myXmobarPP colors =
|
myXmobarPP colors =
|
||||||
def
|
def
|
||||||
{ ppSep = walXmobarColor 1 " • ",
|
{ ppSep = walXmobarColor 1 " \63617 ",
|
||||||
ppTitleSanitize = xmobarStrip,
|
ppTitleSanitize = xmobarStrip,
|
||||||
ppCurrent = wrap " " "" . xmobarBorder "Top" (colors !! 6) 2,
|
ppCurrent = wrap " " "" . xmobarBorder "Top" (colors !! 6) 2,
|
||||||
ppHidden = white . wrap " " "",
|
ppHidden = white . wrap " " "",
|
||||||
|
@ -153,8 +154,8 @@ myXmobarPP colors =
|
||||||
ppSort = hideWorkspaces
|
ppSort = hideWorkspaces
|
||||||
}
|
}
|
||||||
where
|
where
|
||||||
formatFocused = wrap (white "[") (white "]") . walXmobarColor 7 . ppWindow
|
formatFocused = wrap (walXmobarColor 7 "<fn=2>\58279</fn>") (walXmobarColor 7 "<fn=2>\58254</fn>") . walXmobarColor 7 . ppWindow
|
||||||
formatUnfocused = wrap (lowWhite "[") (lowWhite "]") . walXmobarColor 4 . ppWindow
|
formatUnfocused = wrap (walXmobarColor 4 "<fn=2>\58279</fn>") (walXmobarColor 4 "<fn=2>\58254</fn>") . walXmobarColor 4 . ppWindow
|
||||||
walXmobarColor index = xmobarColor (colors !! index) ""
|
walXmobarColor index = xmobarColor (colors !! index) ""
|
||||||
ppWindow :: String -> String
|
ppWindow :: String -> String
|
||||||
ppWindow = xmobarRaw . (\w -> if null w then "untitled" else w) . shorten 30
|
ppWindow = xmobarRaw . (\w -> if null w then "untitled" else w) . shorten 30
|
||||||
|
@ -197,7 +198,7 @@ myWorkspaces :: [String]
|
||||||
myWorkspaces = show <$> ([1 .. 9] ::[Integer] )
|
myWorkspaces = show <$> ([1 .. 9] ::[Integer] )
|
||||||
myLayout = smartBorders $ windowNavigation tiled ||| smartBorders Full ||| Mirror tiled
|
myLayout = smartBorders $ windowNavigation tiled ||| smartBorders Full ||| Mirror tiled
|
||||||
where
|
where
|
||||||
tiled = mySpacing' 8 $ Tall nmaster delta ratio
|
tiled = named "Tall" $ mySpacing' 8 $ Tall nmaster delta ratio
|
||||||
nmaster = 1 -- Default number of windows in the master pane
|
nmaster = 1 -- Default number of windows in the master pane
|
||||||
ratio = 1 / 2 -- Default proportion of screen occupied by master pane
|
ratio = 1 / 2 -- Default proportion of screen occupied by master pane
|
||||||
delta = 3 / 100 -- Percent of screen to increment by when resizing panes
|
delta = 3 / 100 -- Percent of screen to increment by when resizing panes
|
||||||
|
|
Loading…
Reference in New Issue