1.0.1 • Published 5 years ago
cliplayer v1.0.1
cliplayer
Dead simple cli remote control wrapping pactl and xdotool.
Why? I'm often running e.g. netflix on my desktop computer 3 meters away and I'm lazy. So, I'm logged in over ssh with my laptop and this allows me to control the netflix window.
I originally had aliases for the underlying xdotool and pactl commands but it's painful to type and hit enter.
Install
$ npm i cliplayer -gUsage
Start on command line:
$ cliplayerAnd hit some of the following keys:
space-> toggle pause/playleft arrow-> skip leftright arrow-> skip rightup arrow-> increase the volume 10%down arrow-> decrease the volume 10%m-> toggle the volume on and off
Abort execution with ctrl + c.
NOTE! When running xdotool it's important to set the DISPLAY environment so xdotool knows which display to target. It defaults to :0.0.
License
MIT