Disable gtk2 notifications

Dependency resolution has become a nightmare. Need to rewrite with a
better supported library.
This commit is contained in:
John Mertz 2022-04-19 00:24:18 -04:00
parent 4c9a4b5eef
commit 3802db3c96
1 changed files with 3 additions and 14 deletions

View File

@ -353,22 +353,9 @@ if ($silent) {
foreach (@output) {
$concat .= $_;
}
#use Desktop::Notify;
#my $notify = Desktop::Notify->new();
=pod
use Gtk2::Notify -init, "Backlight";
my $notification = Gtk2::Notify::new('Backlight', $concat, '', "notification-display-brightness");
#my $notification = $notify->create(
#'timeout' => $duration,
#'summary' => "Brightness",
#'body' => $concat,
#'hints' => {
##'urgency' => 'NOTIFY_URGENCY_LOW',
#'x-canonical-private-synchronous' => 'blc',
#'value' => (split('%',$concat))[0] || 0
#}
#);
#$notification->show;
#exit;
$notification->set_hint_string('x-canonical-private-synchronous','blc');
$notification->set_urgency('NOTIFY_URGENCY_LOW');
@ -388,6 +375,8 @@ if ($silent) {
. ' --hint=int:value:' . (split('%',$concat))[0]
. ' --expire-time=' . $duration
. ' "' . $concat . "\"";
=cut
exit();
} else {
print foreach @output;