Compare commits

..

No commits in common. "09693db99570e031e723e9a81b829a5ea177dd95" and "ff41a90af11031cd3f31e879d10dd824b63453d0" have entirely different histories.

2 changed files with 5 additions and 9 deletions

View file

@ -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=1:0:0:0 \
--anchors=0:0:1:0 \
--timeout=2000 \
--square-padding=10 \
--square-inner-padding=5 \

View file

@ -8,20 +8,16 @@ usage () {
}
if expr "$1" : '[0-9][0-9]*$'>/dev/null; then
# start_threshold="$(printf '%x' "$1")"
start_threshold="$1"
start_threshold="$(printf '%x' "$1")"
else
usage
fi
if expr "$2" : '[0-9][0-9]*$'>/dev/null; then
# stop_threshold="$(printf '%x' "$2")"
stop_threshold="$2"
stop_threshold="$(printf '%x' "$2")"
else
usage
fi
# 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
ectool -w 0xb0 -z "$start_threshold"
ectool -w 0xb1 -z "$stop_threshold"