xmonad terminal selection
Published by emacstheviking on Fri, 03/25/2011 - 20:40
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.
Add new comment