Skip to content

Instantly share code, notes, and snippets.

@scturtle scturtle/.stalonetrayrc
Last active Aug 5, 2017

Embed
What would you like to do?
xmonad simple config
icon_gravity E
geometry 5x1-0+0
max_geometry 5x1-0+0
background "#000000"
icon_size 20
kludges force_icons_size
skip_taskbar
Config { font = "xft:Ubuntu Mono:pixelsize=18:Bold"
, bgColor = "black"
, fgColor = "grey"
, position = Top
, commands = [ Run Cpu [] 10
, Run DiskU [("sda1", "ssd: <usedp>%")] [] 20
, Run Date "%a %m/%d %X" "date" 10
, Run StdinReader
]
, sepChar = "%"
, alignSep = "}{"
, template = " %StdinReader% }{ %cpu% | %disku% | %date% "
}
import XMonad
import XMonad.Hooks.DynamicLog
import XMonad.Hooks.ManageDocks
import XMonad.Util.Run(spawnPipe)
import XMonad.Util.EZConfig(additionalKeys)
import System.IO
main = do
xmproc <- spawnPipe "xmobar"
xmonad $ defaultConfig
{ manageHook = manageDocks <+> manageHook defaultConfig
, layoutHook = avoidStruts $ layoutHook defaultConfig
, logHook = dynamicLogWithPP xmobarPP
{ ppOutput = hPutStrLn xmproc
, ppTitle = xmobarColor "#cccccc" "" . shorten 80
, ppCurrent = xmobarColor "#e6db74" "" . wrap "[" "]"
}
, modMask = mod4Mask
, workspaces = ["term", "web"] ++ map show [3..9]
, focusedBorderColor = "#0077bb"
, normalBorderColor = "#49483e"
, borderWidth = 2
-- , terminal = "urxvt"
}
`additionalKeys`
[
((mod4Mask, xK_p), spawn "dmenu_run -fn -*-fixed-*-*-*-*-18-*-*-*-*-*-*-*")
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.