You are not logged in.
I have no idea how haskell works at all. But I simply love xmonad!
Could someone help me out with my configuration? It is currently
import XMonad
import XMonad.Config.Xfce
main = xmonad xfceConfig
This works pretty well for me, for the most part. However, I need a few keybinding. First, I want ctrl-alt-arrow to change desktops and I found I can do this with "XMonad.Actions.CycleWS", which I have installed and the configuration of:
, ("M-<Left>", prevWS )
, ("M-<Right>", nextWS )
, ("M-S-<Left>", shiftToPrev )
, ("M-S-<Right>", shiftToNext )
However, I have no idea how to do this. Also, I would like XF86AudioRaiseVolume to execute "amixer set Master 5dB+" and XF86AudioLowerVolume to "amixer set Master 5dB-" and XF86AudioMute to "amixer set Master toggle". I know I could easily do this with xbindkeys or some other extra keybinding daemon, but I want to learn how to do this the correct way in haskell. Thanks!
Offline
Is this your whole xmonad.hs ? Anyway for the keybindings part ( for multimediakeys i use xbindkeys because i use the same xmonad.hs on my laptop plus desktop ) , but you can do it without xbindkeys wich is much nicer, less apps needed. If your keys are already reconignized as XF86AudioMute then you wouldnt have to use xmodmap. You can define keys in two various ways in XMonad with the additional keysP (Util.EZconfig ) or with keys = Mykeys
I always learn from looking into others people's configs , so here is an config from another arch user. Look for the section myKeys, and define something like :
, ("<XF86AudioLowerVolume>", spawn amixer set Master 5dB+)
if you are interested here is my config
Further reference
Last edited by jelly (2009-07-31 00:31:09)
Offline
Uhhhh I totally have no idea what I am doing.. I read your config and kinda tried to figure it out and I ended up with this:
import XMonad
import XMonad.Config.Xfce
import XMonad.Actions.CycleWS
main = do
xmonad $ xfceConfig
{ keys = keys'
}
keys' conf@(XConfig {XMonad.modMask = modMask}) = M.fromList $
[ ("M-<Left>", prevWS )
, ("M-<Right>", nextWS )
, ("M-S-<Left>", shiftToPrev )
, ("M-S-<Right>", shiftToNext )
]
Which doesn't work, error is:
Error detected while loading xmonad configuration file: /home/mlweber/.xmonad/xmonad.hs
on the commandline:
Warning: -no-recomp is deprecated: Use -fforce-recomp instead
xmonad.hs:11:50: Not in scope: `M.fromList'
Please check the file for errors.
edit: I forgot to mention that XF86Audio* keys are already mapped.
Last edited by varicella (2009-07-31 00:39:24)
Offline
Offline