awesome-client

Thin wrapper around awesome-client command that enables interaction with Awesome WM.

Usage no npm install needed!

<script type="module">
  import awesomeClient from 'https://cdn.skypack.dev/awesome-client';
</script>

README

awesome-client

Thin wrapper around awesome-client command that enables interaction with Awesome WM.

Installation

  Install with [npm](https://www.npmjs.org/package/awesome-client):

    $ npm install --save awesome-client

API

var awesomeClient = require('awesome-client');

// restarts awesome
awesomeClient('awesome.restart()');

// same, but enables error checking
// if it failed, the err object will be an instance of Error
awesomeClient('awesome.restart()', function(err) {
    console.log(err);
});