mirror of
https://github.com/clockworkpi/launcher_deot.git
synced 2026-03-27 14:22:42 +01:00
launcher deot
This commit is contained in:
0
sys.py/gsnotify/Jobs/.gitkeep
Normal file
0
sys.py/gsnotify/Jobs/.gitkeep
Normal file
1
sys.py/gsnotify/Jobs/00_lowpower.alias
Normal file
1
sys.py/gsnotify/Jobs/00_lowpower.alias
Normal file
@@ -0,0 +1 @@
|
||||
Low Battery
|
||||
15
sys.py/gsnotify/Jobs/00_lowpower.sh
Executable file
15
sys.py/gsnotify/Jobs/00_lowpower.sh
Executable file
@@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
|
||||
BAT_PNT=`upower -i $(upower -e | grep 'battery') | grep -E "state|to\ full|percentage" | awk '/perc/{print $2}' | cut -d % -f1 `
|
||||
|
||||
if [ "$BAT_PNT" -lt "20" ]; then
|
||||
|
||||
if [ "$BAT_PNT" -lt "5" ]; then
|
||||
echo '{"type":"once","content":"Low Battery: 5% of battery remaining"}'
|
||||
elif [ "$BAT_PNT" -lt "10" ]; then
|
||||
echo '{"type":"once","content":"Low Battery: 10% of battery remaining"}'
|
||||
fi
|
||||
|
||||
else
|
||||
echo $BAT_PNT
|
||||
fi
|
||||
BIN
sys.py/gsnotify/gsnotify-arm
Executable file
BIN
sys.py/gsnotify/gsnotify-arm
Executable file
Binary file not shown.
1
sys.py/gsnotify/md5sum
Normal file
1
sys.py/gsnotify/md5sum
Normal file
@@ -0,0 +1 @@
|
||||
f174bb3f8e91ce01ae03d70864425abb gsnotify-arm
|
||||
Reference in New Issue
Block a user