This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import childProcess from "child_process"; | |
let serverProcess; | |
const startServer = () => { | |
serverProcess = childProcess.spawn("node", ["app.js"], { | |
stdio: "inherit", | |
}); | |
}; | |
const startPlugin = (hasWatch = true) => { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
temperatureFilePath=~/.config/redshift/TEMPERATURE | |
brightnessFilePath=~/.config/redshift/BRIGHTNESS | |
TEMPERATURE=$(cat ${temperatureFilePath}) | |
BRIGHTNESS=$(cat ${brightnessFilePath}) | |
MAX_TEMPERATURE=4000 | |
MIN_BRIGHTNESS=0.5 | |