stuff
This commit is contained in:
parent
35d2762ab1
commit
f6a221c385
1 changed files with 18 additions and 8 deletions
|
|
@ -39,13 +39,13 @@ def "snapper clear" [] {
|
||||||
snapper delete $"($first.number)-($last.number)"
|
snapper delete $"($first.number)-($last.number)"
|
||||||
}
|
}
|
||||||
|
|
||||||
let mode_path: path = (
|
|
||||||
glob "/sys/devices/platform/nct6775.656/hwmon/hwmon*/pwm2_enable" | get 0
|
|
||||||
)
|
|
||||||
|
|
||||||
def quiet [] {
|
def quiet [] {
|
||||||
match (hostname) {
|
match (hostname) {
|
||||||
"NOcomputer" => {sudo -- nu -c $"5 o> ($mode_path)"}
|
"NOcomputer" => {
|
||||||
|
const mode_path: path = "/sys/devices/platform/nct6775.656/hwmon/hwmon*/pwm2_enable"
|
||||||
|
sudo -- nu -c $"5 o> ($mode_path)"
|
||||||
|
}
|
||||||
"NOlaptop" => {
|
"NOlaptop" => {
|
||||||
sudo ectool fanduty 42
|
sudo ectool fanduty 42
|
||||||
}
|
}
|
||||||
|
|
@ -54,15 +54,25 @@ def quiet [] {
|
||||||
|
|
||||||
def loud [] {
|
def loud [] {
|
||||||
match (hostname) {
|
match (hostname) {
|
||||||
"NOcomputer" => {sudo -- nu -c $"5 o> ($mode_path)"}
|
"NOcomputer" => {
|
||||||
"NOlaptop" => {sudo ectool autofanctrl}
|
const mode_path: path = "/sys/devices/platform/nct6775.656/hwmon/hwmon*/pwm2_enable"
|
||||||
|
sudo -- nu -c $"5 o> ($mode_path)"
|
||||||
|
}
|
||||||
|
"NOlaptop" => {
|
||||||
|
sudo ectool autofanctrl
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
def louder [] {
|
def louder [] {
|
||||||
match (hostname) {
|
match (hostname) {
|
||||||
"NOcomputer" => {sudo -- nu -c $"0 o> ($mode_path)"}
|
"NOcomputer" => {
|
||||||
"NOlaptop" => {sudo ectool fanduty 100}
|
const mode_path: path = "/sys/devices/platform/nct6775.656/hwmon/hwmon*/pwm2_enable"
|
||||||
|
sudo -- nu -c $"0 o> ($mode_path)"
|
||||||
|
}
|
||||||
|
"NOlaptop" => {
|
||||||
|
sudo ectool fanduty 100
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue