mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-22 14:24:39 -07:00
allow for disabling the notify_osd status; must handle in the perl
script
This commit is contained in:
parent
f08b1e6ccc
commit
4ea85ef41d
2 changed files with 15 additions and 0 deletions
2
debian/changelog
vendored
2
debian/changelog
vendored
|
@ -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
|
||||
|
||||
|
|
|
@ -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 ":"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue