Showing posts with label xmonad. Show all posts
Showing posts with label xmonad. Show all posts

Wednesday, December 29, 2010

Weather Alerts for XMobar

By default xmobar's weather module only fetches temperature, humidity, and some other basic weather data for your location.

This script fetches weather alerts (like "Winter Storm Warning") for your county in an xmobar-friendly format. Only for US users since it queries the National Weather Service.

I like it for keeping track of winter weather alerts especially.

Sunday, July 25, 2010

Xmobar 0.11.1 on Ubuntu Lucid Lynx 10.04

The latest version of xmobar (0.11.1) seems to work fine on 10.04, you just need these two packages: libghc6-parsec3-dev and libghc6-stm-dev. Then follow the instructions.

Here is my .xmobarrc in case you are lazy (requires xfonts-jmk):

Config { font = "-jmk-neep-medium-*-semicondensed-*-11-*-*-*-*-*-iso8859-15"
       , bgColor = "black"
       , fgColor = "white"
       , position = Bottom
       , lowerOnStart = True
       , commands = [ Run Weather "KIAD" ["-t","<skyCondition> * <rh>% * <tempF>F","-L","55","-H","90","--normal","green","--high","red","--low","lightblue"] 36000
                    , Run Network "eth0" ["-L","0","-H","32","--normal","green","--high","red","-m","7"] 10
                    , Run Network "lo" ["-L","0","-H","32","--normal","green","--high","red","-m","7"] 10
                    , Run StdinReader
                    , Run Cpu ["-t","Cpu: <total>","-L","0","-H","50","--normal","green","--high","red"] 10
                    , Run MultiCpu ["-t","Cpu: <total0> <total1> <total2> <total3>","-p","3"] 1
                    , Run TopProc [] 20
                    , Run Memory ["-t","Mem: <usedratio>% * Cache: <cache>M","-m","4"] 10
                    , Run Swap [] 10
                    , Run Com "uname" ["-s","-r"] "" 36000
                    , Run Date "%a %b %_d %Y %H:%M:%S" "date" 10
                    ]
       , sepChar = "%"
       , alignSep = "}{"
       , template = "%StdinReader%  |  <fc=#9999FF>%multicpu%</fc>  |  <fc=#99FF99>%memory% * %swap%</fc> |  <fc=#ffd700>%eth0% * %lo%</fc>  | %top% }{ <fc=#ee9a00>%date%</fc> | %KIAD% | %uname%"
       }

Screenshot:

Sunday, May 16, 2010

Useful links for xmonad on Ubuntu Lucid Lynx

Switching to xmonad was definitely worth it. I'm running it in a gnome session.

Useful linkx:
Some images of what the available layouts look like
Introduction to the xmonad Tiling Window Manager
Adding a dzen2 Statusbar to xmonad
How to get it working with the gnome-panel

Interesting comment over on the tombuntu site:
I really think that tiling WM are the way to go, floating every window just wastes so much time in reorganization and resizing. As to why this is still the predominant paradigm I would venture that “tradition” has much to do with it (going back to the first WMs by Xerox) and also the fact that most tiling WMs target a keyboard-using audience which is traditionally limited to advanced computer users. - Jedai
Only thing that worries me a bit is that I read somewhere Gnome isn't going to work as well with third-party window managers in v3.0. Ah, well...