~ecs/dotfiles

4f0f3864457fb267835d3e5c6e581b4d5d9d8927 — Ember Sawady 4 months ago bbcd17b
status: update
2 files changed, 3 insertions(+), 2 deletions(-)

M bin/status
M etc/profile/monch
M bin/status => bin/status +2 -2
@@ 15,7 15,7 @@ while true; do
	[ "$quality" != "" ] && quality=" $quality"
	bat_dir="/sys/class/power_supply"
	bat=""
	if [ $(ls "$bat_dir" | grep '\(BAT\)\|\(bq27200-0\)' | wc -l) -ne 0 ]; then
	if ls "$bat_dir" | grep -q '\(BAT\)\|\(bq27200-0\)'; then
		bat_dir="$bat_dir/$(ls "$bat_dir" | grep '\(BAT\)\|\(bq27200-0\)' | head -n1)"
		bat=" $(cat "$bat_dir/capacity" || printf "???")"
		if [ "$bat" != "???" ] && [ "$bat" -le 5 ] \


@@ 26,7 26,7 @@ while true; do
		[ "$(cat "$bat_dir/status")" = "Charging" ] && bat="$bat+"
		[ "$(cat "$bat_dir/status")" = "Discharging" ] && bat="$bat-"
	fi
	date="$(date -u "+ %Y-%m-%dT%H:%M:%SZ")"
	date="$(TZ="$localtz" date "+ %Y-%m-%dT%H:%M:%S")"
	notif="$(awk '{ s = s $0 " | "} END { print s }' <"$XDG_RUNTIME_DIR/notif")"
	printf "%s\n" "$notif$vol$ip$ssid$quality$bat$date"


M etc/profile/monch => etc/profile/monch +1 -0
@@ 1,1 1,2 @@
export DRI_PRIME=1
export localtz=America/New_York