1. Olle Lundberg
  2. dotfiles

Commits

Olle Lundberg  committed 53b614b

Reconfigure xmonad.

  • Participants
  • Parent commits a301361
  • Branches default

Comments (0)

Files changed (2)

File .xmobarrc

View file
                     ]
        , sepChar = "%"
        , alignSep = "}{"
-       , template = "%cpu% | %memory% * %swap% | %eth0% - %wlan0% | %StdinReader% }{ <fc=#ee9a00>%date%</fc>| %ESSB% | %uname%"
+       , template = "%StdinReader% }{ %cpu% | %memory% * %swap% | %eth0% - %wlan0% | <fc=#ee9a00>%date%</fc> | %uname%"
        }

File .xmonad/xmonad.hs

View file
 -- Imports.
 import XMonad
 import XMonad.Hooks.DynamicLog
-import XMonad.Hooks.SetWMName
 
- 
 -- The main function.
 main = xmonad =<< statusBar myBar myPP toggleStrutsKey myConfig
 
-startupHook = myStartupHook
+-- Command to launch the bar.
+myBar = "xmobar"
 
--- Command to launch the bar.
-myBar = "i3status|xmobar"
+-- Custom PP, configure it as you like. It determines what is being written to the bar.
+myPP = xmobarPP { ppCurrent = xmobarColor "#429942" "" . wrap "[" "]" }
 
--- Custom PP, configure it as you like. It determines what's being written to the bar.
-myPP = xmobarPP { ppCurrent = xmobarColor "#429942" "" . wrap "<" ">" }
-
--- Keybinding to toggle the gap for the bar.
+-- Key binding to toggle the gap for the bar.
 toggleStrutsKey XConfig {XMonad.modMask = modMask} = (modMask, xK_b)
 
-
-myStartupHook = setWMName "LG3D"
-
-
 -- Main configuration, override the defaults to your liking.
 myConfig = defaultConfig { modMask = mod4Mask }