quaker terms

A few months ago there was a bit of a fuss about a so-called Quake-style terminal emulator for OS X. There's a Free alternative if you're into KDE and that jazz, but if you're not it's ridiculously simple to hack something up with existing terminal emulators in X. You just need to install the wmctrl utility:

screenid=`wmctrl -l | grep screen | cut -f 1 -d " "`.chomp.hex

if screenid != 0
  puts focused=`xdpyinfo | grep focus | cut -c 16-24`.chomp.hex
  if screenid == focused
    `wmctrl -i -r #{screenid} -t 9`
    `wmctrl -i -R #{screenid}`
  `urxvt +sb -fn terminus-16 -bg white -e screen -A -h 10000 -xRR &`
  # replace "-bg white" with "-tr -sh 90 -tint white" for transparency

I bind this to M-` in Sawfish and have some window-matching rules that govern the sizing and placement of the terminal window as it appears. I'm sure similar results could be achieved in other decently flexible window managers.

(custom-set-typed-variable (quote match-window-profile) 
                           (quote ((((WM_NAME . "^screen$")) 
                                    (position 20 . 0) 
                                    (maximized . horizontal) 
                                    (frame-type . none)))) 
                           (quote match-window) 
			   (quote sawfish.wm.ext.match-window))

It's not rocket science or anything, but I find it comes in handy for all kinds of stuff. The wmctrl is a really nice utility if you're into optimizing your workflow with automation, which you should be.

« older | 2006-11-10T23:12:36Z | newer »