GithubHelp home page GithubHelp logo

google-music-control's Introduction

google-music-control

A collection of scripts for controlling Google Play Music on browser.

What is it?

google-music-controll is a collection of scripts to control Google Play Music opened in browser.

How to use

macOS

Basically, you want to execute the scripts when certain hotkey is triggered. I use alfred, but I think you can use quicksilver or automator to execute them when hotkey is triggered.

I actually execute shell script that executes the script because none of them allows to set a path to the script to execute; rather they ask you to copy and paste the code. I don't like that.

You can execute the script from terminal like following:

$ osascript chrome/play-pause.scpt

Linux

You can simply execute the scripts on terminal. If your desktop environment supports executing a script using hotkey, then that should be able to trigger the scripts.

Assumptions

macOS

Before using it, you need to make sure that:

  • Using Chrome.
  • Google Play Music is opened in browser (doesn't matter in which tab nor window) and playing music already. The scripts don't know how to initiate to play music.

Linux

xdotool is required.

How does it work?

macOS

It uses AppleScript interface that chrome provides and goes through all windows and tabs to find the tab that has google play music opened. Then it executes JavaScript on the page that sends appropriate keyboard shortcuts to control it.

Linux

It uses xdotool to focus a window that Google Play Music is opened, and sends a key that triggers keyboard shortcut.

License

MIT

google-music-control's People

Contributors

atsuya avatar matmunn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

matmunn

google-music-control's Issues

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.