{"id":1127,"date":"2012-09-26T05:48:32","date_gmt":"2012-09-26T04:48:32","guid":{"rendered":"http:\/\/blog.spanger.org\/?p=1127"},"modified":"2012-09-26T05:58:20","modified_gmt":"2012-09-26T04:58:20","slug":"xmobar-example","status":"publish","type":"post","link":"https:\/\/blog.spanger.org\/?p=1127","title":{"rendered":"xmobar example"},"content":{"rendered":"<p>If you are using xmonad as your desktop manager, with xmobar then you can try this example.<\/p>\n<p>In you home directory edit ~.xmobarcc with you preferred editor.<\/p>\n<pre><code>\r\nvim .xmobarrc\r\nConfig { font = \"-*-Fixed-Bold-R-Normal-*-13-*-*-*-*-*-*-*\"\r\n       , bgColor = \"black\"\r\n       , fgColor = \"grey\"\r\n       , position = TopW L 90\r\n       , commands = [ Run Weather \"LJLJ\" [\"-t\",\" <tempC>C\",\"-L\",\"64\",\"-H\",\"77\",\"--normal\",\"green\",\"--high\",\"red\",\"--low\",\"lightblue\"] 36000\r\n                    , Run Cpu [\"-L\",\"3\",\"-H\",\"50\",\"--normal\",\"green\",\"--high\",\"red\"] 10\r\n                    , Run Network \"wlan1\" [\"-L\",\"0\",\"-H\",\"32\",\"--normal\",\"green\",\"--high\",\"red\"] 10\r\n                    , Run Memory [\"-t\",\"Mem: <usedratio>%\"] 10\r\n                    , Run Swap [] 10\r\n                    , Run Date \"%a %b %_d %l:%M\" \"date\" 10\r\n                    , Run Battery [\"-t\",\"Batt: <left>% \/ <timeleft>\",\"-L\",\"25\",\"-H\",\"75\",\"-h\",\"green\",\"-n\",\"yellow\",\"-l\",\"red\",\"--\",\"-c\",\"energy_full\"] 10\r\n                    , Run StdinReader\r\n                    , Run CommandReader \"\/usr\/bin\/ledmon\" \"LED\"\r\n                    ]\r\n       , sepChar = \"%\"\r\n       , alignSep = \"}{\"\r\n       , template = \"%StdinReader% }{ <fc=#ffff00>%LED%<\/fc> %cpu% | %battery% | %memory% * %swap% | %wlan1%   <fc=#ee9a00>%date%<\/fc> | %LJLJ%\"\r\n       }\r\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>If you are using xmonad as your desktop manager, with xmobar then you can try this example. In you home directory edit ~.xmobarcc with you preferred editor. vim .xmobarrc Config { font = &#8220;-*-Fixed-Bold-R-Normal-*-13-*-*-*-*-*-*-*&#8221; , bgColor = &#8220;black&#8221; , fgColor = &#8220;grey&#8221; , position = TopW L 90 , commands = [ Run Weather &#8220;LJLJ&#8221; [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[117,118,116],"class_list":["post-1127","post","type-post","status-publish","format-standard","hentry","category-linux-stuff","tag-xmobar","tag-xmobarcc","tag-xmonad"],"_links":{"self":[{"href":"https:\/\/blog.spanger.org\/index.php?rest_route=\/wp\/v2\/posts\/1127","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.spanger.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.spanger.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.spanger.org\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.spanger.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1127"}],"version-history":[{"count":9,"href":"https:\/\/blog.spanger.org\/index.php?rest_route=\/wp\/v2\/posts\/1127\/revisions"}],"predecessor-version":[{"id":1135,"href":"https:\/\/blog.spanger.org\/index.php?rest_route=\/wp\/v2\/posts\/1127\/revisions\/1135"}],"wp:attachment":[{"href":"https:\/\/blog.spanger.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1127"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.spanger.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1127"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.spanger.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1127"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}