[Solved] Error: unexpected charater when trying to run xmonad

I'm trying to get xmonad up and running with xmobar and trayer as well. I've been trying to follow this article:
http://www.linuxandlife.com/2011/11/how … linux.html
I copy and pasted the xmonad.hs and .xmobarrc files in hopes of getting xmonad up and running before I start tinkering around with it. I'm getting the following error when I try to run "xmonad &":
X Error of failed request:  BadAccess (attempt to access private resource denied)
  Major opcode of failed request:  2 (X_ChangeWindowAttributes)
  Serial number of failed request:  7
  Current serial number in output stream:  8
xmobar: /home/matt/.xmonad/xmonad.hs: configuration file contains errors at:
"Config" (line 1, column 1):
unexpected "i"
expecting space or "Config"
Here are my files,
xmonad.hs:
import XMonad
import XMonad.Hooks.DynamicLog
import XMonad.Hooks.ManageDocks
import XMonad.Util.Run
import System.IO
main = do
xmproc <- spawnPipe "/usr/bin/xmobar /home/matt/.xmonad/xmonad.hs"
xmonad $ defaultConfig
{ manageHook = manageDocks <+> manageHook defaultConfig
, layoutHook = avoidStruts $ layoutHook defaultConfig
, logHook = dynamicLogWithPP xmobarPP
{ ppOutput = hPutStrLn xmproc
, ppTitle = xmobarColor "blue" "" . shorten 50
, ppLayout = const "" -- to disable the layout info on xmobar
.xmobarrc:
Config { font = "xft:Bitstream Vera Sans Mono:size=9:bold:antialias=true"
, bgColor = "#000000"
, fgColor = "grey"
, position = Static { xpos = 0 , ypos = 0, width = 1290, height = 16 }
, commands = [ Run Cpu ["-L","3","-H","50","--normal","green","--high","red"] 10
, Run Network "eth0" ["-L","0","-H","70","--normal","green","--high","red"] 10
, Run Memory ["-t","Mem: <usedratio>%"] 10
, Run Date "%a %b %_d %l:%M" "date" 10
, Run StdinReader
, sepChar = "%"
, alignSep = "}{"
, template = " %StdinReader%}{ <fc=grey>%cpu% </fc> <fc=red>%cpuTemp%</fc>°C<fc=grey> ~ %memory% ~ %eth0%</fc> ~ <fc=#ee9a00>%date%</fc> ~ Vol: <fc=green>%volume%</fc> "
.xinitrc:
#!/bin/sh
# initialize screensaver
xscreensaver -no-splash &
# set cursor
xsetroot -cursor_name left_ptr
# start xmonad
trayer --edge top --align right --SetDockType true --SetPartialStrut true --expand true --width 6 --transparent true --alpha 0 --tint 0x000000 --height 16 &
exec ck-launch-session xmonad
Last edited by Schwag (2012-04-27 15:56:53)

Fix the middle line as follows:
main = do
xmproc <- spawnPipe "/usr/bin/xmobar /home/matt/.xmobarrc"
xmonad $ defaultConfig
Edit: I suspect this is an issue that the OP will, in hindsight, give himself a good forehead slap for.  But we all make mistakes - I've made some good ones.  I don't think there is any need to be abrupt in such a situation as the failure of the OP was not in failing to read the relevant documentation or presenting the needed information to solve the problem.  The OP is simply human and didn't understand the examples provided for a config file written in a relatively new and novel programming language that can be a bit baffling at first.  In other words - cut the guy some slack.
Last edited by Trilby (2012-04-26 23:02:14)

Similar Messages

  • Error Code 1000 when trying to run Backup Assistant Plus.

    I am getting backup failed and Error Code 1000 when trying to run Backup Assistant Plus.  Have not been able to backup for several weeks.Droid Razr Maxx.

        Hi ellendritz- We are dedicated to make it easier to backup your data! We have integrated Backup Assistant with the Verizon Cloud service offering you many more features and 5GB of storage free! Visit http://www.vzw.com/cloud for more details. The Verizon Cloud app is currently available for download in the Google PlayStore. Please attempt backup with the new application and keep me posted on the status as I would be happy to offer additional support if needed.
    Thank you,
    YaleK_VZW
    Follow us on Twitter @VZWsupport

  • Error code -4403F when trying to run Lion Recovery

    I am trying to run lion internet recovery from my mac mini server (2011). When I boot I run "Cmd R", once it tries to connect to the internet it gives me the error -4403F
    I am running a netgear WNR2000v2 router. Is there anything I can set on the router to allow the recovery to run?
    Any help will be appreciated!

        Hi ellendritz- We are dedicated to make it easier to backup your data! We have integrated Backup Assistant with the Verizon Cloud service offering you many more features and 5GB of storage free! Visit http://www.vzw.com/cloud for more details. The Verizon Cloud app is currently available for download in the Google PlayStore. Please attempt backup with the new application and keep me posted on the status as I would be happy to offer additional support if needed.
    Thank you,
    YaleK_VZW
    Follow us on Twitter @VZWsupport

  • Error 131-85 when trying to run general ledger report.

    Hello when I try to run the general ledger report in SAP 8.8 I get the following error:
    Data is not available; modify the selection criter and re-enter [131-85]. I used to be able to run the report no problem, and I can also run it under other users and my test account with the same criteria and am ok. Can anyone help?

    Hi Jessica.....
    This error generally comes when your Selection Parameters are not OK.
    Please check the parameters or select all for from and to date period.....
    Also please check whether to that particular user Accounts are accessible or not for generation this report....
    Regards,
    Rahul

  • I get the error code -2146827284 when trying to run an Ecxel macro from LabVIEW.

    I am trying to insert data in an Excel workbook and then run a macro which I recorded in Excel to produce a plot.
    This worked great on a laptop running W2K + LV7 and Office 2000.
    I am now trying to do the same thing on a WinXP + LV7 + Excel 2002 and I get this error.
    The complete message is:
    "Error -2146827284 occurred at Exception occured in Microsoft Excel, Programmatic access to Visual Basic Project is not trusted
    . Help Path is C:\Program Files\Microsoft Office\Office10\1033\xlmain10.chm and context 0 in Excel Import Module.vi->LV report test1.vi
    This error code is undefined. No one has provided a description for this code, or you might have wired a number that is not an
    error code to the error code input."
    Can anyone shed some light on this. Running a macro is the obvious and easy way to get this work done.
    See the attached VI. It includes the macro and some sample data to run it on.
    Attachments:
    LV_report_test1.vi ‏46 KB

    Hi,
    I have attached a link to a document that discusses the error you are getting:
    Error -2146827284 When Importing a Macro to Office 2002/XP
    I hope this helps.
    Sincerely,
    Feroz
    National Instruments

  • Error message 13005 when trying to run iTunes 8

    Can anyone help me. I bought my new nano today. Have previously run iTunes with no problems but but today this error message comes up. Have uninstalled and re-installed to no avail.
    Guy

    Message numbers in the 13000 range are usually do to a problem with Genius. I have seen 2 totally different fixes posted here in the forums. edit - Sounds like you already tried method 1.
    *Method 1*
    Rename these files, or delete them
    iTunes Library Genius.itdb
    iTunes Library Extras.itdb
    Try opening iTunes again. And turn off Genius as fast as you can. You can turn it back on later, but first get iTunes running.
    *Method 2*
    Go to Control Panel > Add/Remove Programs
    Choose iTunes, press the Change button and then the repair button.
    Message was edited by: Katrina S.

  • Memory errors in ST22 when trying to run report

    Hi all,
    Connection details: BW query using the MDX driver method.
    My report starts getting timeouts when I reach a certain number of attributes. Only one field is a navigation attribute but I get the error even if I totaly exclude that field from my report.
    I have enabled the 'Use selection of structure elements' tick in RSRT | Query Properties. 
    Using MDXTEST I get a dump telling me that I was trying to return 27 million records but I know my cube has only 1745 records in it.
    When I use the old driver (SAP BW Query) and build a report with ALL my attributes I don't get an error at all but it's not recommended to use this driver anymore.
    PS We have applied the corrections given in OSS Note 1554272.
    More details fromthe ST22 dump:
    Short text                                                                               
    No more storage space available for extending an internal table.
    Error analysis                                                                               
    The internal table "\DATA=N_TH_DAT_N"                  
         could not be further extended. To enable                                                    
        error handling, the table had to be delete before this log was written.                      
        As a result, the table is displayed further down or, if you branch to                        
        the ABAP Debugger, with 0 rows.                                                                               
    At the time of the termination, the following data was determined for                        
        the relevant internal table:                                                                               
    Memory location: "Session memory"                                                            
        Row width: 72                                                                               
    Number of rows: 27865264                                                                     
        Allocated rows: 27865264                                                                     
        Newly requested rows: 128 (in 1 blocks)

    Ok - so it turns out that the transports from the Integration Kit wasn't installed on the BO Enterprise server.  Once that was done I could connect 100%.  Only problem is that I still can't drop down the node for the database fileds in Crystal Reports.  I am at least able to create a new report using the MDX driver and then the node drop down works.
    Blessings

  • Getting the error message 13019 when trying to sync my iphone. how can i correct this?

    how do i solve error message 13019 when trying to sync my iphone?

    I received the same error message after I had recently updated iTunes to 10.5.1 and I had wirelessly updated 13 apps.  I had to go into iTunes and select Apps, on the bottom right it said I needed to update 13 apps.  I updated the apps via iTunes and then synced again without an issue.
    iPhone 4S / OSX 10.6.8 / iTunes 10.5.1

  • App File Server connection error when trying to run a BI Publisher report..

    hello Gurus...
    As above - App File Server connection error when trying to run a BI Publisher report.. FOR THE FIRST TIME.
    What does our DBA need to do..?
    error message reads..
    Template code: SUARXASR
    Template app:  AR
    Language:      en
    Territory:     GB
    Output type:   EXCEL
    [5/10/10 10:59:27 AM] [UNEXPECTED] [46321:RT1487572]
    oracle.apps.fnd.cp.util.RemoteFileException: An error occurred while attempting to establish an Applications File Server connection with the node FNDFS_*****.ac.uk. There may be a network configuration problem, or the TNS listener on node FNDFS_*****.ac.uk may not be running. Please contact your system administrator.
    at oracle.apps.fnd.cp.util.RemoteFile.readURL(RemoteFile.java:241)
    at oracle.apps.fnd.cp.util.RemoteFile.transferFile(RemoteFile.java:194)
    at oracle.apps.fnd.cp.util.RemoteFile.transfer(RemoteFile.java:130)
    at  oracle.apps.fnd.cp.opp.XMLPublisherProcessor.process(XMLPublisherProcessor.java:264)at oracle.apps.fnd.cp.opp.OPPRequestThread.run(OPPRequestThread.java:157)
    [5/10/10 10:59:27 AM] [46321:RT1487572] Completed post-processing actions for request 1487572.I'm sure we never had to set anything up in our Test instance!??!!??
    many thanks for looking..
    Steven

    nobody experienced this before..?

  • Error when trying to run an application that worked when built with 8.6

    I have a simple program that I wrote in version 8.6 that I never had a problem building and running applications built with it in 8.6.  Two weeks ago I got 2009 in the mail because we had very recently purchased 8.6 and I am getting errors when trying to run an application built with the same code using 2009.  The error has to do with the Mean.vi.  It claims it cannot find it.  The error I get reads as follows:
    An error occurred loading VI 'NI_AALBase.lvlib:Mean.vi'.  LabVIEW load error code 3: Could not load front panel.  I don't need access to this vi's front panel, so I am wondering if it is a problem with the runtime engine and not my code.  Please respond as soon as possible as this will quickly start to impact my testing schedule.  Thank You.
    Solved!
    Go to Solution.

    Hi!
    The same problem ???
    I discussed it with my local NI technical support team. The application works without any problems now.
    Basic rule: when creating an installer be sure that option "Run Time Engine xxxx"  in "Additional Installers" category is checked in spite of the fact that Run Time Engine is already installed.
    Best regards.
    Attachments:
    ADDINST.png ‏13 KB

  • Error message: 50103 (oxffff3c49) when trying to run VILogger

    I get this error message: 50103 (oxffff3c49) when trying to run VI logger for data received from the NI USB 6008 DAQ. What does this mean and how do I fix it?

    Go through all these threads and post back if that solves your problem or still you stuck up.
    Mathan

  • Error Message when trying to run Applications Module in OA Framework

    Below is the message that I received when trying to run my Applicaitons Module in test mode. When I click the error message I navigate to "public class TpcApBanksEOImpl extends OAEntityImpl". I was told to put "abstract" before "class" and to run it. It did compile after that, but I was wondering if anyone could tell me why.
    Error(12,8): class test_xxtpc.bc4j.TpcApBanksImpl should be declared abstract; it does not define method setLastUpdateLogin(oracle.jbo.domain.Number) in class oracle.apps.fnd.framework.server.OAEntityImpl

    User,
    Basically, an abstract method is a method in a class where just the signature is defined, and no implementation is provided. What you are being told by the compiler is that the method setLastupdateLogin is abstract, meaning that neither TpcApBanksImpl nor OAEntityImpl nor any of it's parents implement that method; therefore, your TpcApBanksImpl must be declared abstract.
    Hope this Helps,
    John

  • I'm getting a -2003F error when trying to run the internet recovery after installing a new hard disk in my macbook pro, any suggestions?

    After installing a new hard drive in my 2011 macbook pro, I'm getting a apple.com/support -2003F error when trying to run the internet recovery.  Any suggestions?

    Did you format the new HDD?  What is the status of the old HDD?
    Do you have an early or late 2011 MBP?
    Ciao.

  • HT201210 I have error code -43 when trying to upgrade iPhone 3GS running v4.3 to version 5 or above. This error occurs whilst trying to back up phone during upgrade process. 2GB of free memory on phone. Can anyone help?

    I have error code -43 when trying to upgrade iPhone 3GS running v4.3 to version 5 or above. This error occurs whilst trying to back up phone during upgrade process. 2GB of free memory on phone. Can anyone help?

    Well I spoke too soon.
    The update was successful, but now I cannot connect to the 3GS data network.
    Cannot get email and cannot open a page in Safari.
    +"Safari could not open the page because the server stopped responding."+
    +"Cannot Get Mail+
    +THe mail server is not responding. Verify that you have entered the correct account info in Mail settings."+
    Email and internet work fine on WiFi.........no data using 3GS network.
    Looks like I will have to revert back to old OS.

  • Error when trying to run Advisor

    Hi!
    I get the following error when trying to run the Advisor (Application Builder > Application xxx > Utilities > Advisor) over our application:
    Unknown type! View: APEX_APPLICATION_PAGE_PROC Column: CONDITION_EXPRESSION1 Value: WHEN_ANY_ITEM_IN_COMMA_DELIMITED_LIST_OF_PAGES_HAS_CHANGED
    ... this happens every time, even if I uncheck all boxes except one (e.g. "References with substitution syntax").
    I'm wondering if there is something wrong with our Apex installation as I can't see any other references to this problem in the forum. We don't seem to be suffering any other problems so I expect it's something small...
    Has anyone else ever encountered this and does anyone know of a solution? I would like to use the Advisor for some QA processes as it looks like a handy tool.
    Many thanks in advance,
    Alex.
    Versions:
    Apex 4.1.1.00.23
    Oracle DB 10.2.0.2

    Hi Alex,
    very interesting. Looks like one of your processes uses the WHEN_ANY_ITEM_IN_COMMA_DELIMITED_LIST_OF_PAGES_HAS_CHANGED condition which has been deprecated for a very long time.
    If you execute the following query in your workspace schema, you should find those processes which do use the condition. You might want to check if the reported pages/processes are still used in your application.
    select application_id,
           application_name,
           page_id,
           page_name,
           process_name
      from APEX_APPLICATION_PAGE_PROC
    where CONDITION_EXPRESSION1 = 'WHEN_ANY_ITEM_IN_COMMA_DELIMITED_LIST_OF_PAGES_HAS_CHANGED';Regards
    Patrick
    My Blog: http://www.inside-oracle-apex.com
    APEX Plug-Ins: http://apex.oracle.com/plugins
    Twitter: http://www.twitter.com/patrickwolf

Maybe you are looking for

  • How can I move my Verizon e-mail accessed from my iPAD to folders?

    How can I move my Verizon e-mail accessed from my iPAD to folders?

  • ITunes 11.1 broke

    So I upgraded to iOS7 and iTunes 11.1, only to have that whole process break my iTunes. I have been trying to fix it for horus and nothing has worked, great job apple. Anyway, the problem is that when I plug in my iPhone 4s, my iTunes says :"iTunes r

  • OBIEE Subquery Join

    Hi All, I am able to join 2 reports using 'Filter Is Based on Results of Another Analysis' based on e_id and m_timestamp to build report for below query select a.e_id ,count(distinct a.m_timestamp) from raw_data a, ( select count(*),e_id,m_timestamp

  • PXI 6224 linear position encoder resolution question

    Hello, I am using Quadrature Encoder connected to the counter 0 of NI PXI 6224. As shown in the picture, the decoder is working at X4 mode, I set Distance per Pulse as 2. The measured waveform looks like the resolution is 0.5. My question is:        

  • Query regarding Overtime Rules for India

    Hi, I am not clear about how to configure the statutory overtime rules (as per Overtime act) for India. I am not sure how many OT hours per week/month/quarter is allowed. Also, I am aware that some of the extra hours worked by the workmen can be cons