patri9ck / a2ln-app

A way to display Android phone notifications on Linux (App)
GNU General Public License v3.0
83 stars 7 forks source link

Run script on notification recieved #27

Closed sophronesis closed 1 year ago

sophronesis commented 1 year ago

Title is quiet descriptive, I think.

patri9ck commented 1 year ago

Thanks for the issue. I guess the easiest way to implement this would be a command line option where you can specify a shell command with two placeholders for the notification's title and body that gets executed everytime there is a notification.

patri9ck commented 1 year ago

Just for clarification, it's about the server running a script on the computer, not the app running a script on the phone, right?

sophronesis commented 1 year ago

Just for clarification, it's about the server running a script on the computer, not the app running a script on the phone, right?

Yep, I have digital ocean server, and want it to run a2ln server with script, that will send it to telegram and to ActivityWatch.

Thanks for the issue. I guess the easiest way to implement this would be a command line option where you can specify a shell command with two placeholders for the notification's title and body that gets executed everytime there is a notification.

... app name, title and body ... :)

patri9ck commented 1 year ago

I created a new issue for the correct project: https://github.com/patri9ck/a2ln-server/issues/10