Friendship ended with notify.lua, now weechat-notify is my best friend

This commit is contained in:
Yash Karandikar 2022-05-17 13:22:50 -05:00
parent 5fef221e08
commit f65de57ef9

View file

@ -1,10 +0,0 @@
weechat.register('notify', 'Yash Karandikar', '22.05.10', 'Unlicense',
'Notify on highlight', '', '')
weechat.hook_signal('weechat_highlight', 'notify', '')
weechat.hook_signal('irc_pv', 'notify', '')
function notify (data, signal, signal_data)
nick, text = string.match(signal_data, '(.-)\t(.+)')
os.execute('notify-send -i "/usr/share/icons/Papirus-Dark/128x128/apps/weechat.svg" ' .. string.format('%q %q', nick, text))
return weechat.WEECHAT_RC_OK
end