- KDE Connect PC: sudo apt install kdeconnect
- KDE Connect Android: https://play.google.com/store/apps/deta ... connect_tp
- notify-send: sudo apt install libnotify-bin
1- In Desktop's KDE-connect enable "send notifications".:
2- In Android movile KDE-connect enable "receive notifications".:
3- Use notify-send command to send task alerts to movile.:
notify-send "Title message" "message body" --app-name="NameApp" -i "IconName"
4- Here, I give you some ready scripts for using with sending alerts:
notify.sh
Code: Select all
#!/bin/sh
#
A=0
VARL=/tmp/xxYaS
tiempo="$(cat $VARL/contador.txt)"
cat $VARL/contador.txt && A=1
if [[ $A = 1 ]]
then
notify-send "$tiempo" "$2" --app-name="$1" -i kalarm
else
notify-send "::" "$2" --app-name="$1" -i kalarm
fi
Code: Select all
#!/bin/bash
#
VARL=/tmp/xxYaS
rm -rf $VARL
mkdir /tmp/xxYaS
for (( c=1; c>=1; c++ ))
do
CONT=$(date -d@$c -u +%H:%M:%S)
# clear
#echo -ne "Welcome $CONT times"
sleep 1
printf "\r%2d $CONT Welcome times"
echo $CONT > $VARL/contador.txt
done &