xmonad terminal selection

I got fed up deciding which terminal I wanted and I get fed up constanly editing xmonad.hs and then I had an idea... make it a bash script and then I can hack that any old time! So, first thing to do is create a file somewhere on your path, for me this is /usr/local/bin/xmonad-terminal and put this in it ...

#xterm -bg black -fg white 
#rxvt -bg black -fg orange
#Eterm
gnome-terminal

This lets you change your mind easily, then in your xmonad configuration you set the path to it... here's mine but with everything else ripped out as it's got a lot of (stolen!) stuff in it that's not relevant here:

import XMonad
import System.Exit
 
import qualified XMonad.StackSet as W
import qualified Data.Map        as M
 
-- The preferred terminal program, which is used in a binding below and by
-- certain contrib modules.
--
myTerminal      = "/usr/local/bin/xmonad-terminal"

Easy to change my terminal now any time I want.

Content Tags: 

Add new comment

Filtered HTML

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <pre> <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Syntax highlight code surrounded by the {syntaxhighlighter SPEC}...{/syntaxhighlighter} tags, where SPEC is a Syntaxhighlighter options string or class="OPTIONS" [title="the title"].
  • Lines and paragraphs break automatically.

Full HTML

  • Web page addresses and e-mail addresses turn into links automatically.
  • Syntax highlight code surrounded by the {syntaxhighlighter SPEC}...{/syntaxhighlighter} tags, where SPEC is a Syntaxhighlighter options string or class="OPTIONS" [title="the title"].
  • Lines and paragraphs break automatically.

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Enter the characters shown in the image.