From d95a20634eb8a2fad8aa5a8cd49d0e95b4c009ea Mon Sep 17 00:00:00 2001 From: Sakooooo <78461130+Sakooooo@users.noreply.github.com> Date: Tue, 25 Jul 2023 07:22:31 +0300 Subject: [PATCH] ok --- config/xmonad/xmonad.hs | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/config/xmonad/xmonad.hs b/config/xmonad/xmonad.hs index d7a3e92d..058a912e 100644 --- a/config/xmonad/xmonad.hs +++ b/config/xmonad/xmonad.hs @@ -260,9 +260,25 @@ myLogHook h = dynamicLogWithPP $ def { myXmobarFormat = def { ppCurrent = xmobarColor "black", ppExtras = [], - ppHidden = xmobarColor "white" . wrap " " "", + ppHidden = white . wrap " " "", ppOrder = \(ws:_) -> [ws] } +where + formatFocused = wrap (white "[") (white "]") . magenta . ppWindow + formatUnfocused = wrap (lowWhite "[") (lowWhite "]") . blue . ppWindow + + -- | Windows should have *some* title, which should not not exceed a + -- sane length. + ppWindow :: String -> String + ppWindow = xmobarRaw . (\w -> if null w then "untitled" else w) . shorten 30 + + blue, lowWhite, magenta, red, white, yellow :: String -> String + magenta = xmobarColor "#ff79c6" "" + blue = xmobarColor "#bd93f9" "" + white = xmobarColor "#f8f8f2" "" + yellow = xmobarColor "#f1fa8c" "" + red = xmobarColor "#ff5555" "" + lowWhite = xmobarColor "#bbbbbb" "" myStatusBar = statusBarProp "xmobar" (pure myXmobarFormat) ------------------------------------------------------------------------