Skip to content

Instantly share code, notes, and snippets.

@nekolinuxblog
Last active September 5, 2020 14:08
Show Gist options
  • Save nekolinuxblog/f1c36f951ee669c6a60f001dc8c5417f to your computer and use it in GitHub Desktop.
Save nekolinuxblog/f1c36f951ee669c6a60f001dc8c5417f to your computer and use it in GitHub Desktop.
xmobar sample for ok-xmonad.blogspot.com
----------------------------------------------------------------------
-- a shunsk's base config file of xmobar
-- ok-xmonad.blogspot.com
----------------------------------------------------------------------
Config {font = "xft:M+1 mn:size=14:medium:antialias=true"
, additionalFonts = []
, bgColor = "#6290C3"
, fgColor = "#F1FFE7"
, border = BottomB
, borderWidth = 1
, borderColor = "#222266"
, alpha = 255
, position = Top
, template =
" %StdinReader%}{| %cpu% | %memory% | %dynnetwork% %wi% | %battery% | %date% "
, commands =
[ Run StdinReader
, Run Cpu
[ "--template" , "CUP: <total>%"
, "--minwidth" , "3"
, "--Low" , "30"
, "--High" , "80"
, "--low" , "#C2E7DA"
, "--normal" , "#1A1B41"
, "--high" , "#FF9F1C"
] 60
, Run Memory
[ "--template" , "MEM: <usedratio>%"
, "--minwidth" , "3"
, "--Low" , "30"
, "--High" , "80"
, "--low" , "#C2E7DA"
, "--normal" , "#1A1B41"
, "--high" , "#FF9F1C"
] 60
, Run Battery
[ "--template" , "<acstatus>"
, "--Low" , "10"
, "--High" , "99"
, "--low" , "#FF9F1C"
, "--normal" , "#1A1B41"
, "--high" , "#C2E7DA"
, "--"
, "-o" , "BAT: <left>%"
, "-O" , "AC: <left>%"
, "-i" , "AC: <left>%"
] 60
, Run DynNetwork
[ "--template" , "<dev>: <tx>KB <rx>KB"
, "--minwidth" , "4"
, "--Low" , "500000"
, "--High" , "2000000"
, "--low" , "#C2E7DA"
, "--normal" , "#1A1B41"
, "--high" , "#FF9F1C"
] 20
, Run Wireless ""
[ "--template" , "<fc=#6290C3,#F1FFE7> <essid> </fc> <quality>"
, "--Low" , "50"
, "--High" , "70"
, "--low" , "#C2E7DA"
, "--normal" , "#1A1B41"
, "--high" , "#FF9F1C"
] 60
, Run Date "%Y/%-m/%-d %a %H:%M " "date" 10
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment