mtpaintsnapshot.sh 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. #!/bin/sh
  2. #110116 change to yaf-splash.
  3. #110312 rodin.s: adding gettext
  4. export TEXTDOMAIN=mtpaintsnapshot #usr_sbin
  5. export TEXTDOMAINDIR=/usr/share/locale
  6. export OUTPUT_CHARSET=UTF-8
  7. eval_gettext () {
  8. local myMESSAGE=$(gettext "$1")
  9. eval echo \"$myMESSAGE\"
  10. }
  11. #xmessage -center -bg "#ff00ff" -title "mtPaint screen snapshot utility" -buttons "" -timeout 8 "
  12. #There will now be a pause of 10 seconds to allow you to adjust
  13. #windows as you wish, then a snapshot will be taken of entire screen.
  14. #
  15. #Note, you can also take a snapshot of the main menu. Close this window,
  16. #open the main menu to the desired layout, then wait until the 10 seconds
  17. #has expired.
  18. #
  19. #This window will disappear in 8 seconds from its creation." &
  20. yaf-splash -placement center -bg '#ff00ff' -timeout 10 -close box -text "$(gettext 'mtPaint screen snapshot utility
  21. There will now be a pause of 13 seconds to allow you to adjust windows as you wish, then a snapshot will be taken of entire screen.
  22. Note, you can also take a snapshot of the main menu. Close this window, open the main menu to the desired layout, then wait until the 13 seconds has expired.')" &
  23. sleep 13
  24. exec mtpaint -s