Files
dotfiles/overlays/customscripts/src/fan
2021-05-16 08:00:04 +05:30

15 lines
319 B
Plaintext

#!/usr/bin/env nix-shell
#! nix-shell -i bash -p mono
#Script to control fans via nbfc in /opt/nbfc
if [[ $1 = "a" ]]; then
mono /opt/nbfc/nbfc.exe set -f 0 -a
else
mono /opt/nbfc/nbfc.exe set -f 0 -s $1
fi
if [[ $2 = "a" ]]; then
mono /opt/nbfc/nbfc.exe set -f 1 -a
else
mono /opt/nbfc/nbfc.exe set -f 1 -s $2
fi