Migrating from StumpWM...

Hi! I'm migrating to Xmonad after 2 or 3 years of StumpWM and trying to get keyBindings "stump-like". My main problem is that I don't know how to use "C-t"(Control followed by t) as a mod key. I tried this: -----------------8<------------------------------------------- import XMonad import XMonad.Core main = do xmonad $ defaultConfig { borderWidth = 2, modMask = myModMask } myModMask = mod4Mask .|. xK_t ------------------------------>8------------------------------- But "xK_t" is not found... I guess I'm missing some import line, but I couldn't imagine which one (Also, I will use Control instead of Win Key). There's also two StumpWM commands that I don't know if there's something equivalent: "run-or-raise": Type an application name. If it's already started, get it focused; if not, launch it. "execute": Type anything and it will be executed like "bash -c <whathever-you-typed>". Simple as that. I'm mainly a lisp programmer, but I'm completely ignorant to haskell, so any help would be really appreciated. -- Rafael Ibraim Oracle Database SQL Expert Linux User Number: #537480 ibraim.gm@gmail.com

http://xmonad.org/xmonad-docs/xmonad-contrib/XMonad-Actions-Submap.html
may help your C-t problem, although I hated C-t as a modifier even in
Ratpoison and eliminated it as fast as possible...
On Tue, May 15, 2012 at 12:50 PM, Rafael Ibraim
"run-or-raise": Type an application name. If it's already started, get it focused; if not, launch it.
I used and helped develop Stump before switching to Xmonad, so you'll be pleased to know there's a whole module devoted to run-or-raise functionality: http://xmonad.org/xmonad-docs/xmonad-contrib/XMonad-Actions-WindowGo.html
"execute": Type anything and it will be executed like "bash -c <whathever-you-typed>". Simple as that.
From my config:
import XMonad.Prompt (greenXPConfig) import XMonad.Prompt.Shell (shellPrompt, prompt, safePrompt) ... , ((m .|. shiftMask,xK_c), prompt (term ++ " -e") greenXPConfig) -- gwern http://www.gwern.net

Quoting Gwern Branwen
http://xmonad.org/xmonad-docs/xmonad-contrib/XMonad-Actions-Submap.html may help your C-t problem, although I hated C-t as a modifier even in Ratpoison and eliminated it as fast as possible...
And of course don't forget the beautiful EZConfig, which makes using submaps a breeze. http://xmonad.org/xmonad-docs/xmonad-contrib/XMonad-Util-EZConfig.html ~d

Thanks guys, these links were really helpful. I've finished the most
used commands and already made the migration to XMonad(so far, it's
working wonderfully).
I don't know if my config is relevant enough, but it may serve as a
base for other coming from StumpWM:
http://pastebin.com/7KfiV0vW
2012/5/15
Quoting Gwern Branwen
: http://xmonad.org/xmonad-docs/xmonad-contrib/XMonad-Actions-Submap.html may help your C-t problem, although I hated C-t as a modifier even in Ratpoison and eliminated it as fast as possible...
And of course don't forget the beautiful EZConfig, which makes using submaps a breeze. http://xmonad.org/xmonad-docs/xmonad-contrib/XMonad-Util-EZConfig.html
~d
_______________________________________________ xmonad mailing list xmonad@haskell.org http://www.haskell.org/mailman/listinfo/xmonad
-- Rafael Ibraim Oracle Database SQL Expert Linux User Number: #537480 ibraim.gm@gmail.com

Sample configs are always handy. If you feel up to it, you might
consider making a patch that adds XMonad.Config.StumpWM to
xmonad-contrib, containing pretty much just what you have in that file
(take a look at e.g. XMonad.Config.Sjanssen to see how to library-ize
a complete configuration -- it isn't hard), or adding your config to
the collection of sample configurations on the wiki:
http://www.haskell.org/haskellwiki/Xmonad/Config_archive
~d
Quoting Rafael Ibraim
Thanks guys, these links were really helpful. I've finished the most used commands and already made the migration to XMonad(so far, it's working wonderfully).
I don't know if my config is relevant enough, but it may serve as a base for other coming from StumpWM: http://pastebin.com/7KfiV0vW
2012/5/15
: Quoting Gwern Branwen
: http://xmonad.org/xmonad-docs/xmonad-contrib/XMonad-Actions-Submap.html may help your C-t problem, although I hated C-t as a modifier even in Ratpoison and eliminated it as fast as possible...
And of course don't forget the beautiful EZConfig, which makes using submaps a breeze. http://xmonad.org/xmonad-docs/xmonad-contrib/XMonad-Util-EZConfig.html
~d
_______________________________________________ xmonad mailing list xmonad@haskell.org http://www.haskell.org/mailman/listinfo/xmonad
-- Rafael Ibraim Oracle Database SQL Expert Linux User Number: #537480 ibraim.gm@gmail.com
_______________________________________________ xmonad mailing list xmonad@haskell.org http://www.haskell.org/mailman/listinfo/xmonad

Good idea. I will wait some weeks to see if I'm forgetting anything
and tweak it a little more before posting to the wiki or the contrib.
2012/5/18
Sample configs are always handy. If you feel up to it, you might consider making a patch that adds XMonad.Config.StumpWM to xmonad-contrib, containing pretty much just what you have in that file (take a look at e.g. XMonad.Config.Sjanssen to see how to library-ize a complete configuration -- it isn't hard), or adding your config to the collection of sample configurations on the wiki: http://www.haskell.org/haskellwiki/Xmonad/Config_archive
~d
Quoting Rafael Ibraim
: Thanks guys, these links were really helpful. I've finished the most used commands and already made the migration to XMonad(so far, it's working wonderfully).
I don't know if my config is relevant enough, but it may serve as a base for other coming from StumpWM: http://pastebin.com/7KfiV0vW
2012/5/15
: Quoting Gwern Branwen
: http://xmonad.org/xmonad-docs/xmonad-contrib/XMonad-Actions-Submap.html may help your C-t problem, although I hated C-t as a modifier even in Ratpoison and eliminated it as fast as possible...
And of course don't forget the beautiful EZConfig, which makes using submaps a breeze. http://xmonad.org/xmonad-docs/xmonad-contrib/XMonad-Util-EZConfig.html
~d
_______________________________________________ xmonad mailing list xmonad@haskell.org http://www.haskell.org/mailman/listinfo/xmonad
-- Rafael Ibraim Oracle Database SQL Expert Linux User Number: #537480 ibraim.gm@gmail.com
_______________________________________________ xmonad mailing list xmonad@haskell.org http://www.haskell.org/mailman/listinfo/xmonad
_______________________________________________ xmonad mailing list xmonad@haskell.org http://www.haskell.org/mailman/listinfo/xmonad
-- Rafael Ibraim Oracle Database SQL Expert Linux User Number: #537480 ibraim.gm@gmail.com
participants (3)
-
Gwern Branwen
-
Rafael Ibraim
-
wagnerdm@seas.upenn.edu