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
  • 85,475
HeicPy
  • 11

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.
  • 92,125