[xmonad] rcxterm - a colorful terminal emulator script that goes great with xmonad.
Yanom Mobis
yanom at rocketmail.com
Sun May 26 20:27:25 CEST 2013
Tired of all your terminals having the same color scheme? I wrote program that fixes that.
#!/usr/bin/python
import random
import os
available_colors = ["magenta","yellow", "white", "green", "cyan", "orange","red"]
fontsize = 22
font = "terminus"
color = random.choice(available_colors)
font = "-*-" + font + "-*-*-*-*-" + str(fontsize) + "-*-*-*-*-*-*-*"
command = 'xterm -font \"' + font + '\" -bg black' + ' -fg ' + color
os.system(command)
save that as /usr/bin/rcxterm and make it executable. Now set terminal="rcxterm" in xmonad.hs. Now, every time you open an XTerm, it gets assigned a random foreground color from the list. Here's a screenshot: http://i43.tinypic.com/334us1e.png
You may have to change font = "terminus" to a font name you have on your system. The xfontsel program can find one for you. Also, I'm pretty sure there's a way to write this script in Haskell, but I only know Python.
enjoy!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/xmonad/attachments/20130526/1b5cbabe/attachment.htm>
More information about the xmonad
mailing list