node-xfconf-query

xfconf-query wrapper for nodejs

Usage no npm install needed!

<script type="module">
  import nodeXfconfQuery from 'https://cdn.skypack.dev/node-xfconf-query';
</script>

README

node-xfconf-query

npm NPM version License GitHub issues GitHub forks GitHub stars GitHub top language

Patreon

xfconf-query wrapper for nodejs

Install

npm install node-xfconf-query

Import package to the project

TypeScript

import XFConfQuery from "node-xfconf-query";

JavaScript

var XFConfQuery = require("node-xfconf-query");

Usage

List Channels

const channels = XFConfQuery.listChannels();

List Channel Properties

const properties = XFConfQuery.listProperties('xfce4-power-manager');

Read Property Value

const dpmsEnabled = XFConfQuery.readProperty('xfce4-power-manager', '/xfce4-power-manager/blank-on-ac');

Write Property Value

const result = XFConfQuery.writeProperty('xfce4-power-manager', '/xfce4-power-manager/dpms-enabled', false);
XFConfQuery.writeProperty('xfce4-power-manager', '/xfce4-power-manager/blank-on-ac', 0);

Rights and Agreements

License Apache-2.0

Copyright 2020 Andrea Macchieraldo