A simple bash package for changing slack status automatically designed for Mac users.
This package monitors your Mac's state and automatically switches slack status depends on WiFi-NAME.
S4 is an acronym for Slack Status Supervision System and has nothing to do with AWS.
This package only requires Homebrew.
If you haven't installed HomeBrew yet, paste the command below to install Homebrew.
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
If any error occurs, please refer HomeBrew official and install it manually.
-
git clone [email protected]:dgrid/s4.git
or download this repository. -
If you don't have your slack api app yet, create slack apps on your Slack account.
-
Open your slack app's page and click the app you just made.
-
Click the OAuth and Permissions button on menu and scroll the page until Scopes panel.
-
Choose Access user's profile and workspace profile fields and Modify user's profile. Then save changes.
-
Click "Copy OAuth Access Token" button on the top of current page.
- Edit config file of this package(s4/config) and paste required informations.
TOKEN="YOUR ACCESS TOKEN"
AT_OFFICE_WIFI="YOUR OFFICES WIFI NAME"
AT_OFFICE_WIFI_2="ANOTHER OFFICES WIFI NAME"
AT_HOME_WIFI="YOUR HOMES WIFI NAME"
- Enter this command to load all settings. Finished!
./setup.sh
This package has 3 states depends on connected WiFi-NAME and Mac's states.
STATUS | AT OFFICE | AT HOME | SLEEP |
---|---|---|---|
Mac's state | Active | Active | sleep |
WiFi-NAME | AT_OFFICE_WIFI or AT_OFFICE_WIFI_2 | AT_HOME_WIFI | whatever |
default text | at office | at home | not working |
default emoji | 🏫 | 🏡 | 💤 |
You can modify each status description and emoji by editting config file.
AT_OFFICE_STATUS_TEXT="at office"
AT_OFFICE_STATUS_EMOJI=":school:"
AT_HOME_STATUS_TEXT="working remotely"
AT_HOME_STATUS_EMOJI=":house_with_garden:"
SLEEP_STATUS_TEXT="at home"
SLEEP_STATUS_EMOJI=":zzz:"
SLEEP_SECONDS=30
Author : Kei Wakabayashi
Company : DataGrid Co., Ltd.