OSDN Git Service
(root)
/
instantos
/
instantOS.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
d804d71
)
escape html markup in notif center
author
paperbenni
<paperbenni@gmail.com>
Tue, 24 Mar 2020 14:32:27 +0000
(15:32 +0100)
committer
paperbenni
<paperbenni@gmail.com>
Tue, 24 Mar 2020 14:32:27 +0000
(15:32 +0100)
programs/dunsttrigger
patch
|
blob
|
history
diff --git
a/programs/dunsttrigger
b/programs/dunsttrigger
index
6a404c7
..
21e5f51
100755
(executable)
--- a/
programs/dunsttrigger
+++ b/
programs/dunsttrigger
@@
-7,6
+7,7
@@
if echo "$2" | grep -q 'instantASSIST'; then
exit
fi
exit
fi
+# some apps dont need/already have notification sounds
if ! echo "$1" | grep -Eiq '(discord|spotify|thunderbird|mailspring)'; then
if ! [ -e ~/instantos/notifications/notification.ogg ]; then
if ping -c 1 google.com; then
if ! echo "$1" | grep -Eiq '(discord|spotify|thunderbird|mailspring)'; then
if ! [ -e ~/instantos/notifications/notification.ogg ]; then
if ping -c 1 google.com; then
@@
-21,9
+22,8
@@
if ! echo "$1" | grep -Eiq '(discord|spotify|thunderbird|mailspring)'; then
fi
# escape characters that cause problems with pango
fi
# escape characters that cause problems with pango
-# some apps dont need/already have notification sounds
cleanstring() {
cleanstring() {
- echo "$@" | sed 's/&/&/g'
+ echo "$@" | sed 's/&/&/g'
| sed 's/<.*>\(.*\)<\/.*>/\1/g'
}
# add pango markup
}
# add pango markup