Late last year, I wrote a patch for GNOME Terminal to make it flash the window list icon when a command you ran in the background finished.
The GNOME Terminal maintainer asked me to make some changes to get it accepted.
In response, I wrote a new patch for GNOME Terminal 2.26.
Then last Friday, we had a "Hackathon" day at work, a day where we get to work on any project we like.
I figured I'd improve on this work and also display a desktop notification after seeing how cool they look in Ubuntu 9.04 [video].
There's now another patch that you should apply on top of the other patch that will make it look something like this.
Hopefully it's coming to a distribution near you!
Until then, you can install it manually.
You'll need VTE version 0.20 or higher, plus some other development libraries. (Ubuntu 9.04 is recommended, but not required: it will work in Ubuntu 8.10 provided you download VTE from SVN.)
Steps to install:
Voila!
The GNOME Terminal maintainer asked me to make some changes to get it accepted.
In response, I wrote a new patch for GNOME Terminal 2.26.
Then last Friday, we had a "Hackathon" day at work, a day where we get to work on any project we like.
I figured I'd improve on this work and also display a desktop notification after seeing how cool they look in Ubuntu 9.04 [video].
There's now another patch that you should apply on top of the other patch that will make it look something like this.
Hopefully it's coming to a distribution near you!
Until then, you can install it manually.
You'll need VTE version 0.20 or higher, plus some other development libraries. (Ubuntu 9.04 is recommended, but not required: it will work in Ubuntu 8.10 provided you download VTE from SVN.)
Steps to install:
- Run these commands
$ sudo apt-get install gnome-devel libvte-dev libnotify-dev
$ mkdir gnome-terminal
$ cd gnome-terminal
$ svn co -r 3419 http://svn.gnome.org/svn/gnome-terminal/trunk
$ cd trunk
$ wget -O ~/patch1.diff http://bugzilla.gnome.org/attachment.cgi?id=133862
$ wget -O ~/patch2.diff http://bugzilla.gnome.org/attachment.cgi?id=134686
$ patch -p0 < ~/patch1.diff
$ patch -p1 < ~/patch2.diff
$ ./autogen.sh
$ make
$ sudo make install
$ echo -E 'PS1="\\007$PS1"' >> ~/.bashrc # or ~/.zshrc or whatever - Close all GNOME Terminal windows
- Open GNOME Terminal
- Go to Profile->Profile Preferences
- Check/tick
- Flash the window list icon and bold the tab title when the terminal rings the bell
- Show a desktop notification when the terminal rings the bell
- Run a long command (e.g. sleep 15)
- Switch to another program window (e.g. Firefox, Evolution, etc.) while you're waiting
Voila!
Nice work! I've uploaded a gnome-terminal package including the first patch to the Arch User Repository for easy install under Arch Linux: http://aur.archlinux.org/packages.php?ID=28871
Thanks Martin!
It will be great when it starts to be a standard feature on Linux desktops. :-)
Got this error after patch -p1 < ~/patch2.diff:
missing header for unified diff at line 8 of patch
can't find file to patch at input line 8
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|Index: gstmpegparse.c
|===================================================================
|RCS file: /cvsroot/gstreamer/gst-plugins/gst/mpegstream/gstmpegparse.c,v
|retrieving revision 1.31
|diff -u -u -b -r1.31 gstmpegparse.c
|--- gstmpegparse.c 31 Dec 2002 14:53:04 -0000 1.31
|+++ gstmpegparse.c 10 Jan 2003 12:29:02 -0000
--------------------------
File to patch:
What to do?
Seems not to work under Ubuntu 9.10.
Stops at patching, can't find the file to patch.
Ostermann, try opening ~/patch2.diff. I think it is not the GNOME Terminal patch but something else. Were you working on something else at the same time?
Please try copying and pasting all the commands beneath "Run these commands" in my blog post.
These steps in particular:
* wget -O ~/patch1.diff http://bugzilla.gnome.org/attachment.cgi?id=133862
* wget -O ~/patch2.diff http://bugzilla.gnome.org/attachment.cgi?id=134686
Hey, you were answered : https://bugzilla.gnome.org/show_bug.cgi?id=557593
Could you make an Ubuntu PPA for this?
hmmm good work keep it up its really informative
Post a Comment