How do I fix this Xmonad configuration

Hi,
I am trying to add multimedia keys support for my Xmonad. Here is my current
setup.
import XMonad
import XMonad.Hooks.DynamicLog
import XMonad.Hooks.ManageDocks
import XMonad.Util.EZConfig
import System.IO
import XMonad.Actions.Volume
main = xmonad =<< statusBar myBar myPP toggleStrutKey myConfig
-- Command to launch the bar
myBar = "xmobar"
-- Custom PP, it determines what is written to the bar
myPP = xmobarPP { ppCurrent = xmobarColor "#429942" "" . wrap "<" ">" }
-- Key bindings to toggle the gap for the bar
toggleStrutKey XConfig {XMonad.modMask = modMask} = (modMask, xK_b)
myConfig = defaultConfig {
    manageHook = manageDocks <+> manageHook defaultConfig,
    layoutHook = avoidStruts $ layoutHook defaultConfig,
    modMask = mod4Mask, -- Rebind Mod to windows key
    borderWidth = 3
    } `additionalKeys`
    [ ((mod4Mask .|. shiftMask, xK_z), spawn "xscreensaver-command -lock"),
      ("<XF86AudioLowerVolume>", lowerVolume 3 >> return ())
However, I am getting this error:
Error detected while loading xmonad configuration file: /home/yasar/.xmonad/xmonad.hs
xmonad.hs:8:8:
    No instances for (Show (l0 GHC.Word.Word32),
                      Read (l0 GHC.Word.Word32))
      arising from a use of `xmonad'
    Possible fix:
      add instance declarations for
      (Show (l0 GHC.Word.Word32), Read (l0 GHC.Word.Word32))
    In the first argument of `(=<<)', namely `xmonad'
    In the expression:
        xmonad =<< statusBar myBar myPP toggleStrutKey myConfig
    In an equation for `main':
        main = xmonad =<< statusBar myBar myPP toggleStrutKey myConfig
xmonad.hs:8:19:
    No instance for (LayoutClass l0 Window)
      arising from a use of `statusBar'
    Possible fix:
      add an instance declaration for (LayoutClass l0 Window)
    In the second argument of `(=<<)', namely
      `statusBar myBar myPP toggleStrutKey myConfig'
    In the expression:
        xmonad =<< statusBar myBar myPP toggleStrutKey myConfig
    In an equation for `main':
        main = xmonad =<< statusBar myBar myPP toggleStrutKey myConfig
xmonad.hs:26:8:
    Couldn't match expected type `(ButtonMask, KeySym)'
                with actual type `[Char]'
    In the expression: "<XF86AudioLowerVolume>"
    In the expression:
      ("<XF86AudioLowerVolume>", lowerVolume 3 >> return ())
    In the second argument of `additionalKeys', namely
      `[((mod4Mask .|. shiftMask, xK_z),
         spawn "xscreensaver-command -lock"),
        ("<XF86AudioLowerVolume>", lowerVolume 3 >> return ())]'
Please check the file for errors.
xmonad: xmessage: executeFile: does not exist (No such file or directory)
I was trying to follow the example in here:
http://www.haskell.org/haskellwiki/Xmon … _xmonad.hs
, However, I couln't make it work. I am really new to Xmonad, and never used
Haskell before, so any help is appreciated.
Last edited by yasar11732 (2012-02-14 15:01:13)

pacman -Sf catalyst-utils should bring back /etc/ati, iirc.

Similar Messages

  • I am running Firefox 3.5.4. When I try to upgrade to a newer version I get "Firefox is configured to use a proxy server that is refusing connections." Then, I have to re-install 3.5.4 to get to the internet. I have Windows XP. How do I fix this?

    Any version of Firefox above 3.5.4 I try to install will not let me get to the internet. Each Firefox gets upgraded it keeps giving me the error message that "Firefox is configured to use a proxy server that is refusing connections." Then I need to re-install 3.5.4 to get to the internet. This is driving me nuts! How do I fix this?

    You're welcome

  • Air port won't turn on, it says AirPort:Not Configured why? how do i fix this help!

    I dont know what is going on! My kids did something while I left it charging. It won't let me connect to the internet, its saying Airport off and at first when I tried clicking Airport on, it would'nt work now its in grey saying 'Airport: Not configured'. How do I fix this? help!

    What OS X version are you using?
    To determine which Mac you have, its OS X version, what kind of CPU it uses, and how much memory is installed:  > About This Mac

  • I go to start the "Apple Mobile Device" and it says the side-by-side configuration is incorrect. (Error 14001)  How do I fix this?

    I go to start the "Apple Mobile Device" and it says the side-by-side configuration is incorrect. (Error 14001)  How do I fix this?

    Delete them and then download them from the desired Apple ID. This may require repurchasing paid applications.
    (95675)

  • Mirroring to AppleTV does not work, sound works, but no video.  How do I fix this?

    I have a new Macbook Pro, and I am unable to mirror to my AppleTV, 2nd generation.  I can play music from the Macbook through my AppleTV, but I am unable to mirror.  I click the button to mirror, but a blue screen breifly pops on on the computer, then the TV goes black.  How do I fix this?
    Thank you.

    About AirPlay and Airplay Mirroring
    AirPlay Mirroring requires a second-generation Apple TV or later, and is supported on the following Mac models: iMac (Mid 2011 or newer), Mac mini (Mid 2011 or newer), MacBook Air (Mid 2011 or newer), and MacBook Pro (Early 2011 or newer). For non-qualifying Macs you can try using Air Parrot.
    Several Apple Articles Regarding AirPlay
    Apple TV (2nd and 3rd gen)- How to use AirPlay Mirroring
    How to set up and configure AirPort Express for AirPlay and iTunes
    About AirPlay Mirroring in OS X Mountain Lion
    iTunes 10- About playing music with AirPlay
    Troubleshooting AirPlay and AirPlay Mirroring
    Using AirPlay
    Thanks to the $15 Beamer, AirPlay streaming is still possible on Macs  that do not support Airplay and mirroring.
    Another solution is the Air Parrot.

  • My movies and music videos won't show up on screen, I can hear the sound but not see the video how do I fix this?

    My movies and music videos won't show up on my computer screen, I can hear the sound but not see the video how do I fix this? I'm not sure what to do as far as turning my purchased movie into DVD goes either. I just want to put the movie onto a DVD disc but my itunes won't even show that I have a blank disc in the drive, I'm not sure what is wrong or how to fix this, any help at all would be much appreciated.

    Hi @anthony7722 ,
    Thank you for your query, I will do my best to help!
    I grasp that you uninstalled the Intel graphic driver and the catalyst control.  You reinstalled the Intel driver and now you can view and hear videos on the Internet but you are unable to set the resolution as high as previously.
    When I checked the specifications for your notebook I see that you have switchable graphics.
    Here are two links that I believe will help.
    Overview of Switchable Graphics or Dual GPUs
    Switchable Graphics on Notebooks Configured with Intel and ATI GPUs
    Here is a link to HP Pavilion dv7-6150eb Entertainment Notebook PC Drivers
    Please try this process.
    1. Download the chipset driver, and both graphic drivers and save them  but do not install them yet
    2, Delete the chipset driver and install the updated one.
    3. restart your notebook
    4.Delete the Intel driver and install the updated one
    5. restart your notebook
    6. Delete the AMD driver and install the updated driver. 
    You should now have a Catalyst Control Center.
    This should now allow you to use the higher graphic card which should support the higher resolution.
    I hope this helped.
    Sparkles1
    I work on behalf of HP
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos, Thumbs Up" on the bottom right to say “Thanks” for helping!

  • My microsoft office programs (Home and Business 2013) all desplay error message at startup stating " non-commercial use, not licenced product". How do I fix this?

    Hi,
    Whenever I start any of my microsoft programs I get an error message stating "non-commercial use, not licenced product" and I cannot do anything in the programs. I havve the Home and Business 2013 version.
    My husband bought the office programs for his and my computer and so they are both registered to his name however my email is the login, I dont know if this is relevant.
    How do I fix this?

    Hi,
    Based on your description, several possibilities come to my mind.
    1. You mentioned your husband bought the Office Suite for you, did he purchase one product key or two? We need to confirm if the product key can be installed on multiple machines, if a product key can be only installed once and he installed it
    on his computer first, you should purchase a new product key to activate your Office.
    Since the policy differs in different areas, to confirm how many machines the product key can be installed on, let your husband ask the retailer or contact the local customer service to get the answer:
    http://support2.microsoft.com/gp/customer-service-phone-numbers/en-us
    2. Please confirm your Office version. Based on the message "non-commercial use", I found this kb:
    http://support.microsoft.com/kb/937676/
    But it's for Office Home and Student instead of Office Home and Business, we can perform the steps below to find the Microsoft Software License Terms:
    1. Start and Office program.
    2. On the File (Backstage) tab, click Account.
    3. Click About (Product name: Word, Excel etc..), in the window that opens, click
    View the Microsift Software License Terms link.
    3. If your Office is a trial version or the product key is not for the version that you are using, consider to uninstall it first, and install the appropriate version. You can probably get the installation media from your husband.
    Regards,
    Melon Chen
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • When i try to update my itunes on my pc i keep getting the messaage that there was a problem with the installer and it could not finish. how do i fix this? i`ve tried to download 3 times already.

    when i try to update my itunes on my pc i keep getting the messaage that there was a problem with the installer and it could not finish. how do i fix this? i`ve tried to download 3 times already.

    Hi
    I've got a similar problem.  iTunes v10.2 worked fine, but when I tried to update it to 10.5 I got a 'Bonjour' error.  I eventually solved that but I still couldn't upgrade to 10.5, so I deleted every single Apple, Quicktime, iTunes, etc file on my PC using Revo Unistaller (because the normal Windows Add/Delete programs wouldn't work) but now, when I install the latest iTunes version from scratch (on XP SP3), it says: "the installer encountered errors before it could be configured.... your system has not been modified" 
    Any ideas?
    Rick

  • Every time I want to download itunes 11, I keep getting a network error. I have tried changing my location but every time, I get a network error. I have been able to install itunes 10.7 without a problem. How do I fix this?? Help!!

    I recently updated my ipod to iOS 7. Now that I have done this, my itunes needs to be itunes 11. I have been able to download itunes 10.7 but now I need an upgrade. Every time I go to update it, I get a "Failed-Network Error" message. I have tried changing my location and networks but I still get the same message. I really need to download itunes 11 inorder for my ipod to work with the itunes. How do I fix this problem?? Help!!!

    I had the same problem and tried restarting my computer. It configured windows updates for a while, then iTunes downloaded successfully. Hope this helps!

  • When using Firefox 3.6.6 with Windows 7 operating system, Windows will close Firefox. How do I fix this?

    I am using Firefox 3.6.6 on a Windows 7 PC. About once a day. I get a Windows error message saying that it had to close Firefox. How do I fix this? I have toolbar for Firefox, Google toolbar for Firefox, Java Console 6, Java Quick Starter 1, OneClick YouTube downloader. StumbleUpon 3.64, and Trend Micro Toolbar 1.6.0.1126

    Start Firefox in [[Safe Mode]] and go to '''Tools->Addons->Extensions''' and try disabling Trend Micro Toolbar.
    Sometimes AV softwares install certain toolbars that mess with Firefox configuration settings

  • I don't know what happened to my iphone but for some reason, siri is talking to me now and I have to tap everything 3 times inorder for my phone to do what I want it to do. How can I fix this problem?

    I don't know what happened to my iphone but for some reason, siri is talking to me now and I have to tap everything 3 times inorder for my phone to do what I want it to do. How can I fix this problem?

    Hello, Alayah14. 
    Thank you for visiting Apple Support Communities.
    This sounds like VoiceOver has been enabled.  Here are the steps on how to disable this feature.
    iOS: Configuring accessibility features
    http://support.apple.com/kb/HT5018
    Cheers,
    Jason H.

  • When i try to drag music from itunes to my ipod i get blocked. How do I fix this?

    When i try to drag music from itunes to my ipod i get blocked. How do I fix this?

    Do you have iTunes configured to manually manage music and videos in the Summary Tab of iTunes?

  • I have CS 6 installed on a Win 7 OS machine. I can not connect to the internet to get updates from within the program. How do I fix this?

    I have CS 6 installed on a Win 7 OS machine. I can not connect to the internet to get updates from within the program. How do I fix this?

    IP routing doesn't work the way many folks might initially think it does; functional IP routing requires manual configuration and the establishment of static routes and default routes specific to the local network configurations, and it's very easy to get it wrong, or to get the default route swapped. Multiple NIC boxes don't magically work, either. (Been there, done that, wondered what happened to my network when the paths got reordered or my route settings were messed up, etc.)
    Routing configuration errors can be quite subtle, too. (Again, voice of experience. Ever had a thousand-seat office LAN accidentally routing through your desktop? As the, um, unnamed guilty party discovered, getting into that configuration was subtle. Seeing the performance crater on the fellow's box and on the LAN was obvious.)
    Knowing how IP routing works is a prerequisite to getting this configuration to work; there's manual configuration required. Clearly something has gone weird here.
    What to do? Read up on IP routing. I'll again suggest the threads and the manual mentioned earlier.
    And in general, I prefer to avoid using my comparatively expensive Mac boxes as sub-optimal IP routers or as firewall boxes. General-purpose operating systems and generic x86 boxes are going to be inherently poor IP routers. Dedicated routers (or embedded or surplus x86 boxes with routing software loaded) offload the Mac boxes here, and are also typically easier to configure manage. And "real" IP routers can have hardware specific to efficiently routing packets. Use of an outboard firewall or firewall-router box also greatly simplifies gateway routing, too; it's a configuration that many folks and many businesses tend to use.

  • HT201210 I am trying to update my ipad 2 but it keeps telling me that it isn't eligible for the requested build how can i fix this problem

    I am trying to update my ipad 2 but it keeps telling me that it isn't eligible for the requested build how can i fix this problem

    This device is not eligible for the requested build (Also sometimes displayed as an "error 3194")
    Update to the latest version of iTunes.
    Third-party security software or router security settings can also cause this issue. To resolve this, followTroubleshooting security software issues.
    Downgrading to a previous version of iOS is not supported. If you have installed software to perform unauthorized modifications to your iOS device, that software may have redirected connections to the update server (gs.apple.com) within the Hosts file. Uninstall the unauthorized modification software from the computer.
    Edit out the "gs.apple.com" redirect from your hosts file, and then restart the computer for the host file changes to take affect. For steps to edit the Hosts file and allow iTunes to communicate with the update server, see iTunes: Troubleshooting iTunes Store on your computer, iPhone, iPad, or iPod—follow steps under the heading Blocked by configuration (Mac OS X / Windows) > Rebuild network information > The hosts file may also be blocking the iTunes Store. If you do not uninstall the unauthorized modification software prior to editing the hosts file, that software may automatically modify the hosts file again on restart.
    Avoid using an older or modified .ipsw file. Try moving the current .ipsw file (see Advanced Steps > Rename, move, or delete the iOS software file (.ipsw) below for file locations), or try restoring in a new user to ensure that iTunes downloads a new .ipsw.
    Copied from this website.
    http://support.apple.com/kb/TS3694#error3194

  • I have a 3GS and find my pictures jumping up behind the header. How do I fix this?

    I have a 3GS and find my pictures jumping up behind the header. How do I fix this?

    Hi,
    First, close all the apps who are running in the same time.
    You can desactivate few "notification" who drain the battery so.
    You can put off the auto configure of the hour.
    You can turn off bluetooth or wifi or both when no using.
    I suggest you to disable the automatic sync with mail accounts and see if the problem goes away. Put in in manually.
    when you go away from the mail app, it is still trying to finish to sync even in sleep/lock mode and the battery is dead within hours. Also, you can close the mail app.
    In few weeks, an update will arrive with corrections.
    Have a nice day.

Maybe you are looking for

  • Purchase Order Delivery Date Check

    Hi, Need to validate the Delivery Date of the Purchase Orders. Need to block the date change for past date date. Need to allow the change for future date. Ex; If PO is creating today (13.01.2008) , the delivery date need to be equal or more than toda

  • TS3376 My macbook is stolen, what can I do to track it's use?

    Hi, My brand new macbook pro 15'' got stolen last weekend. It is password protected, but I would very much like two things to happen: a) track if the macbook gets online somewhere and report this to the police b) wipe the content remotely, although I

  • Hue Saturation Luminance sliders in CR4.1

    Hallo, Having just posted problems I was having with printing that I thought were due to some aspect of my colour management policies and/or my LCD monitor when tilted, I traced back my editing to the original DNG image and discovered something. As a

  • Why can't install Adobe Acrobat Pro on my Mac?

    I had an old version of the software. I had issues with a project. I uninstalled the old version of Adobe Acrobat Pro but could not reinstall it using my old license key.  I bought a new version and still will not let me install it on my computer. He

  • Cannot remove adobe reader x10.1.7?

    I am trying to find the reason why my computer requires re-booting every A.M. When I do a security scan everything appears O.K. except for one item which is quarantined. After searching the add and remove in my control panel I suspect the two items a