Advertisement
uaa

sndio.rb for mikutter

uaa
Nov 22nd, 2016
310
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. # -*- coding: utf-8 -*-
  2. # aucatコマンドで音を鳴らす
  3.  
  4. Plugin.create :sndio do
  5.  
  6. aucat_exist = command_exist?('aucat')
  7.  
  8. defsound :sndio, "sndio" do |filename|
  9. bg_system("aucat","-i", filename) if FileTest.exist?(filename) and aucat_exist end
  10.  
  11. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement