Compare commits
2 commits
ff41a90af1
...
09693db995
Author | SHA1 | Date | |
---|---|---|---|
09693db995 | |||
ed6280329b |
2 changed files with 9 additions and 5 deletions
|
@ -10,7 +10,7 @@ riverctl spawn 'killall yambar ; yambar'
|
|||
riverctl spawn "killall fnott >/dev/null ; fnott"
|
||||
riverctl spawn "killall river-tag-overlay >/dev/null ; river-tag-overlay \
|
||||
--border-width=5 \
|
||||
--anchors=0:0:1:0 \
|
||||
--anchors=1:0:0:0 \
|
||||
--timeout=2000 \
|
||||
--square-padding=10 \
|
||||
--square-inner-padding=5 \
|
||||
|
|
|
@ -8,16 +8,20 @@ usage () {
|
|||
}
|
||||
|
||||
if expr "$1" : '[0-9][0-9]*$'>/dev/null; then
|
||||
start_threshold="$(printf '%x' "$1")"
|
||||
# start_threshold="$(printf '%x' "$1")"
|
||||
start_threshold="$1"
|
||||
else
|
||||
usage
|
||||
fi
|
||||
|
||||
if expr "$2" : '[0-9][0-9]*$'>/dev/null; then
|
||||
stop_threshold="$(printf '%x' "$2")"
|
||||
# stop_threshold="$(printf '%x' "$2")"
|
||||
stop_threshold="$2"
|
||||
else
|
||||
usage
|
||||
fi
|
||||
|
||||
ectool -w 0xb0 -z "$start_threshold"
|
||||
ectool -w 0xb1 -z "$stop_threshold"
|
||||
# ectool -w 0xb0 -z "$start_threshold"
|
||||
# ectool -w 0xb1 -z "$stop_threshold"
|
||||
echo "$start_threshold" > /sys/class/power_supply/BAT0/charge_control_start_threshold
|
||||
echo "$stop_threshold" > /sys/class/power_supply/BAT0/charge_control_end_threshold
|
||||
|
|
Loading…
Reference in a new issue