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.
10 lines
325 B
Bash
Executable file
10 lines
325 B
Bash
Executable file
#!/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"
|
|
|