Chat in slack in commandline – wee-slack

Slack is one of the chat tools I use to communicate with professional teammates. But, using that is a kill for my computer. It takes all the memory if I run as a desktop application. If i open it in a firefox tab, it slows down the firefox.

Being a command line lover, I look for CLI applications for all my needs. I use weechat for all my IRC chats with #ilugc, #dgplug, #pluggies, #learnandteach friends at irc.freenode.net

I thought that it will be nice to have a commandline chat tool for slack. Wow. It is already there. it is “wee-slack”

Weechat plugin for slack.

Weechat can be extended with perl, python to add more features. Thus, slack had been added already.

Got it from here – https://github.com/wee-slack/wee-slack

see it in action

animated screenshot

The setup is very easy.

I am using it for past 3 days and really enjoying it.

Here are few links and notes

https://alexjj.com/blog/2016/setting-up-weechat/

ran this to enable osd-notification. install notify-send

/trigger add osd print ” ‘${tg_highlight}’ ‘/.*/${weechat.look.nick_prefix}${tg_prefix_nocolor}${weechat.look.nick_suffix} ${tg_message_nocolor}/ /&/&/ /[\]/\/” //”/ //>/’ ‘/exec -norc -nosw notify-send -i weechat “${buffer.full_name}” “${tg_message}”‘

Show channel name in hotlist after activity

/set weechat.look.hotlist_names_level 14

Install the script autosort.py by running
/script install autosort.py

Installed few plugins to enable URL copying.
/script install urlbuf.py
/script install urlbar.py
/script install urlgrab.py

if you want to truncate the timestamps as well you can do

/set weechat.look.buffer_time_format “”

The bufferlist in leftside is too wide, if a channel name is too long. truncate it to 30 chars.
/set buflist.format.buffer ${format_number}${cut:20,ā€¦,${format_nick_prefix}${format_name}}

Set the buflist colors

/set buflist.format.hotlist_message “${color:7}”
/set buflist.format.buffer_current “${color:,7}${format_buffer}”

Few more plugins
/script install buffer_autoclose.py iset.pl colorize_nicks.py screen_away.py

type /save in final to store the changes.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s