Saturday, May 11, 2024
15
rated 0 times [  15] [ 0]  / answers: 1 / hits: 8568  / 1 Year ago, fri, march 3, 2023, 6:57:37

I have search on google but I don't have found anything about the meas of this two plugins: Inactivity watch and Activity watch.



Anyone can explain me how it works?
I have tried to activate/deactivate it but I can't see anything.



Plugins tab


More From » command-line

 Answers
0

InactivityWatch


This new plugin was developed as described in this bug-report.



"Watch for silence" is useful in the following scenario: Suppose you
have a long-running job that produces output while it is running, for
example building some software. Then it would be cool to select the
"Watch for silence" action. This would continuously monitor activity
in the terminal, and when no output arrives for some configurable
time, it would mark the window as urgent so that it flashes in the
Gnome taskbar.


"Watch for activity" complements "watch for silence" and is useful for
long-running jobs that seldom produce output, and you want to be
alerted when output happens. Perhaps "tail -F /some/log/file | grep
SomePattern" is a typical example.



Looking at the plugins source-code (/usr/share/terminator/terminatorlib/plugins/activitywatch.py), it is actually not configurable - it is hard-coded to display a notification 10 seconds after a file was last updated. Once this notification has been displayed, no further notifications are shown until the next file update.


enter image description here


ActivityWatch


When monitoring a log file, it is sometimes useful to be prompted when it has been updated.


enter image description here


A notification is sent whenever the file has been updated.


N.B. once a notification is displayed, another notification is not sent for another hard-coded 10 seconds, thus you dont have a continual stream of notifications being displayed for a continually updated file.


How to enable


Perhaps slightly confusing, the inactivitywatch and activitywatch plugins are displayed not by their plugin names.


Right-click a terminator pane - you can individually set to either watch for silence or watch for activity or both.


enter image description here


[#39421] Sunday, March 5, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ravturtl

Total Points: 335
Total Questions: 132
Total Answers: 110

Location: Tanzania
Member since Wed, Feb 24, 2021
3 Years ago
ravturtl questions
Wed, Feb 22, 23, 19:16, 1 Year ago
Fri, Dec 3, 21, 22:16, 2 Years ago
Wed, Nov 3, 21, 07:30, 3 Years ago
Wed, May 19, 21, 17:31, 3 Years ago
;