/alfred-slack-status

Change your slack status through alfred!

MIT LicenseMIT

Setting your slack status using keywords in Alfred

NOTE: For this to work you need the Powerpack Licence as we are going to use the workflow feature.

Create a Slack App

  1. Go to https://api.slack.com/apps and create a new Slack App. Monosnap Slack API: Applications | Slack - Vivaldi 2022-06-09 11-38-51
  2. Select "From Scratch", give your app a descriptive name and choose the workspace it is supposed to interact with (yes, this only works for one workspace).
  3. Now jump straight to "OAuth & Permissions"Monosnap Slack API: Applications | Ladefuchs Slack - Vivaldi 2022-06-09 14-58-43
  4. Scroll down to Scopes and add the following User Token Scopes: chat:write, users.profile:read, users.profile:write, users:write Monosnap Slack API: Applications | Happybrush Slack - Vivaldi 2022-06-09 14-59-58
  5. Now install the App to your workspace Monosnap Slack API: Applications | Ladefuchs Slack - Vivaldi 2022-06-09 15-02-02
  6. Grab the User OAuth Token continue to the Workflow installation in Alfred. Monosnap Slack API: Applications | Ladefuchs Slack - Vivaldi 2022-06-09 15-02-46

How to install and use it?

  1. Download the attached file and double click to install it
  2. Open Alfred preferences -> Workflows -> Click on the "Slack status" workflow -> Click on the second icon in the right corner -> In the Workflow Environment Variables box enter your User OAuth Token for the App you created beforehand and finally save and close Alfred
  3. Run search
  4. Type in "s" keyword
  5. You will see 4 default statuses (Available, Remote, Meeting, Vacationing), choose one or enter your custom status by first entering the emoji (without colons) followed by the text (separated with space) (e.g. poop What a lovely day)
  6. Hit enter!
  7. Navigate to your slack to check it out :)

Default slack statuses

slack statuses

Custom slack status

custom slack status

Workflow

slack status workflow

Can I add my own status?

Of course, just right click in the workflow box and a new "Input keyword" and "Arg and Vars utility" which you will connect to the keyword and script, just inspect one of the defaults.

Licence

MIT Licence © Gabrijel Škoro & Bastian Wölfle