2022-08-24 08:07:33 +00:00
|
|
|
import XMonad
|
|
|
|
|
|
|
|
import XMonad.Hooks.DynamicLog
|
|
|
|
import XMonad.Hooks.EwmhDesktops
|
|
|
|
import XMonad.Util.EZConfig
|
|
|
|
import XMonad.Util.Loggers
|
|
|
|
import XMonad.Util.Ungrab
|
2023-09-02 17:06:00 +00:00
|
|
|
import XMonad.Config.Xfce
|
2022-08-24 08:07:33 +00:00
|
|
|
|
|
|
|
main :: IO ()
|
|
|
|
main = xmonad
|
|
|
|
. ewmh
|
|
|
|
=<< statusBar "xmobar" myXmobarPP toggleStrutsKey myConfig
|
|
|
|
where
|
|
|
|
toggleStrutsKey :: XConfig Layout -> (KeyMask, KeySym)
|
|
|
|
toggleStrutsKey XConfig{ modMask = m } = (m, xK_b)
|
|
|
|
|
2023-09-02 17:06:00 +00:00
|
|
|
myConfig = xmonad xfceConfig
|
2022-08-24 08:07:33 +00:00
|
|
|
{ borderWidth = 4
|
2023-05-17 06:17:02 +00:00
|
|
|
, terminal = "/home/adam/.local/bin/alacritty"
|
2022-08-24 08:07:33 +00:00
|
|
|
, modMask = mod4Mask
|
|
|
|
, focusedBorderColor = "#ff00ff"
|
|
|
|
}
|
2023-05-17 06:17:02 +00:00
|
|
|
`additionalKeysP`
|
2023-09-02 17:06:00 +00:00
|
|
|
[ ("M-S-<Return>", spawn "/home/adam/.local/bin/alacritty msg create-window || /home/adam/.local/bin/alacritty")
|
|
|
|
, ("M-S-q", spawn "xfce4-session-logout")
|
|
|
|
]
|
2022-08-24 08:07:33 +00:00
|
|
|
|
|
|
|
myXmobarPP :: PP
|
|
|
|
myXmobarPP = def
|
|
|
|
{ ppSep = magenta " • "
|
|
|
|
, ppTitle = shorten 32
|
|
|
|
, ppTitleSanitize = xmobarStrip
|
|
|
|
, ppCurrent = wrap (mediumblue "[") (mediumblue "]")
|
|
|
|
, ppHidden = midnightblue . wrap " " ""
|
|
|
|
, ppHiddenNoWindows = teal . wrap " " ""
|
|
|
|
, ppUrgent = red . wrap (red "!") (red "!")
|
|
|
|
}
|
|
|
|
where
|
|
|
|
midnightblue, mediumblue, magenta, red, white, yellow, teal :: String -> String
|
|
|
|
midnightblue = xmobarColor "#191970" ""
|
|
|
|
mediumblue = xmobarColor "#0000cd" ""
|
|
|
|
magenta = xmobarColor "#ff79c6" ""
|
|
|
|
white = xmobarColor "#f8f8f2" ""
|
|
|
|
yellow = xmobarColor "#f1fa8c" ""
|
|
|
|
red = xmobarColor "#ff5555" ""
|
|
|
|
teal = xmobarColor "#008080" ""
|