Looking for wmii-like xmonad config

Hi everyone.
I've been using wmii for 1-2 weeks and I feel right at home. The only thing I configured was to change the mod-key from Mod1 to Mod4. It manages windows well in a way that seems natural to me. However, it's limited. I can't resize clients with the keyboard.
I can do that in xmonad! Plus, I'm slowly learning Haskell, and configuring through understanding the short source code of the WM seems ideal.
I want to try xmonad. I don't have the courage to understand everything before having a comfortable environment, and I don't want to spend time in an uncomfortable environment in the hope that I will improve it in the future. So I'm asking your help for a jumpstart.
Please, I'd like a config that manages my windows like this:
* The clients do not move around from one column to another unless I tell them explicitly. They do not move or resize upon getting focus.
* I can move focus between clients with Mod4+h,j,k,l
* I can resize clients with something like Shift-Mod4+h,j,k,l
That's all I need to get comfortable. Does anyone have this at hand? Otherwise I'll stay with wmii and slowly RTFHaskellM.

Windows don't normally resize when you focus them
The docs are pretty good; if you follow the examples, nothing goes wrong, and if you have an idea of what is going on, you can make quite flexible, and safe changes.
I use something like this, (except the mosaicAlt layout) with a couple more extensions (submap, prompts, windowNavigation...) and keybindings added on.
import XMonad
import XMonad.Hooks.DynamicLog
import XMonad.Hooks.UrgencyHook
import XMonad.Hooks.ManageDocks
import XMonad.Layout.ResizableTile
import XMonad.Layout.NoBorders
import XMonad.Util.EZConfig
import XMonad.Util.Run
import System.IO (hPutStrLn)
main = do
xmobar <- spawnPipe "xmobar"
xmonad $ withUrgencyHook NoUrgencyHook $ defaults xmobar
defaults xmobar = defaultConfig
{ modMask = mod4Mask
, layoutHook = smartBorders $ avoidStruts $ ResizableTall 1 (3/100) (1/2) [] ||| Full
, logHook = dynamicLogWithPP defaultPP
{ ppCurrent = xmobarColor "white" ""
, ppOutput = hPutStrLn xmobar
, ppTitle = xmobarColor "orange" "" . shorten 110
, ppVisible = wrap "(" ")"
, ppUrgent = xmobarColor "green" "" . wrap "^" ""
, ppLayout = xmobarColor "green" ""
`additionalKeysP`
[("M-h", sendMessage MirrorShrink)
,("M-l", sendMessage MirrorExpand)
,("M-b", sendMessage ToggleStruts)
And no nasty piping via shell script to the status bar! Yay haskell.
So it appears that xmonad is succeeding at increasing the use of haskell.
PS: you need xmobar (since that is easiest to set up).
~/.xmobarrc:
Config { font = "-*-profont-*-*-*-*-11-*-*-*-*-*-*-*"
, bgColor = "black"
, fgColor = "grey"
, position = Top
, commands = [ Run Weather "CYYZ" ["-L","18","-H","27","--normal","green","--high","red","--low","lightblue"] 36000
, Run Network "wlan0" ["-L","0","-H","32","--normal","green","--high","red"] 10
, Run Network "eth0" ["-L","0","-H","32","--normal","green","--high","red"] 10
, Run Cpu ["-L","3","-H","50","--normal","green","--high","red"] 10
, Run Memory ["-t","Mem: <usedratio>%"] 10
, Run Battery ["-L","50","-H","75","--high","green","--normal","yellow", "--low", "red"] 10
, Run Swap [] 10
, Run Com "uname" ["-s","-r"] "" 36000
, Run Date "%a %b %_d %Y * %H:%M:%S" "mydate" 10
, Run PipeReader "/home/adamvo/.xmonad.log" "xlog"
, Run StdinReader
, sepChar = "%"
, alignSep = "}{"
, template = " %StdinReader% }{ %cpu% | %memory% - %swap% | %eth0% - %wlan0% | <fc=orange>%mydate%</fc> | %battery% "
edit: import System.IO will bring hPutStrLn into scope. Odd, since it did work for me without it.
Last edited by vogt (2008-06-12 21:17:17)

Similar Messages

  • I have 300 stores and I'm looking for a global QOS config that would shape/policy the bandwith based on a % of the detected ISP link speed

    Hi,
    We have 300 stores with mostly the same router config.
    The router in each store is a cisco 891 router capable of doing QOS.
    Each of our store is connected to internet through a local Internet Service Provider (ISP).  They all have different ISP.
    Each store has different Internet plan with different speed, some are DSL, other are using cable modem.
    The connection between the router and the modem is 100Mbps. But the real speed after the modem will be different depending of the Internet plan the store is using. Exemple : 20Mbps download / 2Mbps upload.
    I'm looking for a standard QOS config that would be put in each routeur and that would shape/policy the bandwith based on a % of the detected ISP link speed.  The goal here is to prevent a single desktop computer of the store to take all available bandwith of the ISP link because of youtube , cloud photo upload, etc.
    Because the wan of the router is in the modem at 100Mbps, I cannot use this bandwith indication for the % calculation. The ISP link speed (after the modem)  is much lower than that.  
    In other words, I dont want to set specific qos value or bandwith manual value in each of my 300 router. Especially because the ISP speed is not the same in each site, it's a big job and it's changing all the time.  Stores owner boost their link, etc.
    So, Is there a way within the router to detect the Wan real max speed and to assign dynamically % of the deduced value and assign it to different policy-map rules, etc.
    regards
    Jonathan D

    Disclaimer
    The Author of this posting offers the information contained within this posting without consideration and with the reader's understanding that there's no implied or expressed suitability or fitness for any purpose. Information provided is for informational purposes only and should not be construed as rendering professional advice of any kind. Usage of this posting's information is solely at reader's own risk.
    Liability Disclaimer
    In no event shall Author be liable for any damages whatsoever (including, without limitation, damages for loss of use, data or profit) arising out of the use or inability to use the posting's information even if Author has been advised of the possibility of such damage.
    Posting
    I'm unaware of any (one) "built-in" feature that will do what you're desire.  (BTW, I don't believe PfR, as mentioned by Matt, will do what you desire either, but I've haven't used it in several years.)
    I was looking to address a somewhat similar problem several months ago, and believe I could construct dynamic QoS shaping using an embedded device script working with IP SLA monitoring.  However, the "problem" site (using a cable modem) closed, so I didn't pursue it further.
    An alternative approach would be to use as few policy models as possible.  For example if there are sites with 2, 3 or even 5 Mbps uploads, you might use a 2 Mbps shaper for each.  Of course, sites with more available bandwidth won't obtain the full advantage of it, but your maintenance support will be easier.  Conversely, especially for cable modems, running under their nominal speed might provide much more predictable performance, as HFCs are generally much more variable in their actual available bandwidth, moment to moment.

  • Looking for something like word pad

    I am looking for an app that would let me composea lst of things or items that I could use as a referene.  Windows has word pad and note pad, is there an appfor the iPhone 4s?
    Thanbk you

    Thank you for getting back to me.
    I am looking to have an app that will let me compose something, but not overly complicated.
    I would use it for composing lists that I would reference such as automobile information, prescriptions, class information, etc.  Fancy formatting wouldn't be needed.  Any help and/or direction is greatly appreciated.

  • Looking for software like VirtualDJ in windows.

    Thanks for all.

    yeah problem with FTP is that a lot of our clients block it
    Azure looks ok for small programs, but we are a reseller of large pieces of software that are multi DVD, 2-5 GB iso files. So for one version of software there could be 5 releases. and different clients should only be able to access their release.

  • Looking for something like empathy

    I use empathy in ubuntu, and love it! I have yet to be able to find anything like it for android. the IM app that comes on the fascinate is great, but it only lets me log into one account at a time, and to my knowledge doesn't work with facebook chat. is there an android app that lets me log into all of my IM accounts, including facebook, simultaneously?

    M91-30 wrote:
    I use empathy in ubuntu, and love it! I have yet to be able to find anything like it for android. the IM app that comes on the fascinate is great, but it only lets me log into one account at a time, and to my knowledge doesn't work with facebook chat. is there an android app that lets me log into all of my IM accounts, including facebook, simultaneously?
    Sorry, I don't know, but I had to read the post, I thought you had misspelled "sympathy" in the post title and I wanted to see if I could offer some...
    Geri O

  • Hi. I'm looking for something like MSDN from Microsoft but for JAVA.. ?

    Hi, I've learning java from some books, but I want someting like MSDN but for JAVA, is it exist?
    I'd like it so much. I have API documentation, but it's a little difficult learn somethig from it.
    What do you recomend to me ?
    Do you knowk something like a BIBLE or MSDN for JAVA ?.
    thanks.

    Thank you guys.
    I'm starting java with debian, now. This is so hard for me. but I'm going to resist to come back at hands of MICROSOFT and his XP.
    I like the tutorials, and I have to do a lot of work with them now.
    However, I hope find something good technicial then.
    I'm a little confuse, what is the difference between CORE API DOCS, JDK Programmer Guides
    Java? Platform, Standard Edition 6
    API Specification
    and..
    JDKTM 6 Documentation
    in easy words please...
    thanks.

  • Looking for tree like left navigation

    Has anyone implemented a navigation that would be like the windows file explorer folder tree.
    I want my navigation to be collapsable, indented and tree like
    Example
    Community 1Community 2 page 1 page 2 sub community 1 sub community 2 sub page 1 sub page 2Community 3...

    Thanks Yoav - FYI - we've been working on putting together a full function demo version (with time expiry) of the explorer (and suite)- so, starting from early next week we should have a version that you can install in your own environment and have a play with without having to fork out the dollars!
    Let me know if you'd like a copy.
    On the other hand - it sounds like the question is actually about a nav, rather than a portlet?
    Regards
    Steve HayrCollaborative Technologies+61 2 9409 [email protected]

  • Free Apps looking for VPP in Apple Config

    We have a small cart of iPads that were managed by iTunes in the past (creating a master/back up) but now we have Apple Configurator (AC).  Our media specialist dowloaded apps that were free back then but as of today are paid apps.  When he tries adding them to AC it is prompting him for VPP codes. He is using the same Apple ID that he used before.  Any way around this? 

    Unfortunately I don't think there is a way around this I saw a post a few days ago from gyrhead who said this: Configurator communicates with the store in regards to paid apps and VPP codes.  Even if you were able to deploy them on the day they were free the next time you went through a preparation or supervision cycle they would not install.

  • Looking for quicken-like app for small bus

    Before switching to mac I used an old version of quicken.  Basically just a check register, and invoicing.
    I am a sole proprietor, no employees.  Need some simple monthly, quarterly and annual reports. 
    Anyone using anything besides quicken for mac?

    Quicken for mac was released several weeks ago. You can find it on Mac App Store. I usually use it with Numeric Notes for simple invoicing and calculations, wich also available on Mac App Store. Hopes either of apps will be useful for you.

  • [SOLVED] looking for package like debtree on debian

    do you know of a package that draws dependency graphs of installed packages, i.e. "draw me a graph of the package vlc and its dependencies"?
    On Debian, there is a tool called debtree, on arch I found pacgraph, but pacgraph draws the entire system, I want to specify specific packages...
    Thanks!
    Last edited by awayand (2011-05-30 08:48:08)

    Wey wrote:
    That asumes you already know where the binary is located. On the other side, my approach implies you know the right package name. The following would resolve these problems:
    pacman -Qo $( which pactree )
    Actually, you need neither to know the path nor use 'which':
    [karol@black ~]$ pacman -Qo pactree
    /usr/bin/pactree is owned by pacman 3.5.2-1
    http://projects.archlinux.org/pacman.gi … ?id=v3.4.0
    - allow -Qo to perform a functional 'which' (FS#8798)
    Last edited by karol (2011-05-17 19:30:10)

  • Looking for GPS wth muliple destination routing. (like Mapquest's route planner)

    I am looking for a GPS that I can put in ?? destinations and can continue from one to another.  I currently use Mapquest's Route Planner, and then put each destination seperately so I do not have to read while driving.  I think there are some available someplace.   I can get up to 26 in Mapquest, but, I am looking for something like that.
    Solved!
    Go to Solution.

    drake1029 –
    I am so sorry that no one has provided you with an
    answer. I have done some research on this topic and found that most major
    manufacturers offer this on their GPS systems. It is know and route/trip
    planner or something along those lines. I looked through a few GPS systems and didn’t
    see that this option was included in the features. This either means that it is
    such a standard feature that they don’t note it, or the models I looked at just
    don’t have it.
    I would consult with a GPS sales associate at your local
    Best Buy® store to see if the unit you are interested in definitely has it. Sorry
    again for the delayed response. Please let me know if there is anything else I
    can help you with.
    Thanks,
    Jesus|Senior Social Media Specialist | Best Buy® Corporate
     Private Message

  • Looking for a web based filemanager (or similar).

    Hello,
    I have a small server at home hosting all my files and I am looking for a simple setup to be able to access these files from pretty much every where.
    Usually I'm using ssh or sftp but the thought of being able to access the files through a web interface is really sounding good. So, I have been searching for a web based file manager and found a few, but none that really made me go wow.
    The best so far is probably Ajaxplorer. One thing that I'm looking for though is a PAM authentication feature which Ajaxplorer doesn't have. Are there any web based file managers around that supports this?
    Or... maybe I'm looking for the wrong things. Are there other nifty solutions available for accessing files on a remote folder through a web interface?

    zenlord wrote:
    If PAM authentication is all you're missing, why don't you setup http_auth?
    THX for the suggestion, I was looking for something like this myself and the next version should have LDAP_auth - alrighty then!
    Zl.
    http_auth... do you have any nice links on how to use it? I've never heard of it
    Ajaxplorer is quite nice after all and setting up repositories isn't all that bad. Looks like I'm sticking to it while I continue my search for another app.

  • Looking for examples of the Exchange Page

    Hey! Any Body??
    I am looking to display data like on the Exchange page with
    logo and links in the tables. Does any one know of where I can
    start looking for something like that? I like the layout of the
    Exchange page. If any of you know something please let me know.
    thanks.

    You can find several examples that will work with the DAQCard-1200 at zone.ni.com/libraries/.
    Then look under Data Acquisition. There are also examples that ship with
    LV and NIDAQ. Look in ...\Labview\examples\daq\anlogin\.
    "david frazao" wrote:
    >Thank you , if you can help me by sending VI examples for the 1200 daq-card>,
    with 2 or mores inputs>>

  • How to make a dynamic textbox scroll down/up for devices like iPhone/Android/iPad etc?

    Problem: When doing anAPP to test it out in my smartphone devices. I tested it on my computer and it works fine. But in devices, im not able to scroll the textbox down/up because my devices dont have a scroll wheel to scroll up/down.
    Assuming that im looking for something like this:
    When I use my fingers to touch on the textbox and slide it upwards, the textbox will scroll down..
    Thank you for your help.

    Hi, thanks for your reply.
    By using touchevents, how do I...
    1) know that if my fingers is sliding up or down?
    2) scroll the textbox up/down?
    import flash.events.TouchEvent;
    Multitouch.inputMode = MultitouchInputMode.TOUCH_POINT;
    this.addEventListener(TouchEvent.TOUCH_BEGIN, touchBeginHandler);
    this.addEventListener(TouchEvent.TOUCH_END, touchEndHandler);
    function  touchBeginHandler(event:TouchEvent):void
    function  touchEndHandler(event:TouchEvent):void

  • Looking for labview driver to control Tennesy Chamber

    Looking for Labview driver to control Tennesy Jr Environmental Chamber
    (Watlow series 942 controller) LV6.0
    Email [email protected] if you can help out.
    Thanks,
    David.

    The first place to look for stuff like this is the vendor's web page--in this case www.watlow.com. How did I know this? I guessed. You can typically guess 90% of company websites...
    In a couple minutes I was able to find your controller and a document on how to communicate with it. If you email me I can send it to you (it's too big to post...).
    Next, reading the document (which by the way contains a good basic primer on serial communications)I saw that one of the protocols you can use for communicating with the 942 is Modbus RTU. I can also send you a set of modbus drivers.
    Hope this helps in thermal testing your chips...
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

Maybe you are looking for