Advertisement
alexs77

notifyme.sh

Sep 26th, 2011
191
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.34 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. # → http://coderstalk.blogspot.com/2010/02/custom-gnome-notification-for-your-apps.html
  4.  
  5. # create the message
  6. mytitle="$1"
  7. mymsg="$2"
  8.  
  9. # get my resolution
  10. myres=$(xrandr -q|grep '*' | sed -e 's/x.*//' -e 's/\ //g')
  11.  
  12. # and the notify command
  13. notify-send -h int:x:$myres -h int:y:10 -u normal -t 10000 "$mytitle" "$mymsg" &
  14.  
  15.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement