aboutsummaryrefslogtreecommitdiff
path: root/.scripts/batdesk
blob: 9e231d2db3e1fa20c6fce5a99c861a2001149750 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/bash
# repetition is key in here

echo 60 | sudo tee -a /sys/class/power_supply/BAT0/charge_control_end_threshold &>/dev/null
echo 40 | sudo tee -a /sys/class/power_supply/BAT0/charge_control_start_threshold &>/dev/null

echo 60 | sudo tee -a /sys/class/power_supply/BAT0/charge_control_end_threshold &>/dev/null
echo 40 | sudo tee -a /sys/class/power_supply/BAT0/charge_control_start_threshold &>/dev/null

echo 60 | sudo tee -a /sys/class/power_supply/BAT0/charge_control_end_threshold >/dev/null
echo 40 | sudo tee -a /sys/class/power_supply/BAT0/charge_control_start_threshold >/dev/null