Skip to content

Commit

Permalink
added FreeBSD support to _battery_info(), resolves gpakosz#680
Browse files Browse the repository at this point in the history
  • Loading branch information
gpakosz committed Dec 5, 2023
1 parent 42adc35 commit 78c8d04
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .tmux.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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 }')
Expand Down

0 comments on commit 78c8d04

Please sign in to comment.