Shift X2 status from legacy to archived
[khatus.git] / x4 / bin / khatus_x4_sensor_energy_poller
CommitLineData
7e73518e
SK
1#! /bin/sh
2
3set -e
4
5bin_dir="$(dirname $(realpath $0))"
6
7. "$bin_dir/khatus_x4_lib_common_sensor.sh"
8
9sensor() {
10 upower --show-info /org/freedesktop/UPower/devices/DisplayDevice | awk '
11 /percentage:/ {print "battery_percentage", int($2)}
12 /state:/ {print "battery_state" , $2}
13 '
14}
15
16run_as_poller
This page took 0.024923 seconds and 4 git commands to generate.