mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-12-08 23:03:46 +00:00
12 lines
284 B
Bash
12 lines
284 B
Bash
#!/bin/sh
|
|
|
|
# osdbattery start/stop script - best bound to a keyboard combo
|
|
|
|
PID=`pidof -o %PPID /usr/bin/osdbattery`
|
|
if [ -z "$PID" ] ; then
|
|
/usr/bin/osdbattery &
|
|
echo $PID > /var/run/osdbattery.pid
|
|
elif [ ! -z "$PID" ] ; then
|
|
kill $PID &> /dev/null
|
|
rm /var/run/osdbattery.pid
|
|
fi
|