0

i'm trying to create notification script but it doesnt work.
When i click for example "control+alt+m" it should pop notification which it does, but its like default and i cant change anything.
I tried to use some of commands for notify-send but its just not working.
And one more huge problem is its not working in full screen like i'm in-game and i want to click "control+alt+m" and its not showing up.
I cant do anything, i tried to write -critical still not working. need help with notifications.

here is my script:

#!/bin/bash
notify-send "Dota2 Heroes" -t 10000

P.S default is 5sec time, -t 10000 = 10sec but its not working, notification disappears in 5sec

Jacob Vlijm
  • 83,767
HeicPy
  • 11
  • 2

1 Answers1

2

The answer is simple:

Ubuntu's Notify OSD and GNOME Shell both ignore this parameter.

Open the man page

man notify-send

and you can read this:

-t, --expire-time=TIME
      The duration, in milliseconds, for the notification to appear on
      screen. (Ubuntu's Notify OSD and GNOME Shell both ignore this
      parameter.)
A.B.
  • 90,397
  • I am afraid OP lost interest in his own question, he never replied to any of the comments... Didn't know it was even in the man pages though! (not in my version btw- Unity 14.04: " -t, --expire-time=TIME Specifies the timeout in milliseconds at which to expire the notification.") – Jacob Vlijm Jul 30 '15 at 09:36
  • @JacobVlijm Oh, yes Last seen Jul 15 at 21:57 – A.B. Jul 30 '15 at 09:38
  • Good, but this answer is even better! ;-) – Fabby Jul 30 '15 at 17:47
  • so yeah, as i see there is no chance to create notification. Thanks for answears – HeicPy Jul 31 '15 at 13:57
  • As you're a reputation 6 user: If this answer helped you, don't forget to click the grey at the left of this text, which means "yes, this answer is valid"! ;-) – A.B. Jul 31 '15 at 14:53