After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 501986 - Monitor for activity / inactivity
Monitor for activity / inactivity
Status: RESOLVED DUPLICATE of bug 132173
Product: gnome-terminal
Classification: Core
Component: general
unspecified
Other Linux
: Normal enhancement
: ---
Assigned To: GNOME Terminal Maintainers
GNOME Terminal Maintainers
Depends on:
Blocks:
 
 
Reported: 2007-12-06 07:40 UTC by self
Modified: 2008-03-31 22:05 UTC
See Also:
GNOME target: ---
GNOME version: Unversioned Enhancement


Attachments
Make gnome-terminal blink (urgent) on change in background (3.66 KB, patch)
2008-01-06 17:07 UTC, self
none Details | Review
new patch, reset urgent state on window-focus, I'm currently working on monitoring inactivity (4.87 KB, patch)
2008-01-06 17:53 UTC, self
none Details | Review
Updated Patch for 2.23.0/rev2524 (3.85 KB, patch)
2008-03-27 23:30 UTC, Christopher Roy Bratusek
none Details | Review

Description self 2007-12-06 07:40:42 UTC
In the KDE-Terminal "konsole" there is a feature "Monitor for activity / inactivity" which - I think is very useful.

Imagine that you enter a command, that takes quite a while to finish. You switch to another window and then maybe just forget the command. So the Gnome-Terminal should alert us, that the command has been finished.

There are to types of commands: Some do many output and they are finished, when output stops, others don't output anything and they are finished when they return to the shell-prompt.

I think this feature should be require as few as configuration effort as possible. So maybe it is possible to auto-sense whether to monitor for inactivity or for activity when the gnome-terminal-window loses focus. 

Basic program logic:

1. gnome terminal loses focus
2. monitor terminal activity for about 5-10 seconds.
3. if there is any activity: monitor for inactivity, otherwise: monitor for activity
4. if the monitored event occurs, make the terminal window blink

Another approach would be, just to change the terminal's window-icon according to the current activity state. For activity: some red blinking thing (if the terminal-window does not have focus)
Comment 1 Behdad Esfahbod 2007-12-06 07:51:14 UTC
Agreed.  I was checking konsole the other day and found this interesting.  I prefer the tag coloring (like pidgin for example) plus a per-tab feature to notify using a bubble.
Comment 2 self 2008-01-06 17:07:05 UTC
Created attachment 102276 [details] [review]
Make gnome-terminal blink (urgent) on change in background
Comment 3 self 2008-01-06 17:11:59 UTC
Here is some first patch, just to inform you that I'm working on it (but help is appreciated, as this is my first try in GNOME-Development)

I connected the signal for changes in the terminal and set the Window to urgent (make it blink in the task bar) when the window is currently not active. The urgent-state is not yet reset when the gnome-terminal gets back the focus. Additionally the logic for watching a command with output (like "find /") for finishing is not implemented.
Comment 4 self 2008-01-06 17:53:29 UTC
Created attachment 102279 [details] [review]
new patch, reset urgent state on window-focus, I'm currently working on monitoring inactivity
Comment 5 Christian Persch 2008-03-25 21:57:45 UTC
Dup of bug 132173 ?
Comment 6 Christopher Roy Bratusek 2008-03-27 23:30:42 UTC
Created attachment 108150 [details] [review]
Updated Patch for 2.23.0/rev2524

Just an Update for the latest GT

>> Dup of ...

Two different approaches for the same thing ... could be marked as dup
Comment 7 Christian Persch 2008-03-31 22:05:03 UTC

*** This bug has been marked as a duplicate of 132173 ***