add auto expiry
This commit is contained in:
@@ -41,9 +41,9 @@ send_notification () {
|
|||||||
current_volume=$(get_current_volume)
|
current_volume=$(get_current_volume)
|
||||||
active_notification=$(check_if_active_notification)
|
active_notification=$(check_if_active_notification)
|
||||||
if [ -z "$active_notification" ]; then
|
if [ -z "$active_notification" ]; then
|
||||||
notify-send "Volume: ${current_volume}"
|
notify-send -t 2000 "Volume: ${current_volume}"
|
||||||
else
|
else
|
||||||
notify-send -r ${active_notification} "Volume: ${current_volume}"
|
notify-send -r ${active_notification} -t 2000 "Volume: ${current_volume}"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user