Skip to content

Instantly share code, notes, and snippets.

Ben Francom bfrancom

Block or report user

Report or block bfrancom

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View bumpme
Fri Oct 18 04:03:21 UTC 2019

Keybase proof

I hereby claim:

  • I am bfrancom on github.
  • I am bfrancom ( on keybase.
  • I have a public key ASA9v4gXnzJzx6RyLdvFoBCy_f0caEW3Zbt1xl68DqEbXQo

To claim this, I am signing this object:

bfrancom / openbsd_volume_percentage.js
Created Mar 3, 2017
OpenBSD Volume Percentage for Conky
View openbsd_volume_percentage.js
//Node.js script which calculates OpenBSD Volume percentage for the master output
//Only calculates the right channel, and assumes both channels are equal
//I use this with i3 + i3bar + conky
const spawn = require('child_process').spawn;
const mixerctl = spawn('mixerctl', ['-v', 'outputs.master']);
mixerctl.stdout.on('data', (data) => {
var arr = data.toString().split(",");
var lastNum = arr[1].replace(/(\r\n|\n|\r)/gm,"");
var perc = (lastNum/226*100);
var wholeNum = Math.floor(perc);
bfrancom / conky.rc
Last active Jan 3, 2019
i3 conky Node js script for weather
View conky.rc
#In .conkyrc, I have a line like:
{ "full_text" : "${execi 301 node /home/bob/weather.js}" , "color" : "\#ffffff" },
#see result in attached image
You can’t perform that action at this time.