cliplayer

1.0.1 • Public • Published

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 -g

Usage

Start on command line:

$ cliplayer

And hit some of the following keys:

  • space -> toggle pause/play
  • left arrow -> skip left
  • right arrow -> skip right
  • up 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

Dependencies (0)

    Dev Dependencies (1)

    Package Sidebar

    Install

    npm i cliplayer

    Weekly Downloads

    0

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    2.65 kB

    Total Files

    3

    Last publish

    Collaborators

    • ralphtheninja