Clone wiki

Slack Client / Home

License

This software is NOT created by, affiliated with, or supported by Slack Technologies, Inc.

Copyright 2015 Alexander Bartash AlexanderBartash@gmail.com

Licensed under the Apache License, Version 2.0 (the "License"); You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

What it does?

Displays an icon in the system tray and changes the image if you have unread messages. The icon with an envelope will automatically disappear as soon as you read all messages.

Also it provides ready to use integration API and can be used as a base for another applications.

How does it look?

selection_004.png

selection_005.png

How to change the icon?

src/main/resources/com/slack/client/slack-client.properties

slack.client.gui.tray.normal-icon      = com/slack/client/gui/tray/win-slack-tray-icon.png
slack.client.gui.tray.new-massage-icon = com/slack/client/gui/tray/win-message-tray-icon.png

#slack.client.gui.tray.normal-icon      = com/slack/client/gui/tray/linux-slack-tray-icon.png
#slack.client.gui.tray.new-massage-icon = com/slack/client/gui/tray/linux-message-tray-icon.png

How to use it?

Go to https://api.slack.com/web and generate authentication token for your account or accounts

Then download the latest version here or build it from the sources:

hg clone ssh://hg@bitbucket.org/AlexanderBartash/slack-client
cd slack-client

# Linux/Mac:
./gradlew distZip
# Windows:
./gradlew.bat distZip

cd build/distributions/

And run it:

unzip slack-client-1.0.zip
cd slack-client-1.0/bin

# Linux/Mac:
./slack-client xoxp-123456789
# Windows:
./slack-client.bat xoxp-123456789

# Also you can specify in parameters as many tokens as you wish, e.g.

# Linux/Mac:
./slack-client xoxp-123456789 xoxp-1234567891 xoxp-1234567892
# Windows:
./slack-client.bat xoxp-123456789 xoxp-1234567891 xoxp-1234567892

Known issues

JDK-6453521 : TrayIcon should support transparency

You can avoid this issue by creating special icon for your tray. Just replace transparent background with your tray color.

Then put it to slack-client/src/main/resources/com/slack/client/gui/tray and fix properties in com/slack/client/slack-client.properties

slack.client.gui.tray.normal-icon      = com/slack/client/gui/tray/win-slack-tray-icon.png
slack.client.gui.tray.new-massage-icon = com/slack/client/gui/tray/win-message-tray-icon.png

#slack.client.gui.tray.normal-icon      = com/slack/client/gui/tray/linux-slack-tray-icon.png
#slack.client.gui.tray.new-massage-icon = com/slack/client/gui/tray/linux-message-tray-icon.png

Sources

https://bitbucket.org/AlexanderBartash/slack-client/src/

diagram.png diagram2.png diagram3.png

Updated