You are not logged in.

#1 2009-04-27 19:41:12

Lexion
Member
Registered: 2008-03-23
Posts: 510

probably a simple xmonad problem. [SOLVED]

I just installed xmonad 0.8.1-1.1, xmonad-contrib-0.8.1-1.1, and haskell-x11-1.4.5-1.1 and downloaded the most recent template xmonad.hs
from the xmonad website (version 0.8) and put it in ~/.xmonad/xmonad.hs.  I ran 'xmonad --recompile' and it gives me the following error:

Error detected while loading xmonad configuration file: /home/me/.xmonad/xmonad.hs

on the commandline:
    Warning: -no-recomp is deprecated: Use -fforce-recomp instead

xmonad.hs:13:17:
    Could not find module `XMonad.StackSet':
      it is not a module in the current program, or in any known package.

Please check the file for errors.

xmonad: xmessage: executeFile: does not exist (No such file or directory)

If I comment out the line 'import qualified XMonad.StackSet as W'  If will give me the same error for the next 'import * XMonad.* as ?' line.
Any ideas?

Last edited by Lexion (2009-04-30 00:33:02)


urxvtc / wmii / zsh / configs / onebluecat.net
Arch will not hold your hand

Offline

#2 2009-04-27 21:23:31

bender02
Member
From: UK
Registered: 2007-02-04
Posts: 1,328

Re: probably a simple xmonad problem. [SOLVED]

your xmonad is not properly installed. it might have to do with the recent ghc update (on each ghc update also all packages depending on in it community need to be rebuild). The output of the command 'ghc-pkg list' should include 'xmonad-0.8.1' and 'xmonad-contrib-0.8.1'. If it doesn't (which I suppose it doesn't, per the error you're getting), you need to update xmonad(-contrib) to work with the new ghc.
First, try simply to reinstall the xmonad packages. If that doesn't help, rebuild them manually via abs.

Offline

#3 2009-04-28 00:12:51

Lexion
Member
Registered: 2008-03-23
Posts: 510

Re: probably a simple xmonad problem. [SOLVED]

It compiles (thanks) but it just gives me a black screen (no mouse pointer), but if I put feh in my xinitrc it shows the wallpaper, but no mouse pointer or xmonad.

xinitrc:

#!/bin/sh
feh --bg-scale /home/me/.bg/serenity.jpg &
exec xmonad

urxvtc / wmii / zsh / configs / onebluecat.net
Arch will not hold your hand

Offline

#4 2009-04-28 06:01:18

bender02
Member
From: UK
Registered: 2007-02-04
Posts: 1,328

Re: probably a simple xmonad problem. [SOLVED]

xmonad by default doesn't show anything, so it might as well be running. try spawning a terminal (there's a keyboard shortcut, by default i think '<your_modkey>+shift+enter';EDIT: i see you use urxvt; by default xmonad spawns an xterm, so make sure you have it installed; or change xterm to urxvt in your xmonad.hs). whether or not xmonad is supposed to show any bar or something like that depends on your xmonad.hs (so hard to say unless you post it somewhere wink

about mouse pointer - that also should have nothing to do with xmonad; i would say it's a problem with xorg (but i see you run dwm fine, so it probably isn't that). maybe try setting the cursor to something specific, eg 'xsetroot -cursor_name left_ptr' in xinitrc?

Last edited by bender02 (2009-04-28 06:02:52)

Offline

#5 2009-04-28 11:23:48

Lexion
Member
Registered: 2008-03-23
Posts: 510

Re: probably a simple xmonad problem. [SOLVED]

I just had one of those what the hell were you thinking moments.  I changed the mod key in my xmonad.hs to Mod4 and was trying to use Mod1 to open a terminal.  As for the cursor, I have no idea.  I'm in xmonad now and I see the cursor in front of this word.

But thanks for your help.


urxvtc / wmii / zsh / configs / onebluecat.net
Arch will not hold your hand

Offline

#6 2009-04-28 12:11:04

mikesd
Member
From: Australia
Registered: 2008-02-01
Posts: 788
Website

Re: probably a simple xmonad problem. [SOLVED]

I had the same issue with a recent Xmonad and the mouse cursor. No cursor was visible at boot and only appeared when I opened up a terminal whereupon the I-bar cursor appeared. I fixed it by specifying a cursor in my xinitrc file as suggested by bender02:

xsetroot -cursor_name left_ptr

I never looked into why this was happening. I was using a new cursor theme at the time and assumed it may have been missing the X cursor. Never checked though.

Offline

#7 2009-04-28 13:08:20

Lexion
Member
Registered: 2008-03-23
Posts: 510

Re: probably a simple xmonad problem. [SOLVED]

It is not using my xmonad.hs.  I don't see any errors or anything.  I ran xmonad --recompile and then startx.  I made some noticeable changes,
but they are not appearing.

xmonad.hs:

import XMonad
import System.Exit
import XMonad.Layout
import qualified XMonad.StackSet as W
import qualified Data.Map        as M

import XMonad.Config (defaultConfig)

myNormalBorderColor  = "#dddddd"
myFocusedBorderColor = "#ff0000"
 
myKeys conf@(XConfig {XMonad.modMask = modm}) = M.fromList $
 
    [ ((modm,               xK_Return), spawn $ XMonad.terminal conf)
    , ((modm,               xK_p     ), spawn "exe=`dmenu_path | dmenu` && eval \"exec $exe\"")
    , ((modm .|. shiftMask, xK_c     ), kill)
    , ((modm,               xK_space ), sendMessage NextLayout)
    , ((modm,               xK_n     ), refresh)
    , ((modm,               xK_Tab   ), windows W.focusDown)
    , ((modm,               xK_j     ), windows W.focusDown)
    , ((modm,               xK_k     ), windows W.focusUp  )
    , ((modm,               xK_m     ), windows W.focusMaster  )
    , ((modm .|. shiftMask, xK_Return), windows W.swapMaster)
    , ((modm .|. shiftMask, xK_j     ), windows W.swapDown  )
    , ((modm .|. shiftMask, xK_k     ), windows W.swapUp    )
    , ((modm,               xK_h     ), sendMessage Shrink)
    , ((modm,               xK_l     ), sendMessage Expand)
    , ((modm,               xK_t     ), withFocused $ windows . W.sink)
    , ((modm              , xK_comma ), sendMessage (IncMasterN 1))
    , ((modm              , xK_period), sendMessage (IncMasterN (-1)))
    , ((modm .|. shiftMask, xK_q     ), io (exitWith ExitSuccess))
    , ((modm              , xK_q     ), restart "xmonad" True)
    ]
    ++
 
        [((m .|. modm, k), windows $ f i) | (i, k) <- zip (XMonad.workspaces conf) [xK_1 .. xK_9], (f, m) <- [(W.greedyView, 0), (W.shift, shiftMask)]]
    ++
 
    [((m .|. modm, key), screenWorkspace sc >>= flip whenJust (windows . f))
        | (key, sc) <- zip [xK_w, xK_e, xK_r] [0..]
        , (f, m) <- [(W.view, 0), (W.shift, shiftMask)]]
 
 
myMouseBindings (XConfig {XMonad.modMask = modMask}) = M.fromList $
 
    [ ((modMask, button1), (\w -> focus w >> mouseMoveWindow w)), 
    ((modMask, button3), (\w -> focus w >> mouseResizeWindow w))]
 
main = xmonad defaultConfig

defaults = defaultConfig {
        terminal           = "urxvtc",
        focusFollowsMouse  = True,
        borderWidth        = 1,
        modMask            = mod4Mask,
        numlockMask        = mod2Mask,
        workspaces         = ["1", "2", "3", "4", "5", "6", "7", "8", "9"],
        normalBorderColor  = "#000000",
        focusedBorderColor = "#ffffff",
        keys               = myKeys,
        mouseBindings      = myMouseBindings,
        layoutHook         = tiled ||| Full,
        manageHook         = composeAll [],
        logHook            = return (),
        startupHook        = spawn "urxvtc"
    }
    where
    tiled = Tall nmaster delta ratio
    nmaster = 1
    ratio = 1/2
    delta = 3/100

Last edited by Lexion (2009-04-28 13:08:33)


urxvtc / wmii / zsh / configs / onebluecat.net
Arch will not hold your hand

Offline

#8 2009-04-28 17:49:29

bender02
Member
From: UK
Registered: 2007-02-04
Posts: 1,328

Re: probably a simple xmonad problem. [SOLVED]

Lexion wrote:

xmonad.hs:

<snip> 
main = xmonad defaultConfig

defaults = defaultConfig {
<snip>

you're asking xmonad to use the default config, not your 'defaults' smile
so that first line should be

main = xmonad defaults

Offline

#9 2009-04-30 00:33:36

Lexion
Member
Registered: 2008-03-23
Posts: 510

Re: probably a simple xmonad problem. [SOLVED]

That worked.  Thank you.  My problems are now small and fixable by google.


urxvtc / wmii / zsh / configs / onebluecat.net
Arch will not hold your hand

Offline

Board footer

Powered by FluxBB