Improve default notificationhook to vibrate consistently
This commit is contained in:
parent
45c571727c
commit
317437572a
1 changed files with 8 additions and 4 deletions
|
@ -11,12 +11,16 @@ notificationhook() {
|
||||||
if [ -x "$XDG_CONFIG_HOME"/sxmo/hooks/notification ]; then
|
if [ -x "$XDG_CONFIG_HOME"/sxmo/hooks/notification ]; then
|
||||||
"$XDG_CONFIG_HOME"/sxmo/hooks/notification
|
"$XDG_CONFIG_HOME"/sxmo/hooks/notification
|
||||||
else
|
else
|
||||||
|
VIBS=5
|
||||||
|
VIBI=0
|
||||||
|
while [ $VIBI -lt $VIBS ]; do
|
||||||
sxmo_setpineled green 0
|
sxmo_setpineled green 0
|
||||||
sxmo_vibratepine 200;
|
sleep 0.1
|
||||||
sleep 0.1;
|
sxmo_vibratepine 400 &
|
||||||
sxmo_setpineled green 1
|
sxmo_setpineled green 1
|
||||||
sxmo_vibratepine 200;
|
sleep 0.4
|
||||||
sleep 0.1;
|
VIBI=$(echo $VIBI+1 | bc)
|
||||||
|
done
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue