Don't like ads? PRO users don't see any ads ;-)
Guest

00pidgin

By: a guest on May 5th, 2012  |  syntax: Bash  |  size: 0.24 KB  |  hits: 19  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. #!/bin/sh
  2. #
  3. # 00pidgin: set offline/online status
  4.  
  5. case "$1" in
  6. hibernate|suspend)
  7. su -c 'purple-remote setstatus?status=offline' neutrino
  8. ;;
  9. thaw|resume)
  10. su -c 'purple-remote setstatus?status=available' neutrino
  11. ;;
  12. *) exit $NA
  13. ;;
  14. esac