Shift X2 status from legacy to archived
[khatus.git] / x4 / bin / khatus_x4_sensor_energy_poller
1 #! /bin/sh
2
3 set -e
4
5 bin_dir="$(dirname $(realpath $0))"
6
7 . "$bin_dir/khatus_x4_lib_common_sensor.sh"
8
9 sensor() {
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
16 run_as_poller
This page took 0.047712 seconds and 4 git commands to generate.