allow for disabling the notify_osd status; must handle in the perl

script
This commit is contained in:
Dustin Kirkland 2010-11-02 18:02:12 -05:00
commit 4ea85ef41d
2 changed files with 15 additions and 0 deletions

2
debian/changelog vendored
View file

@ -9,6 +9,8 @@ byobu (3.7) unreleased; urgency=low
- add notify_osd support to byobu, LP: #669189
- separate the perl into a script of its own
- add per-pid notifier monitors, terminate when screen terminates
- allow for disabling the notify_osd status; must handle in the perl
script
-- Dustin Kirkland <kirkland@ubuntu.com> Thu, 21 Oct 2010 12:09:14 -0500

View file

@ -20,7 +20,20 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
$/ = "\n\n";
$PKG = "byobu";
while (<STDIN>) {
# Ensure that the notify_osd indicator is enabled
my $skip = 0;
open(F, "<$ENV{HOME}/.$PKG/status");
foreach my $i (<F>) {
if ($i =~ /notify_osd=0/) {
$skip = 1;
}
}
close(F);
if ($skip == 1) {
next;
}
$msg = $_;
$msg =~ s/\[[^,]*, //; # strip the leading "[timestamp, "
$msg =~ s/ \] /: /; # replace the " ] " following the indicator name, with ":"