diff --git a/.tmux.conf b/.tmux.conf index a614439..921d5fc 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -358,6 +358,11 @@ run 'cut -c3- "$TMUX_CONF" | sh -s _apply_configuration' # count=$((count + 1)) # done # ;; +# *FreeBSD*) +# discharging=$(sysctl -n 'hw.acpi.battery.state' | grep -q 1 && echo "true" || echo "false") +# charge=$(awk -v charge="$(sysctl -n 'hw.acpi.battery.life')" 'BEGIN { print charge / 100 }') +# count=1 +# ;; # esac # if [ "$count" -ne 0 ]; then # charge=$(awk -v charge="$charge" -v count="$count" 'BEGIN { print charge / count }')