Code Monkey home page Code Monkey logo

weechat-notification-center's Introduction

WeeChat Notification Center

WeeChat script to pass highlights and private messages to the macOS Notification Center

Install

Script center

  • Install pync: pip install pync
  • Copy weechat.png from this repository to ~/.weechat/weechat.png
  • In WeeChat, type /script to open the script manager
  • Find notification_center and type i then Enter to install

Manually

  • Install pync: pip install pync
  • Copy or symlink weechat.png to ~/.weechat/weechat.png
  • Copy or symlink notification_center.py into ~/.weechat/python/autoload/

Options

show_highlights

Default: 'on'
Values: 'on' 'off'

show_private_message

Default: 'on'
Values: 'on' 'off'

show_message_text

Default: 'on'
Values: 'on' 'off'

sound

Default: 'off'
Values: 'on' 'off'

sound_name

Default: 'Pong'
Values: 'Basso' 'Blow' 'Bottle' 'Frog' 'Funk' 'Glass' 'Hero' 'Morse' 'Ping' 'Pop' 'Purr' 'Sosumi' 'Submarine' 'Tink', but can really be anything that has an aptly named sound file in /System/Library/Sounds/, /Library/Sounds/, or ~/Library/Sounds/.

activate_bundle_id

Default: com.apple.Terminal
Values: 'com.apple.Terminal' 'com.googlecode.iterm2' (or any bundle ID that your terminal uses)

App to activate when the notification is clicked.

The app bundle ID can be found in /Applications/<MyTerminal>.app/Contents/Info.plist, right below the CFBundleIdentifier key.

ignore_old_messages

Default: 'off'
Values: 'on' 'off'

Determines whether old messages, such as log playbacks, will trigger notifications or not.

ignore_current_buffer_messages

Default: 'off'
Values: 'on' 'off'

Determines whether messages from the current buffer should trigger notifications or not. This is especially useful if you use wee-slack and receive notifications for messages they send, as discussed in #22.

channels

Default: ''
Values: Comma-separated list of channel names

Channels in this list will trigger a notification on every message received.

tags

Default: ''
Values: Comma-separated list of tags

Additional message tags that can trigger notifications. This can be used in combination with weechat.look.highlight_tags to generate custom notifications.

For example, to get notifications when <nick> joins or parts <server>:

/notify add <nick> <server>
/set weechat.look.highlight_tags "irc_notify_join,irc_notify_quit"
/set plugins.var.notification_center.tags "irc_notify"

weechat-notification-center's People

Contributors

chunkhang avatar gpanders avatar ikanusim avatar sindresorhus avatar williamleuschner avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.