Giter Club home page Giter Club logo

s4's Introduction

S4

MIT License

Description

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.

Requirements

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.

Installation

  1. git clone [email protected]:dgrid/s4.git or download this repository.

  2. If you don't have your slack api app yet, create slack apps on your Slack account.

  3. Open your slack app's page and click the app you just made.

  4. Click the OAuth and Permissions button on menu and scroll the page until Scopes panel.

  1. Choose Access user's profile and workspace profile fields and Modify user's profile. Then save changes.

  2. Click "Copy OAuth Access Token" button on the top of current page.

  1. 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"
  1. Enter this command to load all settings. Finished!
./setup.sh

Advanced Usage

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

Lisence

MIT License

Contact

Author : Kei Wakabayashi
Company : DataGrid Co., Ltd.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.