Many changes including introduction to menu system

THe main addition here is the menu system that is used to contoll the
phone. THere are also some small helper scripts for calls etc.
This commit is contained in:
Jonathan Hodgson 2021-04-04 16:04:22 +01:00
parent 72ecf44743
commit 43f0dd09bc
10 changed files with 206 additions and 2 deletions

View file

@ -0,0 +1,10 @@
#!/usr/bin/env bash
battery="$(cat /sys/class/power_supply/axp20x-battery/capacity)"
batteryStatus="$(cat /sys/class/power_supply/axp20x-battery/status)"
[ "$batteryStatus" = "Charging" ] && batteryIcon="🔌" || batteryIcon="🔋"
time="$(date "+%H:%M")"
notify-send "$(hostname)" "$batteryIcon ${battery}%\nTime $time"