English | 日本語
Updates your Slack user status from CLI. Your own templates can be managed by editting the settings file. Also has features to append the music information being played on your iTunes etc.
Download the binary from the releases page and move it to a directory in your PATH
variable.
by Homebrew
brew tap townewgokgok/tap
brew install slack-status
by Go 1.8
go get github.com/townewgokgok/slack-status
Your settings file will be saved at $HOME/.slack-status.yml
.
slack-status edit
to edit it like
slack:
token: xoxp-...
templates:
home: ':house: Working remotely today'
lunch: ':fork_and_knife: Having lunch'
- The emoji at the beginning of the template string will be used as the status icon.
- Your
token
can be created at Slack "Legacy tokens" page.
slack-status
can be used in subcommand style like slack-status <command> ...
.
slack-status edit
… Opens your settings file in the editorslack-status list
… Lists your templatesslack-status get
… Shows your current statusslack-status set [options...] <template ID>...
… Updates your status-
Options
--dryrun
,-d
… just print the composed status text (your status will not be changed)--watch
,-w
… watch changes (with "itunes" or "lastfm" template)
-
Special template IDs
itunes
… appends information about the music playing on iTuneslastfm
… appends information about the music scrobbled to last.fm
These IDs can be modified by editting
template_id
in your settings file.
-
slack-status help [<command>]
… Shows a list of commands or help for one command
$ slack-status set home
🏠 Working remotely today
$ slack-status set lunch
🍴 Having lunch
$ slack-status set lunch home
🍴 Having lunch 🏠 Working remotely today
↑ 🍴
will be used as the emoji icon and the rest as the text.
$ slack-status set itunes
🎵 Satellite Young - Break! Break! Tic! Tac! (from "Satellite Young")
$ slack-status set home itunes
🏠 Working remotely today 🎵 Satellite Young - Break! Break! Tic! Tac! (from "Satellite Young")
$ slack-status set -w home itunes
[10:25:39] 🏠 Working remotely today 🎵 Satellite Young - Break! Break! Tic! Tac! (from "Satellite Young")
[10:30:16] 🏠 Working remotely today 🎵 Satellite Young - Geeky Boyfriend (from "Satellite Young")
[10:33:51] 🏠 Working remotely today 🎵 Satellite Young - AI Threnody (from "Satellite Young")
Move bash_complete
included in the distribution to somewhere and source
it in your .bashrc
.